[Samba] static libgcc issue on solaris 8
Eric Boehm
boehm at nortel.com
Mon Sep 29 11:44:56 GMT 2008
On Mon, Sep 29, 2008 at 09:40:04AM +0200, vincent.blondel at ing.be wrote:
>>>>> "Vincent" == <vincent.blondel at ing.be> writes:
Vincent> Hello all,
Vincent> little question. Has somebody already compiled samba on
Vincent> SunOS 5.8 because I cannot statically link libgcc
Vincent> libraries.
Vincent> I already tried "gcc -static-libgcc", added "-lgcc_s" to
Vincent> LIBS variable but always the same result.
Vincent> Below resulted compiled binary ..
Vincent> # ldd bin/ntlm_auth
Vincent> libthread.so.1 => /usr/lib/libthread.so.1
Vincent> libsendfile.so.1 => /usr/lib/libsendfile.so.1
Vincent> libresolv.so.2 => /usr/lib/libresolv.so.2
Vincent> libnsl.so.1 => /usr/lib/libnsl.so.1
Vincent> libsocket.so.1 => /usr/lib/libsocket.so.1
Vincent> libdl.so.1 => /usr/lib/libdl.so.1
Vincent> libiconv.so.2 => /usr/local/lib/libiconv.so.2
Vincent> libgssapi_krb5.so.2 => /usr/local/lib/libgssapi_krb5.so.2
Vincent> libkrb5.so.3 => /usr/local/lib/libkrb5.so.3
Vincent> libk5crypto.so.3 => /usr/local/lib/libk5crypto.so.3
Vincent> libcom_err.so.3 => /usr/local/lib/libcom_err.so.3
Vincent> libldap-2.3.so.0 => /usr/local/lib/libldap-2.3.so.0
Vincent> liblber-2.3.so.0 => /usr/local/lib/liblber-2.3.so.0
Vincent> libc.so.1 => /usr/lib/libc.so.1
Vincent> libmp.so.2 => /usr/lib/libmp.so.2
Vincent> libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
Vincent> libkrb5support.so.0 => /usr/local/lib/libkrb5support.so.0
Vincent> libgen.so.1 => /usr/lib/libgen.so.1
Vincent> libsasl2.so.2 => /usr/local/lib/libsasl2.so.2
Vincent> libssl.so.0.9.8 => /usr/local/lib/libssl.so.0.9.8
Vincent> libcrypto.so.0.9.8 => /usr/local/lib/libcrypto.so.0.9.8
Vincent> /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
Vincent> Is there something special with SunOs that I should know
Vincent> to make my compilation work successfully ??
Vincent> Can somebody help me because I absolutely need these
Vincent> binaries statically linked with libgcc libraries ?
Why do you 'absolutely need' the binaries statically linked? That is
strongly discouraged for Solaris.
I think your best option is to use the -R switch when linking so that
it includes /usr/local/lib (-R/usr/local/lib)
If the libgcc libraries aren't in /usr/local/lib on whichever machines
you are running samba on, then put copies of the library in the Samba
lib directory and use -R/usr/local/samba/lib or -R/your/path/to/samba/lib
That's what I due for the kerberos, ldap, ssl, sasl libraries. It does
make the samba install bigger but I don't have to worry about all of
these packages being installed on the system where I want to run
Samba.
--
Eric M. Boehm /"\ ASCII Ribbon Campaign
boehm at nortel.com \ / No HTML or RTF in mail
X No proprietary word-processing
Respect Open Standards / \ files in mail
More information about the samba
mailing list