mikep at noc.utoronto.ca
2014-Feb-20 16:10 UTC
[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 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 ld: warning: symbol 'override_logfile' has differing sizes: (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/lib/util/libsamba-util.so value=0x1); /usr/sfw/lib/libsmbclient.so definition taken ld: warning: symbol 'dyn_SMB_PASSWD_FILE' 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_PIDDIR' 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_LOGFILEBASE' 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_CONFIGFILE' 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_LOCKDIR' 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_LMHOSTSFILE' 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_PRIVATE_DIR' 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 'nt_err_desc' has differing sizes: (file /usr/sfw/lib/libsmbclient.so value=0x2e0; file default/libcli/util/liberrors.so value=0x2f8); /usr/sfw/lib/libsmbclient.so definition taken ld: warning: symbol 'current_user' has differing sizes: (file /usr/sfw/lib/libsmbclient.so value=0x1c; file default/source3/libsmbconf.so value=0x28); /usr/sfw/lib/libsmbclient.so definition taken ld: warning: symbol 'bLoaded' has differing sizes: (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/source3/libsmbconf.so value=0x1); /usr/sfw/lib/libsmbclient.so definition taken ld: warning: symbol 'current_user_info' has differing sizes: (file /usr/sfw/lib/libsmbclient.so value=0x400; file default/source3/libsmbconf.so value=0x300); /usr/sfw/lib/libsmbclient.so definition taken ld: warning: symbol 'posix_default_lock_was_set' has differing sizes: (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/source3/libsmbconf.so value=0x1); /usr/sfw/lib/libsmbclient.so definition taken ld: warning: symbol 'global_in_nmbd' has differing sizes: (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/source3/libgse.so value=0x1); /usr/sfw/lib/libsmbclient.so definition taken Undefined first referenced symbol in file smbc_statvfs default/examples/libsmbclient/teststatvfs_19.o 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 -- 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
Andrew Bartlett
2014-Feb-24 03:23 UTC
[Samba] Samba 4.1.4 on Solaris 10 fails linking 'default/examples/libsmbclient/teststatvfs'
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 > ld: warning: symbol 'override_logfile' has differing sizes: > (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/lib/util/libsamba-util.so value=0x1); > /usr/sfw/lib/libsmbclient.so definition taken > ld: warning: symbol 'dyn_SMB_PASSWD_FILE' 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_PIDDIR' 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_LOGFILEBASE' 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_CONFIGFILE' 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_LOCKDIR' 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_LMHOSTSFILE' 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_PRIVATE_DIR' 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 'nt_err_desc' has differing sizes: > (file /usr/sfw/lib/libsmbclient.so value=0x2e0; file default/libcli/util/liberrors.so value=0x2f8); > /usr/sfw/lib/libsmbclient.so definition taken > ld: warning: symbol 'current_user' has differing sizes: > (file /usr/sfw/lib/libsmbclient.so value=0x1c; file default/source3/libsmbconf.so value=0x28); > /usr/sfw/lib/libsmbclient.so definition taken > ld: warning: symbol 'bLoaded' has differing sizes: > (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/source3/libsmbconf.so value=0x1); > /usr/sfw/lib/libsmbclient.so definition taken > ld: warning: symbol 'current_user_info' has differing sizes: > (file /usr/sfw/lib/libsmbclient.so value=0x400; file default/source3/libsmbconf.so value=0x300); > /usr/sfw/lib/libsmbclient.so definition taken > ld: warning: symbol 'posix_default_lock_was_set' has differing sizes: > (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/source3/libsmbconf.so value=0x1); > /usr/sfw/lib/libsmbclient.so definition taken > ld: warning: symbol 'global_in_nmbd' has differing sizes: > (file /usr/sfw/lib/libsmbclient.so value=0x4; file default/source3/libgse.so value=0x1); > /usr/sfw/lib/libsmbclient.so definition taken > Undefined first referenced > symbol in file > smbc_statvfs default/examples/libsmbclient/teststatvfs_19.o > 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 -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba