[Samba] Samba 4.1.4 on Solaris 10 fails linking 'default/examples/libsmbclient/teststatvfs'
mikep at noc.utoronto.ca
mikep at noc.utoronto.ca
Fri Feb 21 13:11:15 MST 2014
On Fri, 21 Feb 2014, Thomas Schulz wrote:
>> 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
No idea why '/usr/sfw/lib' is being used; it's not on any path that I have
set, or in 'crle'.
I'll look into your suggestion next week - thanks!
Mike
--
Mike Peterson Information Security Analyst - Audit
E-mail: mikep at noc.utoronto.ca WWW: http://www.noc.utoronto.ca/
Tel: 416-978-5230 Fax: 416-978-6620
More information about the samba
mailing list