Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#80 Unable to compile on OpenBSD

closed
Josh Coalson
None
5
2007-05-07
2007-05-06
David Alexander
No

OpenBSD 4.0
gcc 3.3.5

I'm unable to build flac 1.4. It fails in format.c. I get the same problem with 1.3 but 1.2 builds fine. Here's the last bit of the make process:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include -I../.. -I./include -I../../include -DNDEBUG -O3 -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ -g -O2 -MT format.lo -MD -MP -MF .deps/format.Tpo -c format.c -fPIC -DPIC -o .libs/format.o
format.c: In function `FLAC__format_vorbiscomment_entry_value_is_legal':
format.c:298: warning: inlining failed in call to `utf8len_'
format.c:351: warning: called from here
format.c:298: warning: inlining failed in call to `utf8len_'
format.c:360: warning: called from here
format.c: In function `FLAC__format_vorbiscomment_entry_is_legal':
format.c:298: warning: inlining failed in call to `utf8len_'
format.c:385: warning: called from here
format.c: At top level:
format.c:474: error: syntax error before '*' token
format.c:475: warning: type qualifiers ignored on function return type
format.c:475: warning: return type defaults to `int'
format.c: In function `FLAC__format_picture_is_legal':
format.c:479: error: `picture' undeclared (first use in this function)
format.c:479: error: (Each undeclared identifier is reported only once
format.c:479: error: for each function it appears in.)
format.c:481: error: `violation' undeclared (first use in this function)
gmake[4]: *** [format.lo] Error 1
gmake[4]: Leaving directory `/tmp/3/flac-1.1.3/src/libFLAC'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/tmp/3/flac-1.1.3/src/libFLAC'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/3/flac-1.1.3/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/3/flac-1.1.3'
gmake: *** [all] Error 2

Discussion

  • Josh Coalson
    Josh Coalson
    2007-05-06

    Logged In: YES
    user_id=78173
    Originator: NO

    you are probably building on a system that has a previous version of libFLAC installed and it's picking up the old headers.

     
  • Josh Coalson
    Josh Coalson
    2007-05-06

    • assigned_to: nobody --> jcoalson
     
  • Logged In: YES
    user_id=1786872
    Originator: YES

    Yup. Uninstalling the previous version fixed my problem. Thanks!

     
    • status: open --> closed