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

Bug 383827

Summary: media-libs/opencv-2.3.0 fails to build with errors in modules/highgui/src/grfmt_png.cpp
Product: Gentoo Linux Reporter: Todd Goodman <tsg>
Component: New packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED DUPLICATE    
Severity: normal CC: hwoarang, kde, m.debruijne
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge -pqv
build log
build log
Correct (failing) build.log)

Description Todd Goodman 2011-09-20 13:14:51 UTC
Created attachment 287155 [details]
emerge --info

opencv-2.3.0 fails to build with the following:

/var/tmp/portage/media-libs/opencv-2.3.0/work/OpenCV-2.3.0/modules/highgui/src/grfmt_png.cpp:308:33: error: ‘MAX_MEM_LEVEL’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.0/work/OpenCV-2.3.0/modules/highgui/src/grfmt_png.cpp:354:60: error: ‘Z_BEST_SPEED’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.0/work/OpenCV-2.3.0/modules/highgui/src/grfmt_png.cpp:356:59: error: ‘Z_HUFFMAN_ONLY’ was not declared in this scope
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_png.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
emake failed

If I add an #include <zlib.h> in grfmt_png.cpp then it builds OK.
Comment 1 Todd Goodman 2011-09-20 13:15:26 UTC
Created attachment 287157 [details]
emerge -pqv
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-09-20 13:35:38 UTC
We need a full build.log
Comment 3 Todd Goodman 2011-09-20 14:18:57 UTC
Created attachment 287163 [details]
build log
Comment 4 Todd Goodman 2011-09-20 14:19:12 UTC
Created attachment 287165 [details]
build log
Comment 5 Todd Goodman 2011-09-20 14:22:33 UTC
Comment on attachment 287163 [details]
build log

Sorry, wrong build logs
Comment 6 Todd Goodman 2011-09-20 14:44:47 UTC
Created attachment 287169 [details]
Correct (failing) build.log)
Comment 7 Rafał Mużyło 2011-09-20 15:02:59 UTC

*** This bug has been marked as a duplicate of bug 383571 ***