[uClibc]libc.so.6 reference

Simon Davis sd1324 at yahoo.com
Thu Feb 6 22:06:15 UTC 2003


Erik,

Thanks for the quick reply.

This is Interesting.  The only libraries that are marked as NEEDED are libdl.so.0 libpthread.so.0
libc.so.0 no reference to libc.so.6, nothing is listed as INTERP.

I originally compiled the libary on a slackware system using the uclibc wrapper.  If i use the
libc version of ldd to list dependencies it shows libc.so.6, if I use the uclibc-ldd (wrapper) it
segfaults.

I tried moving the library aver to a test box running the uclibc development environment, when I
tried to use the library ( in mpg321 on the development environment) it segfaulted. 

Next I tried compiling libao natively on the uclibc devel box but every time gcc segfaults ( see
below )

Any ideas?

----- output from make -----
Making all in src
make[1]: Entering directory `/root/libao-0.8.3/src'
Making all in plugins
make[2]: Entering directory `/root/libao-0.8.3/src/plugins'
Making all in oss
make[3]: Entering directory `/root/libao-0.8.3/src/plugins/oss'
/bin/sh ../../../libtool --mode=compile gcc -DPACKAGE=\"libao\" -DVERSION=\"0.8.3\"
-DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4
-DHAVE_SYS_SOUNDCARD_H=1  -I. -I.  -I../../../include/ao -I../../../include    -O20 -ffast-math
-D_REENTRANT -fsigned-char -g -O2 -c ao_oss.c
Segmentation fault
gcc -DPACKAGE=\"libao\" -DVERSION=\"0.8.3\" -DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1 -DSIZEOF_SHORT=2
-DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_SYS_SOUNDCARD_H=1 -I. -I. -I../../../include/ao
-I../../../include -O20 -ffast-math -D_REENTRANT -fsigned-char -g -O2 -c ao_oss.c  -fPIC -DPIC -o
ao_oss.lo
/bin/sh ../../../libtool --mode=link gcc  -O20 -ffast-math -D_REENTRANT -fsigned-char -g -O2  -o
liboss.la -rpath /usr/local/lib/ao/plugins-2 -export-dynamic -avoid-version ao_oss.lo  -lpthread 
Segmentation fault

----- output from make -----


--- Erik Andersen <andersen at codepoet.org> wrote:
> On Thu Feb 06, 2003 at 11:24:35AM -0800, Simon Davis wrote:
> > Hi all,
> > 
> > I'm attempting to get libao ( http://www.xiph.org/ogg/vorbis/ ) compiled with uclibc.  Every
> time
> > it compiles and links it always contains a reference to libc.so.6.  Does this mean that
> there's a
> > call to a function that is not implemented by uclibc, which in turn would make it link to
> libc?
> > 
> > I've set my PATH to /path_to_uclibc/bin:$PATH and set CC LD AR etc to the appropriate uclibc
> > binaries ( see this post http://www.uclibc.org/lists/uclibc/2002-June/005823.html ) but no
> matter
> > what I do I still end up with a libc link.
> > 
> > If anyone has any suggestions I'd appreciate it.
> 
> The short answer is that sometimes ldd can lie when you have been
> cross compiling things.  You can use 'readelf -a' to check that
> both the INTERP and the NEEDED fields look ok.  If you build
> libao within a uClibc only development environment, it will also
> prevent ldd from lying and will make sure it is not configured
> improperly....
> 
>  -Erik
> 
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the uClibc mailing list