[Samba] undefined reference to `swrap_close'

imacat imacat at mail.imacat.idv.tw
Sun Jan 15 19:13:03 GMT 2006


Hi,

    This is imacat from Taiwan.  I tried to compile samba 3.0.21a, but
failed.  I searched the Google with no return.  (Strange.  Nobody
encounter this same problem before?)  Could anyone help?  Thank you.

    My build environment is: Debian 3.1r1 Sarge, Linux 2.6.14.5, gcc
4.0.2, glibc 2.3.5.  Please tell me if more information is required.

imacat at rinse samba-3.0.21a/source % ./configure --prefix=/usr
--sbindir=/usr/sbin --sysconfdir=/etc --localstatedir=/var
--infodir=/usr/share/info --mandir=/usr/share/man
--enable-socket-wrapper --with-fhs --with-piddir=/var/run
--with-smbwrapper --with-smbmount --with-pam --with-pam_smbpass
--with-libsmbclient --with-sendfile-support
SAMBA VERSION: 3.0.21a
checking for -fPIE... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
...
checking how to build vfs_catia... not
Using libraries:
    LIBS = -lcrypt -lresolv -lnsl -ldl
    AUTH_LIBS = -lcrypt  -lpam -lpam
checking configure summary... yes
configure: creating ./config.status
config.status: creating include/stamp-h
config.status: creating Makefile
config.status: creating script/findsmb
config.status: creating smbadduser
config.status: creating script/gen-8bit-gap.sh
config.status: creating include/config.h
imacat at rinse samba-3.0.21a/source % make
Using FLAGS =  -O -D_SAMBA_BUILD_ -I./popt -Iinclude
-I/usr/local/src/samba-3.0.21a/source/include
-I/usr/local/src/samba-3.0.21a/source/ubiqx
-I/usr/local/src/samba-3.0.21a/source/tdb
-I/usr/local/src/samba-3.0.21a/source/smbwrapper -I.
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/usr/local/src/samba-3.0.21a/source -D_SAMBA_BUILD_
      LIBS = -lcrypt -lresolv -lnsl -ldl
      LDSHFLAGS = -shared -Wl,-Bsymbolic
      LDFLAGS =
      PIE_CFLAGS = -fPIE
      PIE_LDFLAGS = -pie
Generating smbd/build_options.c
Building include/proto.h
creating /usr/local/src/samba-3.0.21a/source/include/proto.h
....
Linking bin/smbmount
Compiling client/smbmnt.c
Linking bin/smbmnt
client/smbmnt.o(.text+0x80d): In function `main':
: undefined reference to `swrap_close'
collect2: ld returned 1 exit status
make: *** [bin/smbmnt] Error 1
You have new mail.
imacat at rinse samba-3.0.21a/source %

--
Best regards,
imacat ^_*' <imacat at mail.imacat.idv.tw>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20060116/26658230/attachment.bin


More information about the samba mailing list