[Samba] undefined reference to `swrap_close'

imacat imacat at mail.imacat.idv.tw
Mon Jan 16 02:07:07 GMT 2006


On Mon, 16 Jan 2006 08:32:42 +1100
Andrew Bartlett <abartlet at samba.org> wrote:
> On Mon, 2006-01-16 at 03:13 +0800, imacat wrote:
> > 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
> The issue here is that you specified --enable-socket-wrapper, which
> clearly hasn't been tested recently.  It is a developer option, of no
> use until we finish creating a combined Samba3/Samba4 testsuite.  

    Oh.  I see.  Thank you.

    The reason I use --enable-socket-wrapper is for make test.  I
encounter the following problem when trying make test.  I suspect that
--enable-socket-wrapper should be used, but there is no clear
documentation about what it is.  If that is a development code, I think
it should be removed from the testsuite currently, or make a conditional
test suite and skip it when --enable-socket-wrapper is not used.

    The low-level solution seems to be simple: add bin/socket_wrapper.o.
to the end of the ld arguments.  But maybe it should be fixed in
Makefile.in.  To the end of MNT_OBJ and UMOUNT_OBJ, maybe?

imacat at rinse samba-3.0.21a/source % make test
Using FLAGS =  -O -D_SAMBA_BUILD_ -I./popt -Iinclude
-I/tmp/samba-3.0.21a/source/include -I/tmp/samba-3.0.21a/source/ubiqx
-I/tmp/samba-3.0.21a/source/tdb -I/tmp/samba-3.0.21a/source/smbwrapper
-I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/tmp/samba-3.0.21a/source -D_SAMBA_BUILD_
      LIBS = -lcrypt -lresolv -lnsl -ldl
      LDSHFLAGS = -shared -Wl,-Bsymbolic
      LDFLAGS =
      PIE_CFLAGS = -fPIE
      PIE_LDFLAGS = -pie
Compiling torture/torture.c
...
Compiling torture/vfstest.c
Linking bin/vfstest
Running Samba 3 Test suite
***
*** You must include --enable-socket-wrapper when compiling Samba
*** in order to execute 'make test'.  Exiting....
***
make: *** [test] 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/47d915f1/attachment.bin


More information about the samba mailing list