[Samba] Samba 4.1.4 on Solaris 10 fails linking 'default/examples/libsmbclient/teststatvfs'

Thomas Schulz schulz at adi.com
Thu Feb 27 18:00:52 MST 2014


> On Mon, 24 Feb 2014, Andrew Bartlett wrote:
> 
> > On Thu, 2014-02-20 at 11:10 -0500, mikep at noc.utoronto.ca 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?
> >
> > See https://bugzilla.samba.org/show_bug.cgi?id=10112
> 
> On Fri, 21 Feb 2014, Thomas Schulz wrote:
> > 
> > Date: Fri, 21 Feb 2014 11:14:40 -0500 (EST)
> > From: Thomas Schulz <schulz at adi.com>
> > To: mikep at noc.utoronto.ca, samba at lists.samba.org
> > Subject: [Samba] Samba 4.1.4 on Solaris 10 fails linking
> >     'default/examples/libsmbclient/teststatvfs'
> > 
> > > 
> > > 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
> > >------------------------- 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.
> 
> Did this (still no idea why the install looks at '/usr/sfw', except 
> possibly that's where Python is coming from?), applied patches from 
> "https://bugzilla.samba.org/show_bug.cgi?id=10112", and rebuilt; seemed to 
> help, but build now fails at:
> 
> [3696/3811] Generating man/talloc.3
> I/O error : Attempt to load network entity 
> http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
> ../lib/talloc/man/talloc.3.xml:2: warning: failed to load external entity 
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
> D DocBook XML V4.2//EN" 
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
------------------------------- Several lines removed ---------------
> and 100's more similar messages.

I got those too. But at the end it claimed to have finished properly.
And it did create the man pages. So I just ignored those messages.

> 
> Mike

Tom Schulz
Applied Dynamics Intl.
schulz at adi.com


More information about the samba mailing list