When I try to 'make' oggz (0.9.9), I get the following compile error make[4]: Leaving directory `/c/liboggz/src/tools/oggz-chop' make[4]: Entering directory `/c/liboggz/src/tools' /bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused -o oggz-info.exe oggz-info.o skeleton.o oggz_tools.o dirac.o ../liboggz/liboggz.la -logg -lm libtool: link: gcc -g -O2 -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused -o .libs/oggz-info.exe oggz-info.o skeleton.o oggz_tools.o dirac.o ../liboggz/.libs/liboggz.a /mingw/lib/libogg.a oggz-info.o: In function `ot_fisbone_print': c:\liboggz\src\tools/oggz-info.c:297: undefined reference to `strsep' collect2: ld returned 1 exit status make[4]: *** [oggz-info.exe] Error 1 That bit of code is: printf("\tMessage Header Fields:\n"); while (1) { token strsep(&messages, "\n\r"); printf("\t %s", token); if (messages == NULL) break; } removing the offending code, it builds okay gcc (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502 It would help the Windows community if you provided prebuilt binaries... preferably Visual C built, but MinGW is fine... just avoid requiring cygwin if you can. Cheers, Frank Barchard Google Chrome <video> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/ogg-dev/attachments/20090609/f7e26af6/attachment.htm
Frank Barchard wrote:> c:\liboggz\src\tools/oggz-info.c:297: undefined reference to `strsep'The function strsep is neither ISO C nor is it POSIX (BSD4.3 according to the man page). It therefore should not be used in cross-platform code. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
2009/6/10 Frank Barchard <fbarchard at google.com>:> When I try to 'make' oggz (0.9.9), I get the following compile error > make[4]: Leaving directory `/c/liboggz/src/tools/oggz-chop' > make[4]: Entering directory `/c/liboggz/src/tools' > /bin/sh ../../libtool --tag=CC --mode=link gcc ?-g -O2 -Wall -Wextra -g > -std=gnu99 -Wdeclaration-after-statement -Wno-unused ? -o oggz-info.exe > ?oggz-info.o skeleton.o oggz_tools.o dirac.o ../liboggz/liboggz.la ?-logg > -lm > libtool: link: gcc -g -O2 -Wall -Wextra -g -std=gnu99 > -Wdeclaration-after-statement -Wno-unused -o .libs/oggz-info.exe oggz-info.o > skeleton.o oggz_tools.o dirac.o ?../liboggz/.libs/liboggz.a > /mingw/lib/libogg.a > oggz-info.o: In function `ot_fisbone_print': > c:\liboggz\src\tools/oggz-info.c:297: undefined reference to `strsep' > collect2: ld returned 1 exit status > make[4]: *** [oggz-info.exe] Error 1 > That bit of code is: > > printf("\tMessage Header Fields:\n"); > while (1) { > token = strsep(&messages, "\n\r"); > printf("\t %s", token); > if (messages == NULL) > break; > } > > removing the offending code, it builds okay >ok, this should be fixed in the git HEAD now (git://git.xiph.org/liboggz.git), commit 1461a737cc12b628614dd4569455c30362523122 Please test :-)> gcc (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502 > > It would help the Windows community if you provided prebuilt binaries... > preferably Visual C built, but MinGW is fine... just avoid requiring cygwin > if you can.ok, there was recent talk of setting up a mingw buildbot. Conrad.