Hi My PC is Intel Pentium P4-HT, running Linux kernel 2.6.0-test10. I have the latest GNU automake/autoconf system. The make fails on libtheora with the following error msgs: player_example.c:29:1: warning: "_REENTRANT" redefined player_example.c:1:1: warning: this is the location of the previous definition /bin/sh ../libtool --mode=link gcc -O2 -D_REENTRANT -all-static -o player_example player_example.o ../lib/libtheora.la -logg -lm -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lm -ldl -L/usr/X11R6/lib -lX11 -lXext -lvorbis -lpthread gcc -O2 -D_REENTRANT -static -o player_example player_example.o -Wl,-rpath -Wl,/usr/local/lib ../lib/.libs/libtheora.a -L/usr/local/lib /usr/local/lib/libSDL.a -L/usr/X11R6/lib -ldl -lX11 -lXext /usr/local/lib/libvorbis.a -lm /usr/local/lib/libogg.a -lpthread /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status make[1]: *** [player_example] Error 1 make[1]: Leaving directory `/usr/local/Ogg_Vorbis/libtheora-1.0alpha2/examples' make: *** [all-recursive] Error 1 The libX11.so exists and my X11 libraries are in /usr/X11R6/lib and it is defined in /etc/ld.so.conf. Regards Sagara <p>__________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'theora-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tue, 2003-12-09 at 00:21, Sagara Wijetunga wrote:> Hi > > My PC is Intel Pentium P4-HT, running Linux kernel > 2.6.0-test10. I have the latest GNU automake/autoconf > system. The make fails on libtheora with the following > error msgs: > > player_example.c:29:1: warning: "_REENTRANT" redefined > player_example.c:1:1: warning: this is the location of > the previous definition > /bin/sh ../libtool --mode=link gcc -O2 -D_REENTRANT > -all-static -o player_example player_example.o > ../lib/libtheora.la -logg -lm -L/usr/local/lib > -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lm -ldl > -L/usr/X11R6/lib -lX11 -lXext -lvorbis -lpthread > gcc -O2 -D_REENTRANT -static -o player_example > player_example.o -Wl,-rpath -Wl,/usr/local/lib > ../lib/.libs/libtheora.a -L/usr/local/lib > /usr/local/lib/libSDL.a -L/usr/X11R6/lib -ldl -lX11 > -lXext /usr/local/lib/libvorbis.a -lm > /usr/local/lib/libogg.a -lpthread > /usr/bin/ld: cannot find -lX11 > collect2: ld returned 1 exit status > make[1]: *** [player_example] Error 1 > make[1]: Leaving directory > `/usr/local/Ogg_Vorbis/libtheora-1.0alpha2/examples' > make: *** [all-recursive] Error 1 > > The libX11.so exists and my X11 libraries are in > /usr/X11R6/lib and it is defined in /etc/ld.so.conf.I'm writing this before coffee, so I could be wrong, but it looks like gcc wants to link statically. Do you have libX11.a? Hope this helps, Carsten. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'theora-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi Carsten Thanks for the reply. Yep, I don’t have libX11.a. I use XFree86 4.3.0. It compiles only libX11.so and it’s in /usr/X11R6/lib/. In libtheora-1.0alpha2: 1. make distclean 2. ./configure --enable-shared --disable-static 3. make It still complain the same. Please let me include the new error message. gcc -DPACKAGE=\"libtheora\" -DVERSION=\"0.0\" -DHAVE_DLFCN_H=1 -I. -I. -I../include -O2 -D_REENTRANT -c player_example.c player_example.c:29:1: warning: "_REENTRANT" redefined player_example.c:1:1: warning: this is the location of the previous definition /bin/sh ../libtool --mode=link gcc -O2 -D_REENTRANT -all-static -o player_example player_example.o ../lib/libtheora.la -logg -lm -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lm -ldl -L/usr/X11R6/lib -lX11 -lXext -lvorbis -lpthread gcc -O2 -D_REENTRANT -static -o player_example player_example.o -Wl,-rpath -Wl,/usr/local/lib ../lib/.libs/libtheora.so -L/usr/local/lib /usr/local/lib/libSDL.a -L/usr/X11R6/lib -ldl -lX11 -lXext /usr/local/lib/libvorbis.a -lm /usr/local/lib/libogg.a -lpthread -Wl,--rpath -Wl,/usr/local/Ogg_Vorbis/libtheora-1.0alpha2/lib/.libs -Wl,--rpath -Wl,/usr/local/lib /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status make[1]: *** [player_example] Error 1 make[1]: Leaving directory `/usr/local/Ogg_Vorbis/libtheora-1.0alpha2/examples' make: *** [all-recursive] Error 1 <p>Regards Sagara <p>__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'theora-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.