Samba 2.2.2 configuration/compilation problem
Andrew V. Samoilov
kai at cmail.ru
Thu Nov 1 23:21:04 GMT 2001
Hi!
I have some problem to compile samba 2.2.2. Below is my configuration.
./configure --prefix=/usr \
--with-smbclient \
--with-codepagedir=/usr/lib/samba/codepages \
--with-smbmount \
--with-lockdir=/var/lock \
--with-configdir=/etc \
And this is `make -s' output.
Using FLAGS = -O -Iinclude -I./include -I./ubiqx -I./smbwrapper \
-DLOGFILEBASE="/usr/var" -DCONFIGFILE="/etc/smb.conf" \
-DLMHOSTSFILE="/etc/lmhosts" -DSWATDIR="/usr/swat"
-DSBINDIR="/usr/sbin" -DLOCKDIR="/var/lock" \
-DCODEPAGEDIR="/usr/lib/samba/codepages" \
-DDRIVERFILE="/etc/printers.def" -DBINDIR="/usr/bin" -DHAVE_INCLUDES_H \
-DPASSWD_PROGRAM="/bin/passwd" \
-DSMB_PASSWD_FILE="/usr/private/smbpasswd" \
-DTDB_PASSWD_FILE="/usr/private/smbpasswd.tdb" \
Using FLAGS32 = -O -Iinclude -I./include -I./ubiqx -I./smbwrapper \
-DLOGFILEBASE="/usr/var" \
-DCONFIGFILE="/etc/smb.conf" -DLMHOSTSFILE="/etc/lmhosts" \
-DSWATDIR="/usr/swat" -DSBINDIR="/usr/sbin" -DLOCKDIR="/var/lock" \
-DCODEPAGEDIR="/usr/lib/samba/codepages" \
-DDRIVERFILE="/etc/printers.def" -DBINDIR="/usr/bin" -DHAVE_INCLUDES_H \
-DPASSWD_PROGRAM="/bin/passwd" \
-DSMB_PASSWD_FILE="/usr/private/smbpasswd" \
-DTDB_PASSWD_FILE="/usr/private/smbpasswd.tdb" \
Using LIBS = -ldl -lnsl -lcrypt
Compiling smbd/server.c
In file included from smbd/server.c:22:
include/includes.h:382: conflicting types for `socklen_t'
/usr/include/bits/socket.h:35: previous declaration of `socklen_t'
make: *** [smbd/server.o] Ошибка 1
I can see such lines in `./configure ...` output:
checking for socklen_t type... yes
But there is no
#define HAVE_SOCKLEN_T_TYPE 1
in include/config.h.
If you need some more info, mail me please.
P.S. There is 10629K source/cvs.log file in samba-2.2.2 distribution.
P.P.S. Can you recommend some documentation about smbclient shared library usage?
I try to replace Midnight Commander samba 2.0.4a based smbfs with this shared
library, but I have some problem: I need something like smbclient-devel package
with proto.h and includes.h to compile this project with your shared library.
After some work I compile mc with libsmbclient.so, but mc's configure thinks
my system (Slackware 7.1 glibc 2.1.3) have large file support, but samba 2.2.2
configure does not agree ;-). So some very unpleasant things happens.
Regards,
Andrew.
More information about the samba
mailing list