I download all the tarballs for rc3. I compiled and installed all the libraries successfully, but I wan't able to compile the vorbis tools (1.0rc3) package succesfully. I can run configure successfully, but when I run make it dies with this make[2]: Entering directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' /bin/sh ../libtool --mode=link gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o platform.o -lvorbisenc -lvorbis -lm -logg ../share/libutf8.a ../share/libgetopt.a gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o platform.o /usr/lib/libvorbisenc.so -L/lib /usr/lib/libvorbis.so -lm /usr/lib/libogg.so ../share/libutf8.a ../share/libgetopt.a encode.o: In function `oe_encode': encode.o(.text+0x90): undefined reference to `vorbis_encode_init_vbr' encode.o(.text+0x342): undefined reference to `vorbis_bitrate_addblock' encode.o(.text+0x362): undefined reference to `vorbis_bitrate_flushpacket' collect2: ld returned 1 exit status make[2]: *** [oggenc] Error 1 make[2]: Leaving directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' make: *** [all-recursive] Error 1 the line that reads: gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o platform.o /usr/lib/libvorbisenc.so -L/lib /usr/lib/libvorbis.so -lm /usr/lib/libogg.so ../share/libutf8.a ../share/libgetopt.a I believe it should have read: gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o platform.o -lvorbisenc -L/lib -lvorbis -lm -logg ../share/libutf8.a ../share/libgetopt.a that is say "-lvorbis" instead of "/usr/lib/libvorbis.so" "-lvorbisenc" instead of "/usr/lib/libvorbisenc.so" "-logg" instead of "/usr/lib/libogg.so" it runs correctly for me when I make these changes manually on the command line. I'm not familiar whith the all the make and configure scripts so I don't know where to make the changes that would straighten this out for the whole build process, but hope I gave someone more knowledgeable then me enough information that they can fix it. Rick "The net is too big, too important, too political to be treated as something for only a band of talented engineers to preside over." - ICANN Whenever there is a conflict between human rights and property rights, human rights must prevail. - Abraham Lincoln Information is the currency of democracy. - Thomas Jefferson <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 'vorbis-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.
It looks like the linker is trying to link you to the older vorbis libraries. Make sure you (a) don't have other vorbis libraries installed or (b) set the library path with --with-vorbis=my_vorbis_install_prefix (like /usr/local, or something). --- Stan Seibert <p>On Tue, 1 Jan 2002, Rick Bunke wrote:> I download all the tarballs for rc3. I compiled > and installed all the libraries successfully, but I wan't able to compile > the vorbis tools (1.0rc3) package succesfully. > > I can run configure successfully, but when I run make it dies with this > > make[2]: Entering directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' > /bin/sh ../libtool --mode=link gcc -O20 -ffast-math -fsigned-char -o > oggenc oggenc.o audio.o encode.o platform.o -lvorbisenc -lvorbis -lm > -logg ../share/libutf8.a ../share/libgetopt.a > gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o > platform.o /usr/lib/libvorbisenc.so -L/lib /usr/lib/libvorbis.so -lm > /usr/lib/libogg.so ../share/libutf8.a ../share/libgetopt.a > encode.o: In function `oe_encode': > encode.o(.text+0x90): undefined reference to `vorbis_encode_init_vbr' > encode.o(.text+0x342): undefined reference to `vorbis_bitrate_addblock' > encode.o(.text+0x362): undefined reference to `vorbis_bitrate_flushpacket' > collect2: ld returned 1 exit status > make[2]: *** [oggenc] Error 1 > make[2]: Leaving directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' > make: *** [all-recursive] Error 1 > > the line that reads: > > gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o > platform.o /usr/lib/libvorbisenc.so -L/lib /usr/lib/libvorbis.so -lm > /usr/lib/libogg.so ../share/libutf8.a ../share/libgetopt.a > > I believe it should have read: > > gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o > platform.o -lvorbisenc -L/lib -lvorbis -lm -logg ../share/libutf8.a > ../share/libgetopt.a > > that is say > > "-lvorbis" instead of "/usr/lib/libvorbis.so" > "-lvorbisenc" instead of "/usr/lib/libvorbisenc.so" > "-logg" instead of "/usr/lib/libogg.so" > > it runs correctly for me when I make these changes manually on the command > line. I'm not familiar whith the all the make and configure scripts > so I don't know where to make the changes that would straighten > this out for the whole build process, but hope I gave someone more > knowledgeable then me enough information that they can fix it. > > Rick > > "The net is too big, too important, too political to be treated as something > for only a band of talented engineers to preside over." > - ICANN > > Whenever there is a conflict between human rights and property rights, > human rights must prevail. > - Abraham Lincoln > > Information is the currency of democracy. > - Thomas Jefferson > > > --- >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 'vorbis-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. ><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 'vorbis-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.
> it runs correctly for me when I make these changes manually on the command > line. I'm not familiar whith the all the make and configure scripts > so I don't know where to make the changes that would straighten > this out for the whole build process, but hope I gave someone more > knowledgeable then me enough information that they can fix it.That's libtools doing, and it should be fine. Are you sure you ran ldconfig after make installing libvorbis? Are you sure you don't have two copies installed? jack. --- >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 'vorbis-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.
> That's libtools doing, and it should be fine. Are you sure you ran > ldconfig after make installing libvorbis? Are you sure you don't have > two copies installed?thanks for the quick response; You where correct, I did have an old version installed, My slackware distro had that package installed I didn't realize it. I removed the the package, but libtools is still looking for the old ones and I can't get it to look for the new libraries things I've tried: I ran these commands after removing the package ldconfig (as root) make clean rm config.cache configure make I also tried running configure with these arguements ./configure --with-vorbis-libraries=/usr/local/lib --with-ogg-libraries=/usr/local/lib --with-ogg=/usr/local/lib --with-vorbis=/usr/local/lib --with-ao=/usr/local/lib --with-ao-libraries=/usr/local/lib I even tried to start from scratch rm -rf vorbis_tools-1.0rc3 tar -xzf vorbis-tools-1.0rc3.tar.gz cd vorbis_tools-1.0rc3 configure --with-vorbis-libraries=/usr/local/lib --with-ogg-libraries=/usr/local/lib --with-ogg=/usr/local/lib --with-vorbis=/usr/local/lib --with-ao=/usr/local/lib --with-ao-libraries=/usr/local/lib make <p>heres the error message from make gcc -DPACKAGE=\"vorbis-tools\" -DVERSION=\"1.0rc3\" -DHAVE_DLFCN_H=1 -DHAVE_PTHREAD=1 -DHAVE_ICONV=1 -DICONV_CONST= -DHAVE_ATEXIT=1 -DHAVE_ON_EXIT=1 -DHAVE_LANGINFO_CODESET=1 -I. -I. -I/usr/local/lib/include -I/usr/local/lib/include -I../include -O20 -ffast-math -fsigned-char -c platform.c libtool: link: cannot find the library `/usr/lib/libogg.la' make[2]: *** [oggenc] Error 1 make[2]: Leaving directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' make: *** [all-recursive] Error 1 <p>I'm don't know what else to do in order to get libtool to "forget" /usr/lib and start looking in /usr/local/lib I'm guessing libtool caches this information somewhere ? or is coded into the build scripts ? orry I don't know that much about libtool occasionally I try at moments like these to learn more about gnu build tools and every time I gain little more understanding, but for the most part it just hurts my head ;) Is there perhaps a good book out there on this subject somewhere. like "learn autogen to configure to make in just six months" :) Rick "The net is too big, too important, too political to be treated as something for only a band of talented engineers to preside over." - ICANN Whenever there is a conflict between human rights and property rights, human rights must prevail. - Abraham Lincoln Information is the currency of democracy. - Thomas Jefferson <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 'vorbis-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.