examples/libsmbclient/* link error with libwbclient
Stefan (metze) Metzmacher
metze at samba.org
Sat Jan 12 15:41:03 GMT 2008
Hi Derrell,
> Hi all. I'm trying to build the examples/libsmbclient directory with
> current git source. I've added -lwbclient to the makefile.
Why?
> 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'
That's a bug, libwbclient should contain libreplace and socket_wrapper,
I'll push the fix on monday.
> I've added /usr/local/samba/lib to /etc/ld.so.conf.d/samba.conf and rerun
> ldconfig.
> I also tried swapping the order of -lwbclient and -lsmbclient since this
> appears to be a circular reference: libsmbclient requires libwbclient which
> req
Why does libsmbclient requires libwbclient?
metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20080112/54e2e9df/signature.bin
More information about the samba-technical
mailing list