Home Forum Developers General discussions [590] Asterisk needs libc.so.6 and libdl.so.2

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


Gilles
useravatar
User Info

[590] Asterisk needs libc.so.6 and libdl.so.2

Hello

After running "make ; make image", I ran "bfin-linux-uclibc/bin/ldd" on ./root/bin/asterisk to check which shared libraries it needs, and it turns out that the root filesystem is missing the two libraries "libc.so.6" and "libdl.so.2.

How come Switchfin doesn't include those two libraries? Does it means Asterisk is fine with using "libc.so.0" and "libdl.so.0"?

Thank you.



Edited By:  Gilles
Jul-27-11 20:15:02

Administrator has disabled public posting
Chewi
useravatar
User Info

Re: [590] Asterisk needs libc.so.6 and libdl.so.2

I've built 1.6 and this depends on libc.so.0 and libdl.so.0. These are the same filenames found within the toolchain directory. I'm not sure but I think uClibc uses the "0" versions while the other versions are current for glibc. Did you accidentally build it using your native toolchain somehow? I do know that the makefiles are horribly broken in some aspects (and I plan to fix them) but it should at least be using the right toolchain.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: [590] Asterisk needs libc.so.6 and libdl.so.2

Actually "ldd" might give you strange output. Use "readelf -d" instead.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: [590] Asterisk needs libc.so.6 and libdl.so.2

Thanks for the tip. To make sure, I checked that PATH didn't contain another toolchain, ran "make clean", followed by "make ; make image", and then ran "readelf -d ./build_ip04/root/bin/asterisk":


libc.so.0
libdl.so.0
libgcc_s.so.1
libpthread.so.0
libncurses.so.5
libm.so.0
libresolv.so.0
libtonezone.so.2.0
libsqlite3.so.0
libspeexdsp.so.1
libspandsp.so.2
libtiff.so.3
I checked what ./lib and ./usr/lib contain, and they are indeed available. Maybe it was because PATH contained pointers to the uClinux 2010 toolchain.

BTW, I'm compiling for the IP04 but using an IP01 because the Switchfin patches don't work when compiling for the IP01. I don't know if that means anything.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: [590] Asterisk needs libc.so.6 and libdl.so.2

Did this also fix your other problem? I suspect it might have.

What patches fail exactly? We're not applying any IP01-specific patches to Asterisk. I don't have an IP01 and I'm curious as to what the differences are. It looks as though it's not simply the number of ports.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: [590] Asterisk needs libc.so.6 and libdl.so.2

I'm going out for dinner, and I'll run Asterisk again to see if this solves the "can't resolve symbol '_fork'" issue.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: [590] Asterisk needs libc.so.6 and libdl.so.2

Couldn't reproduce the error, but it's good advice to run "readelf -d" instead of "ldd", and to run it on the Atcom directly instead of on the workstation.


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 171
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked