[vorbis] Problem compiling ogg on OpenBSD-2.7

Rakhesh Sasidharan rakhesh at cse.iitd.ac.in
Sun Mar 11 10:12:14 PST 2001



> 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 
> ./configure 
This 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 at 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 at 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 at 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 at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list