[Flac-dev] Updating flac include problems

Ben Hines bhines at alumni.ucsd.edu
Thu Oct 3 18:29:07 PDT 2002


Updating the fink flac to 1.0.4, it won't compile because finds the 
headers of the previous version in /sw/include, because the 
CPPFLAGS/CFLAGS are being put before the local includes:

(configure with ./configure --prefix=/sw --mandir=/sw/share/man )

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"flac\" 
-DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DFLAC__CPU_PPC=1 
-DFLAC__HAS_OGG=1 -DHAVE_ICONV=1 -DICONV_CONST=const 
-DFLAC__HAS_ID3LIB=1 -DID3LIB_MAJOR=3 -DID3LIB_MINOR=7 
-DID3LIB_PATCH=13 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 
-DSIZEOF_LONG_LONG=8 -I. -I. -I/sw/include -I../.. -I./include 
-I../../include -g -O2 -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops 
-finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ -c 
file_decoder.c -Wp,-MD,.deps/file_decoder.TPlo  -fno-common -DPIC -o 
.libs/file_decoder.lo
file_decoder.c:60: undefined type, found 
`FLAC__FileDecoderWriteCallback'
file_decoder.c:61: undefined type, found 
`FLAC__FileDecoderMetadataCallback'



However if i remove the CFLAGS/CPPFLAGS/etc to /sw/include, it can't 
find the ogg header:  (even if i specify 
--with-ogg-includes=/sw/include)

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"flac\" 
-DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DFLAC__CPU_PPC=1 -DFLAC__HAS_OGG=1 
-DFLAC__HAS_ID3LIB=1 -DID3LIB_MAJOR=3 -DID3LIB_MINOR=7 
-DID3LIB_PATCH=13 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 
-DSIZEOF_LONG_LONG=8 -I. -I. -I../.. -I./include -I../../include -O3 
-DNDEBUG -fomit-frame-pointer -funroll-loops -finline-functions -Wall 
-W -Winline -DFLaC__INLINE=__inline__ -c stream_decoder.c 
-Wp,-MD,.deps/stream_decoder.TPlo  -fno-common -DPIC -o 
.libs/stream_decoder.lo
stream_decoder.c:22: header file 'ogg/ogg.h' not found
stream_decoder.c:58: undefined type, found `ogg_stream_state'

Any ideas? It would probably be best if the  makefiles were changed to 
put the CFLAGS/CPPFLAGS at the end of the line after the others 
../../include paths.

The same problem might exist for the link lines, not sure.

-Ben





More information about the Flac-dev mailing list