[Samba] static libgcc issue on solaris 8
Dennis Clarke
dclarke at blastwave.org
Mon Sep 29 16:03:54 GMT 2008
> vincent.blondel at ing.be wrote:
>> Hello all,
>>
>> little question. Has somebody already compiled samba on SunOS 5.8
>> because I cannot statically link libgcc libraries.
>>
>> I already tried "gcc -static-libgcc", added "-lgcc_s" to LIBS variable
>> but always the same result.
>>
>> Below resulted compiled binary ..
>>
>> # ldd bin/ntlm_auth
>> libthread.so.1 => /usr/lib/libthread.so.1
>> libsendfile.so.1 => /usr/lib/libsendfile.so.1
>> libresolv.so.2 => /usr/lib/libresolv.so.2
>> libnsl.so.1 => /usr/lib/libnsl.so.1
>> libsocket.so.1 => /usr/lib/libsocket.so.1
>> libdl.so.1 => /usr/lib/libdl.so.1
>> libiconv.so.2 => /usr/local/lib/libiconv.so.2
>> libgssapi_krb5.so.2 => /usr/local/lib/libgssapi_krb5.so.2
>> libkrb5.so.3 => /usr/local/lib/libkrb5.so.3
>> libk5crypto.so.3 => /usr/local/lib/libk5crypto.so.3
>> libcom_err.so.3 => /usr/local/lib/libcom_err.so.3
>> libldap-2.3.so.0 => /usr/local/lib/libldap-2.3.so.0
>> liblber-2.3.so.0 => /usr/local/lib/liblber-2.3.so.0
>> libc.so.1 => /usr/lib/libc.so.1
>> libmp.so.2 => /usr/lib/libmp.so.2
>> libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
>> libkrb5support.so.0 => /usr/local/lib/libkrb5support.so.0
>> libgen.so.1 => /usr/lib/libgen.so.1
>> libsasl2.so.2 => /usr/local/lib/libsasl2.so.2
>> libssl.so.0.9.8 => /usr/local/lib/libssl.so.0.9.8
>> libcrypto.so.0.9.8 => /usr/local/lib/libcrypto.so.0.9.8
>> /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
What version of samba is this ? ( it may not matter )
Your concern is libgcc_s.so.1 ?
Just use Sun Studio 11.
this is what I have on Solaris 8 :
$ ldd /opt/csw/bin/ntlm_auth
libthread.so.1 => /usr/lib/libthread.so.1
libsendfile.so.1 => /usr/lib/libsendfile.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libdl.so.1 => /usr/lib/libdl.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libiconv.so.2 => /opt/csw/lib/i386/libiconv.so.2
libpopt.so.0 => /opt/csw/lib/i386/libpopt.so.0
libldap-2.3.so.0 => /opt/csw/lib/pentium/libldap-2.3.so.0
liblber-2.3.so.0 => /opt/csw/lib/pentium/liblber-2.3.so.0
libtalloc.so.1 => /opt/csw/lib/i386/libtalloc.so.1
libtdb.so.1 => /opt/csw/lib/i386/libtdb.so.1
libwbclient.so.0 => /opt/csw/lib/i386/libwbclient.so.0
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libintl.so.3 => /opt/csw/lib/libintl.so.3
libgen.so.1 => /usr/lib/libgen.so.1
libnet.so => /opt/csw/lib/i386/libnet.so
libsasl2.so.2 => /opt/csw/lib/i386/libsasl2.so.2
libssl.so.0.9.8 => /opt/csw/lib/pentium_pro/libssl.so.0.9.8
libcrypto.so.0.9.8 => /opt/csw/lib/pentium_pro/libcrypto.so.0.9.8
$
also
$ ldd /opt/csw/sbin/smbd
libthread.so.1 => /usr/lib/libthread.so.1
libldap-2.3.so.0 => /opt/csw/lib/pentium/libldap-2.3.so.0
liblber-2.3.so.0 => /opt/csw/lib/pentium/liblber-2.3.so.0
libpam.so.1 => /usr/lib/libpam.so.1
libsec.so.1 => /usr/lib/libsec.so.1
libsendfile.so.1 => /usr/lib/libsendfile.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libdl.so.1 => /usr/lib/libdl.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libiconv.so.2 => /opt/csw/lib/i386/libiconv.so.2
libpopt.so.0 => /opt/csw/lib/i386/libpopt.so.0
libtalloc.so.1 => /opt/csw/lib/i386/libtalloc.so.1
libtdb.so.1 => /opt/csw/lib/i386/libtdb.so.1
libwbclient.so.0 => /opt/csw/lib/i386/libwbclient.so.0
libc.so.1 => /usr/lib/libc.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libnet.so => /opt/csw/lib/i386/libnet.so
libsasl2.so.2 => /opt/csw/lib/i386/libsasl2.so.2
libssl.so.0.9.8 => /opt/csw/lib/pentium_pro/libssl.so.0.9.8
libcrypto.so.0.9.8 => /opt/csw/lib/pentium_pro/libcrypto.so.0.9.8
libcmd.so.1 => /usr/lib/libcmd.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libintl.so.3 => /opt/csw/lib/libintl.so.3
This is Samba 3.2.2 thus :
$ /opt/csw/sbin/smbd -b | more
Build environment:
Built by: dclarke at titan
Built on: Fri Aug 22 19:31:13 EDT 2008
Built using: cc
Build host: SunOS titan 5.8 Generic_117351-55 i86pc i386 i86pc
SRCDIR:
/export/nfs/dclarke/build/samba/samba-3.2.2-build/../samba-3.2.2
/source
BUILDDIR: /export/nfs/dclarke/build/samba/samba-3.2.2-build
Paths:
SBINDIR: /opt/csw/sbin
BINDIR: /opt/csw/bin
SWATDIR: /opt/csw/share/samba/swat
CONFIGFILE: /etc/opt/csw/samba/smb.conf
LOGFILEBASE: /var/opt/csw/samba/state
LMHOSTSFILE: /etc/opt/csw/samba/lmhosts
LIBDIR: /opt/csw/lib
SHLIBEXT: so
LOCKDIR: /var/opt/csw/samba/lock
PIDDIR: /var/opt/csw/samba
SMB_PASSWD_FILE: /etc/opt/csw/samba/private/smbpasswd
PRIVATE_DIR: /etc/opt/csw/samba/private
what are you doing to get your results ?
Dennis
More information about the samba
mailing list