Thanks for the reply. Unfortunately no LDD. But using arm-linux-objdump
-x reveals the following:
Dynamic Section:
NEEDED libc.so.0
NEEDED libdl.so.0
NEEDED libz.so
NEEDED libcrypto.so.0.9.8
NEEDED libutil.so.0
NEEDED libcrypt.so.0
NEEDED libresolv.so.0
HASH 0x8130
STRTAB 0x9888
SYMTAB 0x8858
STRSZ 0xa56
SYMENT 0x10
DEBUG 0x0
PLTGOT 0x4551c
PLTRELSZ 0x758
PLTREL 0x11
JMPREL 0xa328
REL 0xa2e0
RELSZ 0x48
RELENT 0x8

I cut out only the dynamic section ... I didnt think the rest was very
relevant in this case. I made sure this time that the libz was there
this time, and the binaries were compiled against this library. The
library list:
# ls -al /tmp/
drwxr-xr-x 3 0 0 0 Jun 10 22:00 .
drwxr-xr-x 14 0 0 129 Jun 10 12:37 ..
-rwxr-xr-x 1 0 0 40108 Jun 10 22:00 gdbserver
drwxr-xr-x 3 0 0 0 Jun 10 21:55 lib
-rwxr-xr-x 1 0 0 2147127 Jun 10 21:58 ssh
# ls -al /lib/
drwxr-xr-x 3 0 0 0 Jun 10 21:55 .
drwxr-xr-x 14 0 0 129 Jun 10 12:37 ..
lrwxrwxrwx 1 0 0 24 Jun 10 21:05 ld-linux.so.2 ->
/lib/ld-uClibc-0.9.27.so
-rwxr-xr-x 1 0 0 20008 Jun 10 12:38 ld-uClibc-0.9.27.so
-rwxr-xr-x 1 0 0 20008 Jun 10 12:38 ld-uClibc.so.0
-rw-r--r-- 1 0 0 269016 Jun 10 12:38 libc.so.0
-rw-r--r-- 1 0 0 9992 Jun 10 12:37 libcrypt-0.9.27.so
-rw-r--r-- 1 0 0 9992 Jun 10 12:38 libcrypt.so.0
lrwxrwxrwx 1 0 0 18 Jun 10 21:05 libcrypto.so ->
libcrypto.so.0.9.8
-rwxr-xr-x 1 0 0 1186860 Jun 10 12:38 libcrypto.so.0.9.8
-rw-r--r-- 1 0 0 7132 Jun 10 12:37 libdl-0.9.27.so
-rw-r--r-- 1 0 0 7132 Jun 10 12:38 libdl.so.0
-rwxr-xr-x 1 0 0 36436 Jun 10 12:38 libeap-1.1.2.so
lrwxrwxrwx 1 0 0 20 Jun 10 21:05 libeap.so ->
/lib/libeap-1.1.2.so
lrwxrwxrwx 1 0 0 21 Jun 10 21:05 libltdl.so ->
/lib/libltdl.so.3.1.0
lrwxrwxrwx 1 0 0 21 Jun 10 21:05 libltdl.so.3 ->
/lib/libltdl.so.3.1.0
-rwxr-xr-x 1 0 0 36508 Jun 10 12:38 libltdl.so.3.1.0
-rw-r--r-- 1 0 0 55104 Jun 10 12:38 libm-0.9.27.so
-rw-r--r-- 1 0 0 55104 Jun 10 12:38 libm.so.0
-rw-r--r-- 1 0 0 1472 Jun 10 12:38 libnsl-0.9.27.so
-rw-r--r-- 1 0 0 1472 Jun 10 12:38 libnsl.so.0
-rw-r--r-- 1 0 0 68464 Jun 10 12:38 libpthread-0.9.27.so
-rw-r--r-- 1 0 0 68464 Jun 10 12:38 libpthread.so.0
-rwxr-xr-x 1 0 0 131484 Jun 10 12:38 libradius-1.1.2.so
lrwxrwxrwx 1 0 0 23 Jun 10 21:05 libradius.so ->
/lib/libradius-1.1.2.so
-rw-r--r-- 1 0 0 1480 Jun 10 12:38 libresolv-0.9.27.so
-rw-r--r-- 1 0 0 1480 Jun 10 12:38 libresolv.so.0
-rw-r--r-- 1 0 0 3288 Jun 10 12:38 librt-0.9.27.so
-rw-r--r-- 1 0 0 3288 Jun 10 12:38 librt.so.0
lrwxrwxrwx 1 0 0 15 Jun 10 21:05 libssl.so ->
libssl.so.0.9.8
-rwxr-xr-x 1 0 0 230568 Jun 10 12:38 libssl.so.0.9.8
-rw-r--r-- 1 0 0 269016 Jun 10 12:38 libuClibc-0.9.27.so
-rw-r--r-- 1 0 0 4212 Jun 10 12:38 libutil-0.9.27.so
-rw-r--r-- 1 0 0 4212 Jun 10 12:38 libutil.so.0
lrwxrwxrwx 1 0 0 18 Jun 10 21:45 libz.so ->
/lib/libz.so.1.1.4
lrwxrwxrwx 1 0 0 18 Jun 10 21:45 libz.so.1 ->
/lib/libz.so.1.1.4
-rwxr-xr-x 1 0 0 57585 Jun 10 21:54 libz.so.1.1.4
drwxr-xr-x 3 0 0 0 Jun 10 12:38 modules

As a further test I tried the following:
export
LD_PRELOAD=/lib/libc.so.0:/lib/libdl.so.0:/lib/libz.so:/lib/libcrypto.so.0.9.8:/lib/libutil.so.0:/lib/libcrypt.so.0:/lib/libresolv.so.0
ssh

The result remains the same. Even adding some printf statements to the
beginning of main in ssh.c did not show up. I'm beginning to wonder if
something is linked wrong ?

I hope you can help....

Thanks so far & regards,

Rogier
Darren Tucker wrote:

> Rogier Stam wrote:
>
>> I tried porting OpenSSH-4.3p2 to arm-linux (IXP425 Xscale platform) >
>> using openssl-0.9.8b and uClibc. This on the snapgear 3.2.0
>> distribution. It all compiles without problems, but when i run any
>> openssh executable it will always show output similar to the following:
>> # ssh
>> sh: /usr/bin/ssh: No such file or directory
>> #
>>
>> I checked for the libraries, they are all in /lib. To give you an ls:

>
>[list of libs]
>
> libz.so seems to be missing.
>
> If that's not it, do you have ldd on your target, and if so what does
> ldd /usr/bin/ssh say?
>


_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev