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. -----------------------------------------------------------------
On Mon, Sep 29, 2008 at 09:40:04AM +0200, vincent.blondel@ing.be wrote:>>>>> "Vincent" == <vincent.blondel@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@nortel.com \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail
vincent.blondel@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 ---------------------------------------------------
> vincent.blondel@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.1What 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@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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dennis Clarke wrote:>> vincent.blondel@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.FYI, Studio 12 has been out for awhile. - -- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$&| |__| | | |__/ | \| _| |novosirj@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 iD8DBQFI4QAnmb+gadEcsb4RAviYAJ9GIUJgKOwajh2WQqQ7CNG7RCyucQCfcbKl k+byr22crQJZxIV0aU9OxGg=85II -----END PGP SIGNATURE-----