[Samba] static libgcc issue on solaris 8
Brian H. Nelson
bnelson at cis.ysu.edu
Mon Sep 29 15:00:20 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
>
> 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.
>
Unless you built them all yourself, I'd wager that the libgcc dependency
is coming from one of your support libraries (iconv, krb5, ldap, sasl,
etc). You can check this with 'ldd -sv' on your samba binary.
If you're really bent on not having a libgcc dependency, then build
everything with Sun's compiler. :-)
-Brian
--
---------------------------------------------------
Brian H. Nelson Youngstown State University
System Administrator Media and Academic Computing
bnelson[at]cis.ysu.edu
---------------------------------------------------
More information about the samba
mailing list