[Samba] Samba v2.2.12 NTLM versions?

Horder, Philip Philip.Horder at Teradata.com
Sun Jul 13 19:41:36 GMT 2008



>> It then fails the c compiler with:
>> c99 structure initializer are not supported
>
>Ok. We make use of those for example at the bottom of
>librpc/gen_ndr/ndr_wkssvc.c. It is pretty straightforward to
>convert those to non-named initializers and remove the
>configure check. If that is the only thing your compiler can
>not do, this is boring but definitely easier than getting
>2.2 up to speed with current Windows versions.
Ok, I'll start compiling, and see what falls over. 
>> Any suggestions on;
>> 1. getting configure to find grep, awk, nawk, etc.
>
>I'm not aware that we actually depend on those.
Needed to patch Makefile to set "AWK=nawk" 

>If you have autotools around, you might want to comment out...
No such luck. So I went for it. The following is the result. As you can
see it didn't get very far, and I don't understand why. For some reason,
Make complains that I haven't run configure, and also complains about
"hostname: not found". Then it completely dies trying to compile
dynconfig.h. I've looked at most of these errors & warnings, and can't
find a single thing wrong with the source code at the lines mentioned.
It looks like there is still some configuration stuff missing, but I
don't know what. Here's the compiler output. Any suggestions, 'cos this
is looking pretty hopeless to me, as I haven't even got to the c99
initialiser errors yet?! phil.
------------------------------------------------------------------------
---------------------------------------------------------------------
4980-laiptc6:/home/laiptc6/samba-3.0.28a/source>make
Using FLAGS = -O -D_SAMBA_BUILD_=3
-I/home/laiptc6/samba-3.0.28a/source/popt
-I/home/laiptc6/samba-3.0.28a/source/iniparser/src -Iinclude -I./include
-I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns
-I./librpc -DHAVE_CONFIG_H -I/home/laiptc6/samba-3.0.28a/source/lib
-D_SAMBA_BUILD_=3
PICFLAG = -fPIE
LIBS = -lresolv -lnsl
LDFLAGS = -pie 
DYNEXP = 
LDSHFLAGS = shared-libraries-disabled 
SHLIBEXT = shared_libraries_disabled
SONAMEFLAG = shared-libraries-disabled
Building include/proto.h
creating /home/laiptc6/samba-3.0.28a/source/include/proto.h
Building include/build_env.h
UX:sh (build_env.sh): ERROR: hostname: not found
creating /home/laiptc6/samba-3.0.28a/source/nsswitch/winbindd_proto.h
creating /home/laiptc6/samba-3.0.28a/source/web/swat_proto.h
creating /home/laiptc6/samba-3.0.28a/source/client/client_proto.h
creating /home/laiptc6/samba-3.0.28a/source/utils/net_proto.h
creating /home/laiptc6/samba-3.0.28a/source/utils/ntlm_auth_proto.h
WARNING: you need to run ./configure
WARNING: you need to run ./config.status
Compiling dynconfig.c
NCR High Performance C Compiler R3.0c 
(c) Copyright 1994-98, NCR Corporation
(c) Copyright 1987-98, MetaWare Incorporated
E "/usr/include/arpa/inet.h",L66/C19(#164): in_addr_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L40/C27.
E "/usr/include/arpa/inet.h",L67/C19(#164): in_port_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L39/C28.
E "/usr/include/arpa/inet.h",L68/C1(#164): in_addr_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L40/C27.
E "/usr/include/arpa/inet.h",L69/C1(#164): in_port_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L39/C28.
w "/usr/include/sys/bitypes.h",L82/C1(#31): Identifier missing in
declaration.
E "/usr/include/sys/bitypes.h",L87/C16(#95): short: short is superfluous
here.
w "/usr/include/sys/bitypes.h",L87/C1(#31): Identifier missing in
declaration. E "/usr/include/sys/bitypes.h",L88/C15: (syntactic)
unexpected symbol:'char'
REPAIR: ';' was inserted before
'char'@"/usr/include/sys/bitypes.h",L88/C15 <mailto:'char'@>  E
"/usr/include/rpc/auth.h",L80/C11: (syntactic) unexpected
symbol:'<IDENTIFIER>':high
REPAIR: No_specifiers@"/usr/include/rpc/auth.h",L80/C3
<mailto:No_specifiers@>  through ';'@"/usr/include/rpc/auth.h",L80/C15
was replaced with '#pragma'
w (#657): (info) How referenced files were included:
| File /usr/include/netinet/in.h from ./lib/replace/system/network.h
from include/includes.h from
/home/laiptc6/samba-3.0.28a/source/dynconfig.c.
| File /usr/include/arpa/inet.h from ./lib/replace/system/network.h from
include/includes.h from /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
| File /usr/include/sys/bitypes.h from /usr/include/netdb.h from
./lib/replace/system/network.h from include/includes.h from
/home/laiptc6/samba-3.0.28a/source/dynconfig.c.
| File /usr/include/rpc/auth.h from /usr/include/rpc/rpc.h from
include/includes.h from /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
7 user errors 3 warnings 
The following command failed:
cc -Xc -D__EXTENSIONS__ -O -D_SAMBA_BUILD_=3
-I/home/laiptc6/samba-3.0.28a/source/popt
-I/home/laiptc6/samba-3.0.28a/source/iniparser/src -Iinclude -I./include
-I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns
-I./librpc -DHAVE_CONFIG_H -I/home/laiptc6/samba-3.0.28a/source/lib
-D_SAMBA_BUILD_=3 -DCONFIGFILE="/usr/local/samba/lib/smb.conf"
-DSBINDIR="/usr/local/samba/sbin" -DBINDIR="/usr/local/samba/bin"
-DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"
-DSWATDIR="/usr/local/samba/swat" -DLOCKDIR="/usr/local/samba/var/locks"
-DPIDDIR="/usr/local/samba/var/locks" -DLIBDIR="/usr/local/samba/lib"
-DLOGFILEBASE="/usr/local/samba/var"
-DSHLIBEXT="shared_libraries_disabled"
-DCONFIGDIR="/usr/local/samba/lib"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
-DPRIVATE_DIR="/usr/local/samba/private" -fPIE -c
/home/laiptc6/samba-3.0.28a/source/dynconfig.c -o dynconfig.o
*** Error code 7 (bu21) make: fatal error.
4980-laiptc6:/home/laiptc6/samba-3.0.28a/source>




More information about the samba mailing list