Samba 2.0 Beta2 released !

Tim Rice tim at trr.metro.NET
Thu Nov 26 19:55:09 GMT 1998


On Tue, 24 Nov 1998, Jeremy Allison wrote:

> The Samba Team are pleased to announce Samba 2.0 Beta2
> 
> Please try this code and give us feedback.
> 
I was dissapointed to see that my socket length arg patch didn't
make into beta 2. It works on sysv4.2 and sysv5 machines and doesn't 
break any others.

Build notes on various platforms.

UnixWare 7:
../configure
[snip]
checking for nawk... nawk
checking host system type... configure: error: can not guess host type; you must
 specify one

So what happened to my patch to config.guess for UniXWare 7 ?

SCO Open Server 3 (3.2v4.2):
Compiling smbd/server.c
In file included from ../include/includes.h:155,
                 from ../smbd/server.c:22:
/usr/include/sys/select.h:41: redefinition of `struct timeval'
In file included from /usr/include/net/route.h:15,
                 from ../include/includes.h:225,
                 from ../smbd/server.c:22:

Struct timeval is declared in sys/time.h and sys/select.h

The following build notes should be added to perhaps docs/textdocs/SCO.txt 
----------< SCO 3.2v4.2 build notes >----------
SCO Guidance

These notes pertain to SCO Open Server 3 (3.2v4.2)

Struct timeval is declared in sys/time.h and sys/select.h

The following diffs may be applied to the problematic system include
files or one may create patched copies of these files in a private
sys directory under the include directory of the Samba build tree. 

*** /usr/include/sys/time.h     Fri Mar 27 05:05:45 1992
--- sys/time.h  Thu Sep  5 19:42:08 1996
***************
*** 32,41 ****
--- 32,44 ----
  #ifndef __sys_time_h__
  #define __sys_time_h__
  
+ #ifndef _STRUCT_TIMEVAL_
+ #define _STRUCT_TIMEVAL_
  struct timeval {
        long            tv_sec; /* seconds */
        long            tv_usec;/* and microseconds */
  };
+ #endif /* _STRUCT_TIMEVAL_ */
  
  struct timezone {
        int             tz_minuteswest; /* minutes west of Greenwich */
*** /usr/include/sys/select.h   Wed Mar  9 00:00:00 1994
--- sys/select.h        Thu Sep  5 19:41:13 1996
***************
*** 38,47 ****
--- 38,50 ----
  /*
   * Structure used to specify timeout in select(2) system call.
   */
+ #ifndef _STRUCT_TIMEVAL_
+ #define _STRUCT_TIMEVAL_
  struct timeval {
        long    tv_sec;         /* seconds */
        long    tv_usec;        /* and microseconds */
  };
+ #endif /* _STRUCT_TIMEVAL_ */
  
  #ifndef _INKERNEL
  #ifdef _NO_PROTOTYPE

----------< END SCO 3.2v4.2 build notes >----------

After fixing the system include files I got
Compiling smbd/server.c
In file included from /usr/include/net/route.h:15,
                 from ../include/includes.h:225,
                 from ../smbd/server.c:22:
/usr/include/sys/net/route.h:52: parse error before `mblk_t'
/usr/include/sys/net/route.h:52: warning: no semicolon at end of struct or union
/usr/include/sys/net/route.h:54: parse error before `}'
../smbd/server.c: In function `main':

Both SCO Open Server 3 and Open Server 5 need <sys/stream.h>
for mblk_t in <net/route.h>

Adding sys/stream.h go me as far as
mkdir bin
Linking bin/smbd
undefined                       first referenced
 symbol                             in file
fchmod                              passdb/passdb.o
mmap                                lib/system.o
ld fatal: Symbol referencing errors. No output written to bin/smbd
gmake: *** [bin/smbd] Error 1

There is no fchmod and no mmap on Open Server 3.


SCO Open Server 5 (5.0.4):
Compiling smbd/server.c
"/usr/include/sys/net/route.h", line 216: error: Syntax error before or at: queu
e_t
"/usr/include/sys/net/route.h", line 216: error: cannot recover from previous er
rors
gmake: *** [smbd/server.o] Error 1

After adding sys/stream.h fixed this.
Now I get

Compiling smbd/server.c
"/usr/include/rpc/rpc_msg.h", line 54: error: Syntax error before or at: 1
"/usr/include/rpc/rpc_msg.h", line 55: warning: syntax violation:  empty declara
tion
"/usr/include/rpc/rpc_msg.h", line 88: error: incomplete struct/union/enum rejec
t_stat: rj_stat
gmake: *** [smbd/server.o] Error 1

Lines 52- 55 of /usr/include/rpc/rpc_msg.h
enum reject_stat {
        RPC_MISMATCH=0,
        AUTH_ERROR=1		<-- line 54
};

I have not tracked this down yet.
> 
> 

-- 
Tim Rice			Multitalents	(707) 887-1469 (voice)
tim at trr.metro.net



More information about the samba-technical mailing list