Created attachment 286979 [details] build log libextractor fails to build with zlib-1.2.5.1-r1 due to changes in OF and IF macros in gentoo's zlib.h. # emerge libextractor [...] make[5]: Entering directory `/var/tmp/portage/media-libs/libextractor-0.5.20c/work/libextractor-0.5.20c/src/plugins/oo' /bin/sh ../../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/include -I/usr/include -I/usr/include/qt4 -I/usr/include -I/usr/include/qt4 -fno-strict-aliasing -march=native -O2 -pipe -MT ooextractor.lo -MD -MP -MF .deps/ooextractor.Tpo -c -o ooextractor.lo ooextractor.c mkdir .libs x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/include -I/usr/include -I/usr/include/qt4 -I/usr/include -I/usr/include/qt4 -fno-strict-aliasing -march=native -O2 -pipe -MT ooextractor.lo -MD -MP -MF .deps/ooextractor.Tpo -c ooextractor.c -fPIC -DPIC -o .libs/ooextractor.o ooextractor.c:243:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’ ooextractor.c:273:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’ ooextractor.c:301:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’ ooextractor.c:404:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’ make[5]: *** [ooextractor.lo] Error 1
sed -i '1i#define OF(x) x' src/plugins/oo/ooextractor.c
fyi: same problem with version libextractor-0.6.0 (overlay zugaina)
0.6.2 doesn't fail and doesn't need the sed
(In reply to comment #1) > sed -i '1i#define OF(x) x' src/plugins/oo/ooextractor.c thanks, used that too for 0.5.20c since 0.6.x doesn't seem to be ready for our net-p2p/gnunet (needs a bump ...)