Bug 2963 - samba forgot openSLL libraries link
samba forgot openSLL libraries link
Status: RESOLVED INVALID
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.20
All Linux
: P3 critical
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-08 03:22 UTC by spurnelle
Modified: 2005-08-15 11:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spurnelle 2005-08-08 03:22:45 UTC
When I start samba, samba don't start because some links not exist : 

Starting SMB services: /usr/local/samba/sbin/smbd: error while loading shared
libraries: libssl.so.0.9.7: cannot open shared object file: No such file or
directory
/usr/local/samba/sbin/nmbd: error while loading shared libraries:
libssl.so.0.9.7: cannot open shared object file: No such file or directory
                                                           [ECHOUE]

Step to reproduce : 
compile openssl with prefix = /usr/local/openssl
compile samba : 

export CPPFLAGS="-I/usr/local/openssl/include -I/usr/local/openldap/include"
export LDFLAGS="-L/usr/local/openssl/lib -L/usr/local/openldap/lib"
export LD_LIBRARY_PATH="/usr/local/openssl/lib:/usr/local/openldap/lib"

tar xvzf samba-3.x.xx.tar.gz
cd samba-3.0.20rc1
cd source
./configure --with-ldap --with-acl-support --with-configdir=/etc/samba
--sysconfdir=/etc/samba --with-ssl
make
make install
/etc/rc.d/init.d/smb restart

work

restart server
Starting SMB services: /usr/local/samba/sbin/smbd: error while loading shared
libraries: libssl.so.0.9.7: cannot open shared object file: No such file or
directory
/usr/local/samba/sbin/nmbd: error while loading shared libraries:
libssl.so.0.9.7: cannot open shared object file: No such file or directory
                                                           [ECHOUE]


if you modify smb init script for add : 
export LD_LIBRARY_PATH="/usr/local/openssl/lib:/usr/local/openldap/lib"

smbd start
but if I excute ldd : 
[root@cortest root]# ldd /usr/local/samba/sbin/smbd
        libldap-2.2.so.7 => /usr/local/lib/libldap-2.2.so.7 (0x4001f000)
        liblber-2.2.so.7 => /usr/local/lib/liblber-2.2.so.7 (0x4004d000)
        libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x40059000)
        libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x4006c000)
        libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x400ca000)
        libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x400da000)
        libcups.so.2 => /usr/lib/libcups.so.2 (0x400dc000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x400f8000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4010a000)
        libattr.so.1 => /lib/libattr.so.1 (0x40136000)
        libacl.so.1 => /lib/libacl.so.1 (0x4013a000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40142000)
        libdl.so.2 => /lib/libdl.so.2 (0x40152000)
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40156000)
        libc.so.6 => /lib/libc.so.6 (0x4015e000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x40282000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libssl.so.0.9.7 => not found
        libcrypto.so.0.9.7 => not found
Comment 1 Gerald (Jerry) Carter 2005-08-15 11:44:35 UTC
You need to either add /usr/local/openssl/lib
to /etc/ls.do.conf or encode the directory in the 
library search path inside smbd.  This is an environmental issue 
and not a fault with the Samba Makefile.