[Samba] Samba 4.1.4 on Solaris 10 fails linking 'default/examples/libsmbclient/teststatvfs'
Thomas Schulz
schulz at adi.com
Fri Feb 21 09:14:40 MST 2014
>
> Building Samba 4.1.4 on Solaris 10 with command line:
>
> CC=gcc LDFLAGS='-R /opt/local/samba/lib:/opt/local/samba/lib/private' \
> ./configure --prefix=/opt/local/samba
> make
>
> fails linking 'default/examples/libsmbclient/teststatvfs':
>
> [3505/3811] Linking default/examples/libsmbclient/teststatvfs
> ld: warning: symbol 'dyn_LIBDIR' has differing sizes:
> (file /usr/sfw/lib/libsmbclient.so value=0x400; file default/lib/util/libsamba-util.so value=0x4);
> /usr/sfw/lib/libsmbclient.so definition taken
> ld: warning: symbol 'dyn_SHLIBEXT' has differing sizes:
> (file /usr/sfw/lib/libsmbclient.so value=0x100; file default/lib/util/libsamba-util.so value=0x4);
> /usr/sfw/lib/libsmbclient.so definition taken
>------------------------- several lines removed -----------------------
> ld: fatal: symbol referencing errors. No output written to /opt/local/src/etc/samba-4.1.4/bin/default/examples/libsmbclient/teststatvfs
> collect2: ld returned 1 exit status
> Waf: Leaving directory `/opt/local/src/etc/samba-4.1.4/bin'
> Build failed: -> task failed (err #1):
> {task: cc_link teststatvfs_19.o -> teststatvfs}
> make: *** [all] Error 1
>
> Any hints on how to proceed?
>
> Thanks,
> Mike
Strange, that did not happen when I built it. And how/why is it finding
file /usr/sfw/lib/libsmbclient.so? Do you have LD_LIBRARY_PATH or some
such defined? At least on my system '/usr/sfw' is not on any path that
would be searched by the linker. If you can not find out why it is looking
there then perhaps you could just rename /usr/sfw/lib/libsmbclient.so to
something like /usr/sfw/lib/libsmbclient.so.hide to make it go away.
Tom Schulz
Applied Dynamics Intl.
schulz at adi.com
More information about the samba
mailing list