Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383585 - media-libs/libextractor-0.5.20c fails to build with zlib-1.2.5.1-r1
Summary: media-libs/libextractor-0.5.20c fails to build with zlib-1.2.5.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Keywording and Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on: 383179
Blocks:
  Show dependency tree
 
Reported: 2011-09-19 06:53 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2012-02-06 12:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (libextractor-0.5.20c.build.log.gz,11.99 KB, application/x-gzip)
2011-09-19 06:53 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-09-19 06:53:27 UTC
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
Comment 1 SpanKY gentoo-dev 2011-09-21 15:21:54 UTC
sed -i '1i#define OF(x) x' src/plugins/oo/ooextractor.c
Comment 2 MZ 2011-09-29 19:16:35 UTC
fyi: same problem with version libextractor-0.6.0 (overlay zugaina)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-10-09 17:32:34 UTC
0.6.2 doesn't fail and doesn't need the sed
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-10-09 17:46:00 UTC
(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 ...)