[Samba] static libgcc issue on solaris 8

Ryan Novosielski novosirj at umdnj.edu
Mon Sep 29 13:58:19 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric Boehm wrote:
> 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 I've heard that for very recent releases of Solaris, it's all
but impossible.

- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI4N77mb+gadEcsb4RApz1AJ9nV/RclLiolSJQ0DH0EPuhBxbEjACglQDp
FQ60g6Fa6BtHxc+3Ey/+1lw=
=1JpH
-----END PGP SIGNATURE-----


More information about the samba mailing list