examples/libsmbclient/* link error with libwbclient

Derrell Lipman derrell.lipman at unwireduniverse.com
Fri Jan 11 19:12:34 GMT 2008


On Jan 11, 2008 1:51 PM, Jeremy Allison <jra at samba.org> wrote:
>
> 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.

I had not explicitly requested socket-wrapper, but I see that it's
included in configure.developer.  Doing the configure without
socket-wrapper solves the link error.  Thanks!

Is configure.developer no longer appropriate to use in conjunction
with the example directory, or is something broken right now?

Derrell


More information about the samba-technical mailing list