Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

OpenSSH & OpenSSL directory location problem.

From: jpiszcz <jpiszcz(at)lucidpixels.com>
Date: Fri Jan 31 2003 - 14:19:56 EST


Problem: scp does not work with custom openssl library location

OpenSSH & OpenSSL directory location problem.

checking whether snprintf correctly terminates long strings... yes checking whether getpgrp requires zero arguments... yes checking OpenSSL header version... 90608f (OpenSSL 0.9.6h [engine] 5 Dec 2002)
checking OpenSSL library version... 90608f (OpenSSL 0.9.6h [engine] 5 Dec 2002)
checking whether OpenSSL's headers match the library... yes checking for crypt in -lcrypt... yes
checking whether OpenSSL's PRNG is internally seeded... yes checking for ls... /bin/ls

As you can see it finds it just fine by using the GCC variables below.

              Host: i686-pc-linux-gnu
          Compiler: gcc
    Compiler flags: -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
Preprocessor flags: -I/vapp/include
      Linker flags: -L/vapp/lib
         Libraries:   -lutil -lz -lnsl  -lcrypto -lcrypt

# GCC Variables (works with all programs, except OpenSSH. export C_INCLUDE_PATH=/vapp/include:/usr/X11R6/include export CPLUS_INCLUDE_PATH=/vapp/include:/usr/X11R6/include export LIBRARY_PATH=/vapp/lib
# So, also included these:
export LDFLAGS=-L/vapp/lib
export CPPFLAGS=-I/vapp/include
# Also tried this option.
  --without-rpath Disable auto-added -R linker paths

# Yet, with every one of these, I get this error with SCP ONLY (SSH=FINE) $ scp war@p300:/home/war/ping6 .
war@p300's password:
scp: error while loading shared libraries: libcrypto.so.0.9.6: cannot open shared object file: No such file or directory

Why is this? The daemon (sshd) works fine with no errors of the sort. Yet, when doing an SCP I get the error as defined above.

[war@war war]$ ssh p300

war@p300's password:
Last login: Fri Jan 31 13:39:58 2003 from 192.168.168.24 war@p300:~$

Do you need help?X

( no problems )

control-d
Connection to p300 closed.
[war@war war]$

Connection to p300 closed.
[war@war war]$ scp war@p300:/home/war/ping6 .
war@p300's password:
scp: error while loading shared libraries: libcrypto.so.0.9.6: cannot open shared object file: No such file or directory
[war@war war]$

war@p300:~$ ldd `which sshd`

        libutil.so.1 => /lib/libutil.so.1 (0x40016000)
        libz.so.1 => /vapp/lib/libz.so.1 (0x40019000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40027000)
        libcrypto.so.0.9.6 => /vapp/lib/libcrypto.so.0.9.6 (0x4003c000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40109000)
        libc.so.6 => /lib/libc.so.6 (0x40136000)
        libdl.so.2 => /lib/libdl.so.2 (0x40259000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
war@p300:~$

war@p300:~$ ldd `which sshd`

        libutil.so.1 => /lib/libutil.so.1 (0x40016000)
        libz.so.1 => /vapp/lib/libz.so.1 (0x40019000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40027000)
        libcrypto.so.0.9.6 => /vapp/lib/libcrypto.so.0.9.6 (0x4003c000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40109000)
        libc.so.6 => /lib/libc.so.6 (0x40136000)
        libdl.so.2 => /lib/libdl.so.2 (0x40259000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
war@p300:~$ echo $PATH
/vapp/bin:/vapp/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin war@p300:~$ echo $LD_LIBRARY_PATH
/vapp/lib:/lib:/usr/lib:/usr/X11R6/lib
war@p300:~$

So question = why does it work fine with sshd and not scp? Received on Mon Feb 3 12:10:08 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:52 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library