Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258652 - media-libs/opencv fails to build python bindings with swig-1.3.38
Summary: media-libs/opencv fails to build python bindings with swig-1.3.38
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-11 22:51 UTC by John Keeping
Modified: 2009-02-15 21:55 UTC (History)
0 users

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


Attachments
Patch which fixes the issue for me (opencv-1.0.0-swig-1.3.38.patch,346 bytes, patch)
2009-02-11 22:53 UTC, John Keeping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Keeping 2009-02-11 22:51:30 UTC
Emerging media-libs/opencv-1.0.0 with swig-1.3.38 and USE=python fails since PySwigObject_Check is not defined.

Reproducible: Always

Steps to Reproduce:
1. USE=python emerge opencv
Actual Results:  
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../cv/include -I../../../cxco
re/include -I../../../otherlibs/highgui -DCV_NO_BACKWARD_COMPATIBILITY -DNDEBUG -fPIC -I/usr/include/python2.5 
-Wall -fno-rtti -pipe -O3 -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -fweb -frename-regi
sters -mfpmath=sse -MT _highgui_la-_highgui.lo -MD -MP -MF .deps/_highgui_la-_highgui.Tpo -c _highgui.cpp  -fPI
C -DPIC -o .libs/_highgui_la-_highgui.o
../filtered/cv.h:2537: Warning(362): operator= ignored
../filtered/cv.h:2677: Warning(362): operator= ignored
../general/./extensions.i:53: Warning(303): %extend defined for an undeclared class CvFileStorage.
../general/./extensions.i:59: Warning(303): %extend defined for an undeclared class CvPOSITObject.
_highgui.cpp: In function ���CvArr* PyObject_to_CvArr(PyObject*, bool*)���:
_highgui.cpp:3030: error: ���PySwigObject_Check��� was not declared in this scope
_highgui.cpp: At global scope:
_highgui.cpp:2659: warning: ���long int PyInt_AS_LONG(PyObject*)��� defined but not used
_highgui.cpp:2669: warning: ���double PyFloat_AS_DOUBLE(PyObject*)��� defined but not used
_highgui.cpp:2957: warning: ���CvPoint PyObject_to_CvPoint(PyObject*)��� defined but not used
_highgui.cpp:2980: warning: ���CvPoint2D32f PyObject_to_CvPoint2D32f(PyObject*)��� defined but not used
make[4]: *** [_highgui_la-_highgui.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
../filtered/cv.h:892: Warning(451): Setting a const char * variable may leak memory.
../filtered/cv.h:908: Warning(451): Setting a const char * variable may leak memory.
../filtered/cv.h:917: Warning(451): Setting a const char * variable may leak memory.
../filtered/cv.h:918: Warning(451): Setting a const char * variable may leak memory.
../filtered/cv.h:2702: Warning(454): Setting a pointer/reference variable may leak memory.
../filtered/cv.h:2703: Warning(454): Setting a pointer/reference variable may leak memory.
../filtered/cv.h:2714: Warning(454): Setting a pointer/reference variable may leak memory.
../filtered/cv.h:2715: Warning(454): Setting a pointer/reference variable may leak memory.
../filtered/cv.h:3235: Warning(314): 'lambda' is a python keyword, renaming to '_lambda'
../filtered/cv.h:3235: Warning(314): 'lambda' is a python keyword, renaming to '_lambda'
make[4]: Leaving directory `/home/portage/portage/media-libs/opencv-1.0.0-r1/work/opencv-1.0.0/interfaces/swig/python'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/portage/portage/media-libs/opencv-1.0.0-r1/work/opencv-1.0.0/interfaces/swig'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/portage/portage/media-libs/opencv-1.0.0-r1/work/opencv-1.0.0/interfaces'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage/portage/media-libs/opencv-1.0.0-r1/work/opencv-1.0.0'
make: *** [all] Error 2
 *
 * ERROR: media-libs/opencv-1.0.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2951:  Called die
 * The specific snippet of code:
 *       emake || die "Emake failed"
 *  The die message:
 *   Emake failed  
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-libs:opencv-1.0.0-r1:20090211-220207.log'.
 * The ebuild environment file is located at '/home/portage/portage/media-libs/opencv-1.0.0-r1/temp/environment'.
 *
Comment 1 John Keeping 2009-02-11 22:53:42 UTC
Created attachment 181705 [details, diff]
Patch which fixes the issue for me
Comment 2 Patrick Lauer gentoo-dev 2009-02-15 21:55:46 UTC
+  15 Feb 2009; Patrick Lauer <patrick@gentoo.org>
+  +files/opencv-1.0.0-fix-swig.patch, opencv-1.0.0-r1.ebuild:
+  Fixing small error in the building of py bindings. Patch from John
+  Keeping, closes #258652