examples/libsmbclient/* link error with libwbclient

Jeremy Allison jra at samba.org
Fri Jan 11 18:51:22 GMT 2008


On Fri, Jan 11, 2008 at 01:22:49PM -0500, Derrell Lipman wrote:
> Hi all.  I'm trying to build the examples/libsmbclient directory with
> current git source.  I've added -lwbclient to the makefile.  Linking now
> gives me this:
> 
> Linking testsmbc
> gcc -O0 -g -I../../source/include `gtk-config --cflags`
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
> -L/usr/local/samba/lib -lldap -lkrb5 -lgssapi_krb5 -o testsmbc
> testsmbc.o-lsmbclient -lwbclient -ldl -lresolv
> /usr/local/samba/lib/libwbclient.so: undefined reference to
> `swrap_getsockopt'
> /usr/local/samba/lib/libwbclient.so: undefined reference to `swrap_connect'
> /usr/local/samba/lib/libwbclient.so: undefined reference to `swrap_socket'
> /usr/local/samba/lib/libwbclient.so: undefined reference to `swrap_close'
> 
> I've added /usr/local/samba/lib to /etc/ld.so.conf.d/samba.conf and rerun
> ldconfig.

Try doing the ./configure without the socket-wrapper option.

Jeremy.


More information about the samba-technical mailing list