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
--- Ben Hines <bhines@alumni.ucsd.edu> wrote:> 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: >... > 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) >... > 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.OK, let me experiment with that one. Josh __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com
Lateral to Matt, Matt, can you refresh my memory... I vaguely remember you mentioning that my OUR_CFLAGS_HEAD/OUR_CFLAGS_TAIL change to configure.in messed up debianization because it put local includes at the head... am I remembering right? Is there a way to resolve that problem *and* Ben's? Josh --- Ben Hines <bhines@alumni.ucsd.edu> wrote:> 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 > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Flac-dev mailing list > Flac-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flac-dev__________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com
Fink in fact uses the dpkg and builds .debs, so it is likely to be the exact same problem. -Ben On Monday, October 7, 2002, at 11:37 PM, Josh Coalson wrote:> Lateral to Matt, > Matt, can you refresh my memory... I vaguely remember you > mentioning that my OUR_CFLAGS_HEAD/OUR_CFLAGS_TAIL change > to configure.in messed up debianization because it put > local includes at the head... am I remembering right? Is > there a way to resolve that problem *and* Ben's? > > Josh > > --- Ben Hines <bhines@alumni.ucsd.edu> wrote: >> 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 >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Flac-dev mailing list >> Flac-dev@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/flac-dev > > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com >
On Mon, Oct 07, 2002 at 11:37:02PM -0700, Josh Coalson wrote:> Lateral to Matt, > Matt, can you refresh my memory... I vaguely remember you > mentioning that my OUR_CFLAGS_HEAD/OUR_CFLAGS_TAIL change > to configure.in messed up debianization because it put > local includes at the head... am I remembering right? Is > there a way to resolve that problem *and* Ben's?Hmm...I vaguely seem to recall something about this. This is definitely not breaking my 1.0.4 builds, but I don't have 1.0.3 installed anymore. I did when I made the first set of 1.0.4 debs, though, and it worked. Generally, any include paths internal to the flac source tree should go at the front of CFLAGS, so that they are searched first. -- - mdz