DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-12-29 08:54:46

TonyT
Member
Registered: 2008-12-29
Posts: 12

Installing optware on DNS-321

I have successfully installed ffp on my DNS321 and activated the afpd server to allow Apple File Protocol access.

However, I am having problems installing optware on the DNS-231. I followed the directions on optware wiki and seem to have everything installed. However, when I telnet in to execute ipkg I get -sh: /opt/bin/ipkg: not found. The following seems to show that /opt/bin/ipkg does exist and is an ARM executable, but execve does not recognize it. I did try downloading on another machine and seem to get the same executable, so it does not seem to be a download error. Any suggestions on further things I can do to figure out why it does not work? Thanks.

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/bin# /opt/bin/ipkg
-sh: /opt/bin/ipkg: not found
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/bin# ls -l /opt/bin/ipkg
-rwxr-xr-x    1 root     root         3132 Jun  1  2008 /opt/bin/ipkg
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/bin# file /opt/bin/ipkg
/opt/bin/ipkg: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), stripped
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/bin# strace /opt/bin/ipkg
execve("/opt/bin/ipkg", ["/opt/bin/ipkg"], [/* 16 vars */]) = -1 ENOENT (No such file or directory)
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
exit(1)                                 = ?
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/bin#

Offline

 

#2 2008-12-30 01:37:15

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: Installing optware on DNS-321

sh might give this error message when some dynamic lib cannot be found.

try "ldd /opt/bin/ipkg", and "ls -l /opt/lib/libipkg.so.0" etc.

Offline

 

#3 2008-12-30 04:05:11

TonyT
Member
Registered: 2008-12-29
Posts: 12

Re: Installing optware on DNS-321

Thanks bkhou that seems to be the problem. I get:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt# ldd /opt/bin/ipkg
ldd: can't open cache '/ffp/etc/ld.so.cache'
checking sub-depends for '/opt/lib/libipkg.so.0'
checking sub-depends for '/ffp/lib/libc.so.0'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for 'not found'
        libipkg.so.0 => /opt/lib/libipkg.so.0 (0x00000000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x00000000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
        libc.so.6 => not found (0x00000000)
        not a dynamic executable
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt#

However libc.so.6 does seem to be in /lib/

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt# ls -l /lib/libc.so.6 /lib/libc-2.3.6.so
-rwxr-xr-x    1 root     root      1429912 Feb 13  2008 /lib/libc-2.3.6.so
lrwxrwxrwx    1 root     root           13 Sep 23 03:39 /lib/libc.so.6 -> libc-2.3.6.so
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt#

As suggested in this Topic updated LD_LIBRARY_PATH and get:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt# export LD_LIBRARY_PATH=/lib
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt# ldd /opt/bin/ipkg
ldd: can't open cache '/ffp/etc/ld.so.cache'
checking sub-depends for '/opt/lib/libipkg.so.0'
checking sub-depends for '/ffp/lib/libc.so.0'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for '/lib/libc.so.6'
        /lib/ld-linux.so.3 (0x40000000)
        libipkg.so.0 => /opt/lib/libipkg.so.0 (0x00000000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x00000000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
        libc.so.6 => /lib/libc.so.6 (0x00000000)
        /lib/ld-linux.so.3 => /lib/ld-linux.so.3 (0x00000000)
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt#

Still does not execute. So now the issue seems to be /ffp/etc/ld.so.cache

Last edited by TonyT (2008-12-30 04:39:05)

Offline

 

#4 2009-01-02 22:41:54

TonyT
Member
Registered: 2008-12-29
Posts: 12

Re: Installing optware on DNS-321

I am thinking that the ipkg built in optware requires libraries that my DNS321 installation does not have. It appears to be built with an RPATH set to /opt/lib so it presumably is just getting libraries from /opt/lib as LD_LIBRARY_PATH is unset (ffp ensures that). By using /ffp/bin/ldd it seems it wants libc.so.6:

Code:

root@HTTB_1_NAS:~# /ffp/bin/ldd /opt/bin/ipkg
ldd: can't open cache '/ffp/etc/ld.so.cache'
checking sub-depends for '/opt/lib/libipkg.so.0'
checking sub-depends for '/ffp/lib/libc.so.0'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for 'not found'
        libipkg.so.0 => /opt/lib/libipkg.so.0 (0x00000000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x00000000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
        libc.so.6 => not found (0x00000000)
        not a dynamic executable
root@HTTB_1_NAS:~#

It is not in /opt/lib :

Code:

root@HTTB_1_NAS:~# ls -l /opt/lib
lrwxrwxrwx    1 root     root           16 Jan  2 20:32 libipkg.so -> libipkg.so.0.0.0
lrwxrwxrwx    1 root     root           16 Jan  2 20:32 libipkg.so.0 -> libipkg.so.0.0.0
-rwxr-xr-x    1 root     root       147432 Jun  1  2008 libipkg.so.0.0.0
root@HTTB_1_NAS:~#

I have tried adding a link in both /opt/lib and /ffp/lib to /lib/libc.so.6 but neither helps. I am not familiar with Linux dynamic libraries so not sure what further diagnosing to do. Any help appreciated.

Thanks,
-Tony

Offline

 

#5 2009-01-11 02:05:33

TonyT
Member
Registered: 2008-12-29
Posts: 12

Re: Installing optware on DNS-321

After installing optware's ipkg the /opt/bin directory is:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ls -l /opt/bin/ipkg
-rwxr-xr-x    1 root     root         3132 Jun  1  2008 /opt/bin/ipkg
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

Invoking ipkg gives:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# Invoking ipkg gives:
-sh: Invoking: not found
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

The Bourn Shell being used is ffp's busybox version which does not seem to report much information about errors:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# which sh
/ffp/bin/sh
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ls -l /ffp/bin/sh
lrwxrwxrwx    1 root     root            7 Dec 21 02:36 /ffp/bin/sh -> busybox
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

The output from fpp's ldd is rather confusing:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# which ldd
/ffp/bin/ldd
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ldd /opt/bin/ipkg
ldd: can't open cache '/ffp/etc/ld.so.cache'
checking sub-depends for 'libipkg.so.0'
checking sub-depends for '/ffp/lib/libc.so.0'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for 'not found'
        libipkg.so.0 => libipkg.so.0 (0x00000000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x00000000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
        libc.so.6 => not found (0x00000000)
        not a dynamic executable
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

But using the dynamic linker directly does give more information. The DNS321 is using ld-linux.so.3 (not ld.so):

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# /lib/ld-linux.so.3 --list /opt/bin/ipkg
/opt/bin/ipkg: error while loading shared libraries: libc.so.0: cannot open shared object file: No such file or directory
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

ipkg is built with an RPATH so /opt/lib so it gets it's libraries from /opt/lib and /lib which contain:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ls -l
lrwxrwxrwx    1 root     root           16 Jan 10 22:41 libipkg.so -> libipkg.so.0.0.0
lrwxrwxrwx    1 root     root           16 Jan 10 22:41 libipkg.so.0 -> libipkg.so.0.0.0
-rwxr-xr-x    1 root     root       147432 Jun  1  2008 libipkg.so.0.0.0
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ls -l /lib/libc.*
lrwxrwxrwx    1 root     root           13 Sep 23 03:39 /lib/libc.so.6 -> libc-2.3.6.so
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

libc.so.0 is available in /ffp/lib:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ls /ffp/lib/libc.*
/ffp/lib/libc.so    /ffp/lib/libc.so.0
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

So making a link in /opt/lib gives:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ln -s /ffp/lib/libc.so.0 /opt/lib/libc.so.0
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# ls -l /opt/lib
lrwxrwxrwx    1 root     root           18 Jan 10 23:33 libc.so.0 -> /ffp/lib/libc.so.0
lrwxrwxrwx    1 root     root           16 Jan 10 22:41 libipkg.so -> libipkg.so.0.0.0
lrwxrwxrwx    1 root     root           16 Jan 10 22:41 libipkg.so.0 -> libipkg.so.0.0.0
-rwxr-xr-x    1 root     root       147432 Jun  1  2008 libipkg.so.0.0.0
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# /lib/ld-linux.so.3 --list /opt/bin/ipkg
        libipkg.so.0 => /opt/lib/libipkg.so.0 (0x40001000)
        libc.so.0 => /opt/lib/libc.so.0 (0x4002d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40088000)
        ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x40099000)
        libc.so.6 => /lib/libc.so.6 (0x400a7000)
        /lib/ld-uClibc.so.0 => /lib/ld-linux.so.3 (0x2a000000)
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

However, executing it still does not work. Again sh's error reporting is not helpful, but ld-linux.so.3 tells us it is a floating point exception:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# /opt/bin/ipkg                          
-sh: /opt/bin/ipkg: not found
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# /lib/ld-linux.so.3 /opt/bin/ipkg       
Floating point exception
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

strace gives:

Code:

root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib# strace /lib/ld-linux.so.3 /opt/bin/ipkg
execve("/lib/ld-linux.so.3", ["/lib/ld-linux.so.3", "/opt/bin/ipkg"], [/* 16 vars */]) = 0
uname({sys="Linux", node="HTTB_1_NAS", ...}) = 0
brk(0)                                  = 0x2a020000
open("/opt/bin/ipkg", O_RDONLY)         = 6
read(6, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\2\0(\0\1\0\0\0\274\204\0\0004\0\0\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=3132, ...}) = 0
mmap2(0x8000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0) = 0x8000
mmap2(0x10000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0) = 0x10000
close(6)                                = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/v5l/fast-mult/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/v5l/fast-mult/half", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/v5l/fast-mult/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/v5l/fast-mult", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/v5l/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/v5l/half", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/v5l/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/v5l", 0xbec42240)  = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/fast-mult/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/fast-mult/half", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/fast-mult/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/fast-mult", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/half", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls", 0xbec42240)      = -1 ENOENT (No such file or directory)
open("/opt/lib/v5l/fast-mult/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/v5l/fast-mult/half", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/v5l/fast-mult/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/v5l/fast-mult", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/v5l/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/v5l/half", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/v5l/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/v5l", 0xbec42240)      = -1 ENOENT (No such file or directory)
open("/opt/lib/fast-mult/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/fast-mult/half", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/fast-mult/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/fast-mult", 0xbec42240) = -1 ENOENT (No such file or directory)
open("/opt/lib/half/libipkg.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/half", 0xbec42240)     = -1 ENOENT (No such file or directory)
open("/opt/lib/libipkg.so.0", O_RDONLY) = 6
read(6, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\374c\0\0004\0\0\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=147432, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000
mmap2(NULL, 178084, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x40001000
mprotect(0x40024000, 34724, PROT_NONE)  = 0
mmap2(0x4002b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x22) = 0x4002b000
close(6)                                = 0
open("/opt/lib/libc.so.0", O_RDONLY)    = 6
read(6, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220\252\0\0004\0\0\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=322696, ...}) = 0
mmap2(NULL, 372388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x4002d000
mprotect(0x4007a000, 56996, PROT_NONE)  = 0
mmap2(0x40082000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x4d) = 0x40082000
mmap2(0x40084000, 16036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40084000
close(6)                                = 0
open("/opt/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l/fast-mult/half", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l/fast-mult", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l/half", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l", 0xbec42210)      = -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/fast-mult/half", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/fast-mult", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/tls/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/half", 0xbec42210)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbec42210)          = -1 ENOENT (No such file or directory)
open("/lib/v5l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l/fast-mult/half", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/v5l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l/fast-mult", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/v5l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l/half", 0xbec42210)     = -1 ENOENT (No such file or directory)
open("/lib/v5l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l", 0xbec42210)          = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/fast-mult/half", 0xbec42210) = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/fast-mult", 0xbec42210)    = -1 ENOENT (No such file or directory)
open("/lib/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/half", 0xbec42210)         = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY)    = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0@\37\0\0004\0\0\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=176721, ...}) = 0
mmap2(NULL, 66356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x40088000
mprotect(0x40091000, 29492, PROT_NONE)  = 0
mmap2(0x40098000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x8) = 0x40098000
close(6)                                = 0
open("/ffp/lib/tls/v5l/fast-mult/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls/v5l/fast-mult/half", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/tls/v5l/fast-mult/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls/v5l/fast-mult", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/tls/v5l/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls/v5l/half", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/tls/v5l/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls/v5l", 0xbec42120)  = -1 ENOENT (No such file or directory)
open("/ffp/lib/tls/fast-mult/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls/fast-mult/half", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/tls/fast-mult/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls/fast-mult", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/tls/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls/half", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/tls/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/tls", 0xbec42120)      = -1 ENOENT (No such file or directory)
open("/ffp/lib/v5l/fast-mult/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/v5l/fast-mult/half", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/v5l/fast-mult/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/v5l/fast-mult", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/v5l/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/v5l/half", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/v5l/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/v5l", 0xbec42120)      = -1 ENOENT (No such file or directory)
open("/ffp/lib/fast-mult/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/fast-mult/half", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/fast-mult/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/fast-mult", 0xbec42120) = -1 ENOENT (No such file or directory)
open("/ffp/lib/half/ld-uClibc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/ffp/lib/half", 0xbec42120)     = -1 ENOENT (No such file or directory)
open("/ffp/lib/ld-uClibc.so.0", O_RDONLY) = 6
read(6, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\260\t\0\0004\0\0\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=21168, ...}) = 0
mmap2(NULL, 53348, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x40099000
mprotect(0x4009e000, 32868, PROT_NONE)  = 0
mmap2(0x400a5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x4) = 0x400a5000
close(6)                                = 0
open("/opt/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/opt/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\2509\1\0004\0\0\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=1429912, ...}) = 0
mmap2(NULL, 1132500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x400a7000
mprotect(0x401af000, 51156, PROT_NONE)  = 0
mmap2(0x401b6000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x107) = 0x401b6000
mmap2(0x401ba000, 6100, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401ba000
close(6)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401bc000
getpid()                                = 5409
kill(5409, SIGFPE)                      = 0
--- SIGFPE (Floating point exception) @ 0 (0) ---
+++ killed by SIGFPE +++
root@HTTB_1_NAS:/mnt/HD_a2/ipkg/opt/lib#

Is the problem that using ffp's libc.so.0 is conflicting with the other libraries used? Any suggestions? Does the DNS-323 have lib.so.0 in it's /lib which is why ipkg works on it? The libraries in the DNS-321's /lib are:

Code:

root@HTTB_1_NAS:/# ls -l /lib
-rw-r--r--    1 root     root          678 Feb 13  2008 Mcrt1.o
-rw-r--r--    1 root     root         1628 Feb 13  2008 Scrt1.o
-rw-r--r--    1 root     root         1628 Feb 13  2008 crt1.o
-rw-r--r--    1 root     root         2368 Feb 13  2008 crti.o
-rw-r--r--    1 root     root         1980 Feb 13  2008 crtn.o
-rw-r--r--    1 root     root         2025 Feb 13  2008 gcrt1.o
-rwxr-xr-x    1 root     root       127550 Feb 13  2008 ld-2.3.6.so
lrwxrwxrwx    1 root     root           11 Sep 23 03:39 ld-linux.so.3 -> ld-2.3.6.so
-rwxr-xr-x    1 root     root         9570 Feb 13  2008 libBrokenLocale-2.3.6.so
lrwxrwxrwx    1 root     root           24 Sep 23 03:39 libBrokenLocale.so.1 -> libBrokenLocale-2.3.6.so
-rwxr-xr-x    1 root     root        20223 Feb 13  2008 libSegFault.so
-rwxr-xr-x    1 root     root        16562 Feb 13  2008 libanl-2.3.6.so
lrwxrwxrwx    1 root     root           15 Sep 23 03:39 libanl.so.1 -> libanl-2.3.6.so
-rwxr-xr-x    1 root     root      1429912 Feb 13  2008 libc-2.3.6.so
lrwxrwxrwx    1 root     root           13 Sep 23 03:39 libc.so.6 -> libc-2.3.6.so
-rwxr-xr-x    1 root     root       192122 Feb 13  2008 libcidn-2.3.6.so
lrwxrwxrwx    1 root     root           16 Sep 23 03:39 libcidn.so.1 -> libcidn-2.3.6.so
lrwxrwxrwx    1 root     root           16 Sep 23 03:39 libconfuse.0 -> libconfuse.0.0.0
-rwxr-xr-x    1 root     root        38655 Feb 14  2008 libconfuse.0.0.0
-rwxr-xr-x    1 root     root        28617 Feb 13  2008 libcrypt-2.3.6.so
lrwxrwxrwx    1 root     root           17 Sep 23 03:39 libcrypt.so.1 -> libcrypt-2.3.6.so
lrwxrwxrwx    1 root     root           32 Jan 12 03:21 libcrypto.so -> /sys/crfs/lib/libcrypto.so.0.9.7
lrwxrwxrwx    1 root     root           32 Jan 12 03:21 libcrypto.so.0.9.7 -> /sys/crfs/lib/libcrypto.so.0.9.7
-rwxr-xr-x    1 root     root        16585 Feb 13  2008 libdl-2.3.6.so
lrwxrwxrwx    1 root     root           14 Sep 23 03:39 libdl.so.2 -> libdl-2.3.6.so
lrwxrwxrwx    1 root     root           13 Sep 23 03:39 libgcc_s.so -> libgcc_s.so.1
-rw-r--r--    1 root     root       176721 Feb 13  2008 libgcc_s.so.1
lrwxrwxrwx    1 root     root           30 Jan 12 03:21 libgdbm.so.3 -> /sys/crfs/lib/libgdbm.so.3.0.0
lrwxrwxrwx    1 root     root           30 Jan 12 03:21 libgdbm.so.3.0.0 -> /sys/crfs/lib/libgdbm.so.3.0.0
lrwxrwxrwx    1 root     root           22 Jan 12 03:21 libiconv.so -> /lib/libiconv.so.2.2.0
lrwxrwxrwx    1 root     root           22 Jan 12 03:21 libiconv.so.2 -> /lib/libiconv.so.2.2.0
lrwxrwxrwx    1 root     root           31 Jan 12 03:21 libiconv.so.2.2.0 -> /sys/crfs/lib/libiconv.so.2.2.0
lrwxrwxrwx    1 root     root           32 Jan 12 03:21 libid3tag.so.0 -> /sys/crfs/lib/libid3tag.so.0.3.0
lrwxrwxrwx    1 root     root           32 Jan 12 03:21 libid3tag.so.0.3.0 -> /sys/crfs/lib/libid3tag.so.0.3.0
lrwxrwxrwx    1 root     root           34 Jan 12 03:21 libinotifytools.so.0 -> /sys/crfs/lib/libinotifytools.so.0
lrwxrwxrwx    1 root     root           35 Jan 12 03:21 liblib-3-0.so.0 -> /usr/sbin/samba/liblib-3-0.so.0.0.0
lrwxrwxrwx    1 root     root           31 Jan 12 03:21 liblpr.so.0 -> /usr/sbin/LPRng/liblpr.so.0.0.0
-rwxr-xr-x    1 root     root       793491 Feb 13  2008 libm-2.3.6.so
lrwxrwxrwx    1 root     root           13 Sep 23 03:39 libm.so.6 -> libm-2.3.6.so
-rwxr-xr-x    1 root     root        21282 Feb 13  2008 libmemusage.so
lrwxrwxrwx    1 root     root           37 Jan 12 03:21 libmsrpc-3-0.so.0 -> /usr/sbin/samba/libmsrpc-3-0.so.0.0.0
-rwxr-xr-x    1 root     root        92231 Feb 13  2008 libnsl-2.3.6.so
lrwxrwxrwx    1 root     root           15 Sep 23 03:39 libnsl.so.1 -> libnsl-2.3.6.so
-rwxr-xr-x    1 root     root        36064 Feb 13  2008 libnss_compat-2.3.6.so
lrwxrwxrwx    1 root     root           22 Sep 23 03:39 libnss_compat.so.2 -> libnss_compat-2.3.6.so
-rwxr-xr-x    1 root     root        23999 Feb 13  2008 libnss_dns-2.3.6.so
lrwxrwxrwx    1 root     root           19 Sep 23 03:39 libnss_dns.so.2 -> libnss_dns-2.3.6.so
-rwxr-xr-x    1 root     root        52005 Feb 13  2008 libnss_files-2.3.6.so
lrwxrwxrwx    1 root     root           21 Sep 23 03:39 libnss_files.so.2 -> libnss_files-2.3.6.so
-rwxr-xr-x    1 root     root        25332 Feb 13  2008 libnss_hesiod-2.3.6.so
lrwxrwxrwx    1 root     root           22 Sep 23 03:39 libnss_hesiod.so.2 -> libnss_hesiod-2.3.6.so
-rwxr-xr-x    1 root     root        52085 Feb 13  2008 libnss_nis-2.3.6.so
lrwxrwxrwx    1 root     root           19 Sep 23 03:39 libnss_nis.so.2 -> libnss_nis-2.3.6.so
-rwxr-xr-x    1 root     root        56185 Feb 13  2008 libnss_nisplus-2.3.6.so
lrwxrwxrwx    1 root     root           23 Sep 23 03:39 libnss_nisplus.so.2 -> libnss_nisplus-2.3.6.so
lrwxrwxrwx    1 root     root           37 Jan 12 03:21 libparam-3-0.so.0 -> /usr/sbin/samba/libparam-3-0.so.0.0.0
lrwxrwxrwx    1 root     root           38 Jan 12 03:21 libpassdb-3-0.so.0 -> /usr/sbin/samba/libpassdb-3-0.so.0.0.0
-rwxr-xr-x    1 root     root         9834 Feb 13  2008 libpcprofile.so
-rwxr-xr-x    1 root     root       105951 Feb 13  2008 libpthread-2.3.6.so
lrwxrwxrwx    1 root     root           19 Sep 23 03:39 libpthread.so.0 -> libpthread-2.3.6.so
-rwxr-xr-x    1 root     root        80258 Feb 13  2008 libresolv-2.3.6.so
lrwxrwxrwx    1 root     root           18 Sep 23 03:39 libresolv.so.2 -> libresolv-2.3.6.so
lrwxrwxrwx    1 root     root           41 Jan 12 03:21 librpc-parse-3-0.so.0 -> /usr/sbin/samba/librpc-parse-3-0.so.0.0.0
-rwxr-xr-x    1 root     root        54049 Feb 13  2008 librt-2.3.6.so
lrwxrwxrwx    1 root     root           14 Sep 23 03:39 librt.so.1 -> librt-2.3.6.so
lrwxrwxrwx    1 root     root           31 Jan 12 03:21 libshare.so -> /sys/crfs/lib/libshare.so.0.0.0
lrwxrwxrwx    1 root     root           31 Jan 12 03:21 libshare.so.0 -> /sys/crfs/lib/libshare.so.0.0.0
lrwxrwxrwx    1 root     root           31 Jan 12 03:21 libshare.so.0.0.0 -> /sys/crfs/lib/libshare.so.0.0.0
lrwxrwxrwx    1 root     root           24 Jan 12 03:21 libslib.so -> /sys/crfs/lib/libslib.so
lrwxrwxrwx    1 root     root           35 Jan 12 03:21 libsmb-3-0.so.0 -> /usr/sbin/samba/libsmb-3-0.so.0.0.0
lrwxrwxrwx    1 root     root           33 Jan 12 03:21 libsqlite3.so.0 -> /sys/crfs/lib/libsqlite3.so.0.8.6
lrwxrwxrwx    1 root     root           33 Jan 12 03:21 libsqlite3.so.0.8.6 -> /sys/crfs/lib/libsqlite3.so.0.8.6
lrwxrwxrwx    1 root     root           29 Jan 12 03:21 libssl.so -> /sys/crfs/lib/libssl.so.0.9.7
lrwxrwxrwx    1 root     root           29 Jan 12 03:21 libssl.so.0.9.7 -> /sys/crfs/lib/libssl.so.0.9.7
lrwxrwxrwx    1 root     root           32 Jan 12 03:21 libstdc++.so.6 -> /sys/crfs/lib/libstdc++.so.6.0.3
-rwxr-xr-x    1 root     root        38900 Feb 13  2008 libthread_db-1.0.so
lrwxrwxrwx    1 root     root           19 Sep 23 03:39 libthread_db.so.1 -> libthread_db-1.0.so
-rwxr-xr-x    1 root     root        15585 Feb 13  2008 libutil-2.3.6.so
lrwxrwxrwx    1 root     root           16 Sep 23 03:39 libutil.so.1 -> libutil-2.3.6.so
lrwxrwxrwx    1 root     root           27 Jan 12 03:21 libz.so.1 -> /sys/crfs/lib/libz.so.1.2.3
lrwxrwxrwx    1 root     root           27 Jan 12 03:21 libz.so.1.2.3 -> /sys/crfs/lib/libz.so.1.2.3
drwxr-xr-x    3 root     root         1024 Jan 12 03:21 modules
root@HTTB_1_NAS:/#

Any help appreciated:-)

Last edited by TonyT (2009-01-12 11:19:10)

Offline

 

#6 2009-03-04 09:18:06

gt9228a
Member
Registered: 2009-03-04
Posts: 9

Re: Installing optware on DNS-321

I hate to bump this, but has anyone had success with optware on DNS-321? 

I need to install avahi, seems to only be an ipkg.

Offline

 

#7 2009-03-04 10:29:34

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Installing optware on DNS-321

TonyT wrote:

Is the problem that using ffp's libc.so.0 is conflicting with the other libraries used?

No, the problem is optware being built for the DNS-323 firmware, which is uclibc-based. The DNS-321, however, is glibc-based and requires a different optware feed. ffp still works, because it doesn't depend on the firmware libraries.

Offline

 

#8 2009-03-04 17:30:24

gt9228a
Member
Registered: 2009-03-04
Posts: 9

Re: Installing optware on DNS-321

Is there a feed of optware that supports the DNS-321 then?  That is ARM and uses glibc that would work?

Or is there a way to add uclibc functionality to the DNS-321?  (Im not very familiar with glibc/uclibc so this question might not make sense).

Last edited by gt9228a (2009-03-04 17:38:29)

Offline

 

#9 2009-03-04 18:03:01

gt9228a
Member
Registered: 2009-03-04
Posts: 9

Re: Installing optware on DNS-321

Well I was finally able to get an ipkg that actually runs using a different feed..

It seems to work with
http://ipkg.nslu2-linux.org/feeds/optwa … /unstable/

which has the same glibc version as the dns-321.

Is there any reason I cant use this optware feed?

I tried a couple of packages, likes links and avahi, which seem to work.

Last edited by gt9228a (2009-03-04 18:05:20)

Offline

 

#10 2009-03-05 02:40:37

TonyT
Member
Registered: 2008-12-29
Posts: 12

Re: Installing optware on DNS-321

That sounds great. I also was wanting to install avahi. I will give it a try when I get a chance. Thanks,
-Tony

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB