[Samba] smbwrapper/smbw.c does not compile (Error 1)
Arne R. van der Heyde
vanderHeydeAR at summitinstruments.com
Thu Jun 19 14:38:22 GMT 2003
After discovering a bug in the SuSE Samba binary (2.2.7a and 2.2.8a)
which prevents some older DOS programs from creating files on a Samba
share, I downloaded and built Samba 2.2.8a from the sources. Everything
seems to work now (the old DOS programs are able to write to Samba
shares) with the exception of smbwrapper which causes the following
errors when Samba is built:
Test2:/usr/src/samba-2.2.8a/source # make
Using FLAGS = -O -I./popt -Iinclude -I./include -I./ubiqx
-I./smbwrapper -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -DLOGFILEBASE="/var/log/samba"
-DCONFIGFILE="/etc/samba/smb.conf" -DLMHOSTSFILE="/etc/samba/lmhosts"
-DSWATDIR="/usr/share/samba/swat" -DSBINDIR="/usr/lib/samba/classic"
-DLOCKDIR="/var/lock/samba" -DCODEPAGEDIR="/usr/share/samba"
-DDRIVERFILE="/etc/samba/printers.def" -DBINDIR="/usr/lib/samba/classic"
-DPIDDIR="/var/run/samba" -DLIBDIR="/usr/share/lib" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/usr/bin/passwd"
-DSMB_PASSWD_FILE="/etc/samba/smbpasswd"
-DTDB_PASSWD_FILE="/etc/samba/smbpasswd.tdb"
Using FLAGS32 = -O -I./popt -Iinclude -I./include -I./ubiqx
-I./smbwrapper -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -DLOGFILEBASE="/var/log/samba"
-DCONFIGFILE="/etc/samba/smb.conf" -DLMHOSTSFILE="/etc/samba/lmhosts"
-DSWATDIR="/usr/share/samba/swat" -DSBINDIR="/usr/lib/samba/classic"
-DLOCKDIR="/var/lock/samba" -DCODEPAGEDIR="/usr/share/samba"
-DDRIVERFILE="/etc/samba/printers.def" -DBINDIR="/usr/lib/samba/classic"
-DPIDDIR="/var/run/samba" -DLIBDIR="/usr/share/lib" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/usr/bin/passwd"
-DSMB_PASSWD_FILE="/etc/samba/smbpasswd"
-DTDB_PASSWD_FILE="/etc/samba/smbpasswd.tdb"
Using LIBS = -lcups -lssl -lcrypto -lnsl -lcrypt
Compiling smbwrapper/smbw.c with -fPIC
smbwrapper/smbw.c: In function `smbw_parse_path':
smbwrapper/smbw.c:331: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c:339: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c:346: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c: In function `smbw_lseek':
smbwrapper/smbw.c:1258: warning: passing arg 4 of `cli_getattrE' from
incompatible pointer type
smbwrapper/smbw.c: At top level:
smbwrapper/smbw.c:1523: warning: no semicolon at end of struct or union
smbwrapper/smbw.c:1523: error: parse error before '.' token
smbwrapper/smbw.c:1525: error: parse error before '.' token
smbwrapper/smbw.c:1527: error: parse error before '.' token
smbwrapper/smbw.c:1531: error: parse error before '}' token
smbwrapper/smbw.c: In function `xstat_convert':
smbwrapper/smbw.c:1548: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1549: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1550: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1551: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1552: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1553: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1554: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1555: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1556: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1557: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1558: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1559: error: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1560: error: dereferencing pointer to incomplete type
make: *** [smbwrapper/smbw.po] Error 1
Any suggestions as to what might be causing this problem?
Thanks,
Arne R. van der Heyde
vanderHeydeAR at summitinstruments.ocom
More information about the samba
mailing list