Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 383593

Summary: media-video/ogmrip-0.13.6 fails to build with libpng-1.5
Product: Gentoo Linux Reporter: Alexandre Rostovtsev (RETIRED) <tetromino>
Component: Current packagesAssignee: media-video herd <media-video>
Severity: normal CC: billl, shinydoofy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 354479    
Attachments: build log

Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-09-19 07:30:53 UTC
Created attachment 286981 [details]
build log

media-vide/ogmrip fails to build with libpng-1.5 because in libpng-1.5, png.h no longer includes zlib.h, and ogmrip's source uses zlib macros (such as Z_BEST_COMPRESSION).

# USE="aac dbus dts gtk libnotify matroska mp3 mp4 nls ogm spell srt theora vorbis x264 xvid" emerge ogmrip
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -I/usr/include/libpng15    -I/usr/local/include -I.. -Wall -D_FORTIFY_SOURCE=2  -march=native -O2 -pipe -g -I/usr/local/include -I.. -Wall -D_FORTIFY_SOURCE=2 -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -c spudec.c
subp2pgm.c: In function ‘write_png’:
subp2pgm.c:164:39: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
subp2pgm.c:164:39: note: each undeclared identifier is reported only once for each function it appears in
subp2pgm.c:168:42: error: ‘Z_DEFAULT_STRATEGY’ undeclared (first use in this function)
make[2]: *** [subp2pgm.o] Error 1
Comment 1 Olivier Rolland 2011-09-19 18:07:30 UTC
Created attachment 287033 [details, diff]

This patch fixes this issue. Thanks for the report.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-09-20 10:21:13 UTC
Fixed. Thanks for reporting