Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383827 - media-libs/opencv-2.3.0 fails to build with errors in modules/highgui/src/grfmt_png.cpp
Summary: media-libs/opencv-2.3.0 fails to build with errors in modules/highgui/src/grf...
Status: RESOLVED DUPLICATE of bug 383571
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 13:14 UTC by Todd Goodman
Modified: 2011-09-20 15:02 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,4.95 KB, text/plain)
2011-09-20 13:14 UTC, Todd Goodman
Details
emerge -pqv (emerge.pqv,212 bytes, text/plain)
2011-09-20 13:15 UTC, Todd Goodman
Details
build log (build.log,136.45 KB, text/plain)
2011-09-20 14:18 UTC, Todd Goodman
Details
build log (build.log,136.45 KB, text/plain)
2011-09-20 14:19 UTC, Todd Goodman
Details
Correct (failing) build.log) (build.log,54.98 KB, text/plain)
2011-09-20 14:44 UTC, Todd Goodman
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***