[uClibc]again ogg123 compilation problems

Erik Andersen andersen at codepoet.org
Fri May 30 06:38:39 UTC 2003


On Fri May 30, 2003 at 08:25:11AM +0200, Marcin Bukat wrote:
> i386-uclibc-gcc -O20 -ffast-math -fsigned-char -Os -o ogg123 audio.o 
> buffer.o callbacks.o cfgfile_options.o cmdline_options.o 
> file_transport.o format.o http_transport.o ogg123.o oggvorbis_format.o 
> playlist.o status.o transport.o remote.o  ../share/libutf8.a 
> ../share/libgetopt.a /usr/lib/libvorbisfile.so -L/usr/lib 
> /usr/lib/libvorbis.so -lm /usr/lib/libogg.so /usr/lib/libao.so -lnsl 
> /usr/lib/libcurl.so -lssl -lcrypto -ldl -lpthread
> /root/tmp/uclib_devel/i386-linux-uclibc/lib/crt1.o: In function `_start':
> /root/tmp/uclib_devel/i386-linux-uclibc/lib/crt1.o(.text+0x20): 
> undefined reference to `__uClibc_start_main'
> collect2: ld returned 1 exit status
> make: *** [ogg123] B??d 1

It looks to me like you are trying to use a bunch of shared
libraries that are linked vs glibc (i.e.
/usr/lib/libvorbisfile.so, /usr/lib/libogg.so, etc)

You have also added -L/usr/lib, which is also certain to make
your link be contaminated with lots of glibc libraries.

If you want to use libraries (shared or static) you must first
compile those libraries vs uClibc and install them into your
uClibc development area.  In your case you want to compile
libvorbis and friends, and install the libs into
/root/tmp/uclib_devel/i386-linux-uclibc/lib/ and install the
header files into
/root/tmp/uclib_devel/i386-linux-uclibc/include/

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


More information about the uClibc mailing list