[Samba] static libgcc issue on solaris 8

vincent.blondel at ing.be vincent.blondel at ing.be
Mon Sep 29 07:40:04 GMT 2008


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

Is there something special with SunOs that I should know to make my
compilation work successfully ??

Can somebody help me because I absolutely need these binaries statically
linked with libgcc libraries ?

many thanks for your help.
Vincent.
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------




More information about the samba mailing list