Hi, I have downloaded the following files libao-0.6.0.tar.gz libogg-1.0beta4.tar.gz libvorbis-1.0beta4.tar.gz vorbis-tools-1.0beta4.tar.gz as said from the download section. But I'm at a loss to what do after that. I don't have much experience/knowledge in compiling etc, but I still want to try out ogg. (I downloaded the source coz I have an OpenBSD machine, and there was no binary available). I tried compiling libogg-1.0beta4.tar.gz and libao-0.6.0.tar.gz, but end up with something like this upon running configure (the error is towards the end): Script started on Thu Mar 8 23:49:41 2001 [root@OpenBSD](libogg-1.0beta4)# ./configure loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... yes checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking host system type... i386-unknown-openbsd2.7 checking build system type... i386-unknown-openbsd2.7 checking for ranlib... (cached) ranlib checking for ld used by GCC... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) no checking for BSD-compatible nm... (cached) /usr/bin/nm -p checking whether ln -s works... (cached) yes checking for object suffix... o checking for executable suffix... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -p output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... openbsd2.7 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs creating libtool loading cache ./config.cache checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for working const... yes checking for int16_t... no checking for int32_t... no checking for uint32_t... no checking for u_int32_t... no checking for int64_t... no checking size of short... configure: error: can not run test program while cross compiling [root@OpenBSD](libogg-1.0beta4)# exit Script done on Thu Mar 8 23:49:58 2001 I have included the whole file coz I wasn't so sure what to not include -- what is the above error supposed to mean ? Is there anything I can do abt it ? Regards. __ Rakhesh Sasidharan rakhesh at cse.iitd.ac.in --- >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-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.
Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in> wrote: : : checking whether the C compiler (gcc ) works... yes : checking whether the C compiler (gcc ) is a cross-compiler... yes Hmmm, either there is a problem with your compiler, or the configure script is identifying it incorrectly. -- <blank signature> --- >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-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.
> What do the last several lines of your libogg-1.0beta4/config.log say?The last few lines seem OK. I'm not attaching them, as I have got over that problem.> What type of architecture are you running OpenBSD?i386.> What happens if you delete the config.cache and then do the following? > CC=gcc > CXX=gcc > export cc > export CXX > ./configureThis solves the problem. The whole thing compiles, and it installs the libraries, include files etc. Thanks a lot! Is it possible to get an explanation of why things worked now (or what the problem was, earlier)? But now I have other problem(s): When compiling "libvorbis-1.0beta4", I get the following: checking for Ogg... no *** Could not run Ogg test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means Ogg was incorrectly installed *** or that you have moved Ogg since it was installed. In the latter case, you *** may want to edit the ogg-config script: configure: error: must have Ogg installed! I checked config.log, and it reports the following: -------------- configure:1722: checking for memory.h configure:1732: gcc -E conftest.c >/dev/null 2>conftest.out configure:1759: checking for cos in -lm configure:1778: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm 1>&5 configure:1771: warning: conflicting types for built-in function `cos' configure:1800: checking for pthread_create in -lpthread configure:1819: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lpthread -lm 1>&5 ld: -lpthread: no match collect2: ld returned 1 exit status configure: failed program was: #line 1808 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pthread_create(); int main() { pthread_create() ; return 0; } configure:1867: checking for Ogg configure:1897: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm -logg 1>&5 configure:1886: ogg/ogg.h: No such file or directory configure: failed program was: #line 1881 "configure" #include "confdefs.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ogg/ogg.h> int main () { system("touch conf.oggtest"); return 0; } configure:1935: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm -logg 1>&5 configure:1928: ogg/ogg.h: No such file or directory configure: failed program was: #line 1925 "configure" #include "confdefs.h" #include <stdio.h> #include <ogg/ogg.h> int main() { return 0; ; return 0; } -------------- Sorry, that was kind of big. I didn't know what to do, but I was surprised about ogg.h being missing. I checked around, and it is installed at /usr/local/include/ogg/ogg.h. [root@OpenBSD](libvorbis-1.0beta4)# ls /usr/local/include/ogg/ config_types.h ogg.h os_types.h Also, what exactly is the order in which I should compile and install all the packages that I got from the ftp site ? So far I have installed libogg; I tried installing libao and got the following at the "make" stage: [root@OpenBSD](libao-0.6.0)# make Making all in src Making all in plugins Making all in oss Making all in esd Making all in alsa Making all in arts /bin/sh ../libtool --mode=compile gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c -fPIC -DPIC -o audio_out.lo audio_out.c: In function `_get_plugin': audio_out.c:66: `RTLD_NOW' undeclared (first use in this function) audio_out.c:66: (Each undeclared identifier is reported only once audio_out.c:66: for each function it appears in.) *** Error code 1 Stop in /intel/ogg/libao-0.6.0/src. *** Error code 1 Stop in /intel/ogg/libao-0.6.0/src (line 228 of Makefile). *** Error code 1 Stop in /intel/ogg/libao-0.6.0 (line 174 of Makefile). [root@OpenBSD](libao-0.6.0)# exit It was after this that I had tried libvorbis, and ended up with the errors I had shown above. Regards. __ Rakhesh Sasidharan rakhesh at cse.iitd.ac.in --- >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-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.
(Again, forwarded because of the antispam filter overzealousness bug; sorry about that) ----- Forwarded message from owner-vorbis@xiph.org ----- From: "Jeremy C. Reed" <reed@reedmedia.net> To: Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in> Cc: vorbis@xiph.org Subject: In-Reply-To: <Pine.LNX.4.10.10103092239210.2634-100000@bhairavi.cse.iitd.ernet.in> Message-ID: <Pine.LNX.4.21.0103090921490.19546-100000@pilchuck.reedmedia.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII> [root@OpenBSD](libogg-1.0beta4)# ./configure...> checking for int16_t... no > checking for int32_t... no > checking for uint32_t... no > checking for u_int32_t... no > checking for int64_t... no > checking size of short... configure: error: can not run test program > while cross compiling > [root@OpenBSD](libogg-1.0beta4)# exitWhat do the last several lines of your libogg-1.0beta4/config.log say? What type of architecture are you running OpenBSD? What happens if you delete the config.cache and then do the following? CC=gcc CXX=gcc export cc export CXX ./configure Jeremy C. Reed http://www.reedmedia.net/ ----- End forwarded message ----- --- >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-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.
----- Forwarded message from owner-vorbis@xiph.org ----- To: "Jeremy C. Reed" <reed@reedmedia.net> Cc: vorbis@xiph.org Subject: In-Reply-To: <Pine.LNX.4.21.0103090921490.19546-100000@pilchuck.reedmedia.net> Message-ID: <Pine.LNX.4.10.10103111450280.640-100000@deskar.cse.iitd.ernet.in> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII> What do the last several lines of your libogg-1.0beta4/config.log say?The last few lines seem OK. I'm not attaching them, as I have got over that problem.> What type of architecture are you running OpenBSD?i386.> What happens if you delete the config.cache and then do the following? > CC=gcc > CXX=gcc > export cc > export CXX > ./configureThis solves the problem. The whole thing compiles, and it installs the libraries, include files etc. Thanks a lot! Is it possible to get an explanation of why things worked now (or what the problem was, earlier)? But now I have other problem(s): When compiling "libvorbis-1.0beta4", I get the following: checking for Ogg... no *** Could not run Ogg test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means Ogg was incorrectly installed *** or that you have moved Ogg since it was installed. In the latter case, you *** may want to edit the ogg-config script: configure: error: must have Ogg installed! I checked config.log, and it reports the following: -------------- configure:1722: checking for memory.h configure:1732: gcc -E conftest.c >/dev/null 2>conftest.out configure:1759: checking for cos in -lm configure:1778: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm 1>&5 configure:1771: warning: conflicting types for built-in function `cos' configure:1800: checking for pthread_create in -lpthread configure:1819: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lpthread -lm 1>&5 ld: -lpthread: no match collect2: ld returned 1 exit status configure: failed program was: #line 1808 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pthread_create(); int main() { pthread_create() ; return 0; } configure:1867: checking for Ogg configure:1897: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm -logg 1>&5 configure:1886: ogg/ogg.h: No such file or directory configure: failed program was: #line 1881 "configure" #include "confdefs.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ogg/ogg.h> int main () { system("touch conf.oggtest"); return 0; } configure:1935: gcc -o conftest -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm -logg 1>&5 configure:1928: ogg/ogg.h: No such file or directory configure: failed program was: #line 1925 "configure" #include "confdefs.h" #include <stdio.h> #include <ogg/ogg.h> int main() { return 0; ; return 0; } -------------- Sorry, that was kind of big. I didn't know what to do, but I was surprised about ogg.h being missing. I checked around, and it is installed at /usr/local/include/ogg/ogg.h. [root@OpenBSD](libvorbis-1.0beta4)# ls /usr/local/include/ogg/ config_types.h ogg.h os_types.h Also, what exactly is the order in which I should compile and install all the packages that I got from the ftp site ? So far I have installed libogg; I tried installing libao and got the following at the "make" stage: [root@OpenBSD](libao-0.6.0)# make Making all in src Making all in plugins Making all in oss Making all in esd Making all in alsa Making all in arts /bin/sh ../libtool --mode=compile gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c -fPIC -DPIC -o audio_out.lo audio_out.c: In function `_get_plugin': audio_out.c:66: `RTLD_NOW' undeclared (first use in this function) audio_out.c:66: (Each undeclared identifier is reported only once audio_out.c:66: for each function it appears in.) *** Error code 1 Stop in /intel/ogg/libao-0.6.0/src. *** Error code 1 Stop in /intel/ogg/libao-0.6.0/src (line 228 of Makefile). *** Error code 1 Stop in /intel/ogg/libao-0.6.0 (line 174 of Makefile). [root@OpenBSD](libao-0.6.0)# exit It was after this that I had tried libvorbis, and ended up with the errors I had shown above. Regards. __ Rakhesh Sasidharan rakhesh at cse.iitd.ac.in ----- End forwarded message ----- --- >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-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 Jeremy, I rectified this particular problem. Basically, I used `./configure --with-ogg-prefix=...` and things worked. I have now managed to compile and install libogg and libao and vorbis. But I have a problem regarding vorbis-tools -- I have the details on a floppy, and I shall mail it in to the list after this mail. BTW, I have compiled the above three on NetBSD-1.5/i386. I was originally compiling it on OpenBSD, but I ended up doing them on NetBSD instead. Once things work out here, I shall check up on OpenBSD also.> I also had many problems with building under NetBSD. But I was finally > successful. All my notes are posted to the vorbis and vorbis-devel mailing > lists. I'll try to implement may changes to make a NetBSD package. (This > should be useful to help port for OpenBSD.) Hopefully, the vorbis > developers looked at my postings and will make their configure.in (and > some code) more portable.Thanks -- I shall go through the list archives. Around which time was it btw ? Just asked so I could search more specifically.> > Making all in alsa > > Making all in arts > > /bin/sh ../libtool --mode=compile gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c > > gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c -fPIC -DPIC -o audio_out.lo > > audio_out.c: In function `_get_plugin': > > audio_out.c:66: `RTLD_NOW' undeclared (first use in this function) > > Try changing the code to use RTLD_LAZY instead. (Please note, I haven't > tried this under OpenBSD.) > > As you work on this you'll probably find that you encounter many more > issues that you'll need to workaround.You bet. :) Thanks. __ Rakhesh Sasidharan rakhesh at cse.iitd.ac.in --- >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-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.
----- Forwarded message from owner-vorbis@xiph.org ----- Date: Mon, 12 Mar 2001 11:18:34 -0800 (PST) From: "Jeremy C. Reed" <reed@reedmedia.net> To: Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in> Cc: vorbis@xiph.org Subject: Re: [vorbis] Problem compiling ogg on OpenBSD-2.7 In-Reply-To: <Pine.LNX.4.10.10103111450280.640-100000@deskar.cse.iitd.ernet.in> Message-ID: <Pine.LNX.4.21.0103121109350.12722-100000@pilchuck.reedmedia.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Rakhesh, I also had many problems with building under NetBSD. But I was finally successful. All my notes are posted to the vorbis and vorbis-devel mailing lists. I'll try to implement may changes to make a NetBSD package. (This should be useful to help port for OpenBSD.) Hopefully, the vorbis developers looked at my postings and will make their configure.in (and some code) more portable.> Making all in alsa > Making all in arts > /bin/sh ../libtool --mode=compile gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c > gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include -O20 -D__NO_MATH_INLINES -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -c audio_out.c -fPIC -DPIC -o audio_out.lo > audio_out.c: In function `_get_plugin': > audio_out.c:66: `RTLD_NOW' undeclared (first use in this function)Try changing the code to use RTLD_LAZY instead. (Please note, I haven't tried this under OpenBSD.) As you work on this you'll probably find that you encounter many more issues that you'll need to workaround. Good luck, Jeremy C. Reed http://www.reedmedia.net/ ----- End forwarded message ----- --- >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-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.