Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239563 - media-libs/opencv-1.0.0-r1 fails to compile due to invalid -L options.
Summary: media-libs/opencv-1.0.0-r1 fails to compile due to invalid -L options.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL: http://github.com/gentoofan23/tanders...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-04 16:47 UTC by Blorby
Modified: 2011-04-12 21:25 UTC (History)
2 users (show)

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


Attachments
Hack (swig.patch,409 bytes, patch)
2008-10-04 17:54 UTC, David Sveningsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blorby 2008-10-04 16:47:35 UTC
When trying to merge opencv :
[ebuild  N    ] media-libs/opencv-1.0.0-r1  USE="gtk jpeg png python tiff v4l zlib -debug -demos -examples -ffmpeg -ieee1394 -jpeg2k -openexr -xine" 0 kB

It finally ends with a libtool error :
/bin/sh ../../../libtool --tag=CXX   --mode=link i686-pc-linux-gnu-g++ -fPIC -I/usr/include/python2.5 -Wall -fno-rtti -pipe -O3 -g -march=i686 -ffast-math -fomit-frame-pointer -O2 -march=pentium-m -pipe -module -avoid-version -no-undefined -L. -L/usr/lib/python2.5/config -lm -lpthread -ldl  -lutil -lpython2.5 -Xlinker -export-dynamic -L  -o _highgui.la -rpath /usr/lib/python2.5/site-packages/opencv _highgui_la-_highgui.lo _highgui_la-pyhelpers.lo ../../../otherlibs/highgui/libhighgui.la -lpthread -ldl -lm 
libtool: link: require no space between `-L' and `-o'
make[4]: *** [_highgui.la] Error 1

I'm using libtool 2.2.6 and gcc 4.2.4
Comment 1 David Sveningsson 2008-10-04 17:42:40 UTC
It seems to be related to "SWIG_PYTHON_LIBS" being empty and multiple Makefile.am's containing "-L$(SWIG_PYTHON_LIBS)". Unfortunately I don't know how to fix it.
Comment 2 Thomas Sachau gentoo-dev 2008-10-04 17:51:22 UTC
This is no way a blocker, changing Severity to normal and assigning.
Comment 3 David Sveningsson 2008-10-04 17:54:38 UTC
Created attachment 167201 [details, diff]
Hack

I was able to compile it using this hack but there should be a better way.
Comment 4 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-10-04 18:17:08 UTC
Ah yes, I hit this when migrating this package to Exherbo. I'll backport the patch from exherbo to here.
Comment 5 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-10-04 18:44:50 UTC
Appropriate fix in $URL, I'll put this in gentoo-x86 shortly.
Comment 6 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-10-04 19:36:31 UTC
Erm, I'm having a little trouble reproducing this on gentoo, would you provide "emerge -pv opencv" output so I know what flags are causing this failure?
Comment 7 David Sveningsson 2008-10-04 19:56:01 UTC
(In reply to comment #6)
> Erm, I'm having a little trouble reproducing this on gentoo, would you provide
> "emerge -pv opencv" output so I know what flags are causing this failure?
> 

You need the PYTHON use flag.

[ebuild  N    ] media-libs/opencv-1.0.0-r1  USE="debug ffmpeg gtk jpeg jpeg2k png python tiff zlib -demos -examples -ieee1394 -openexr -v4l -xine" 0 kB
Comment 8 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-10-11 20:48:10 UTC
Does this patch fix the problems on your end?:

http://github.com/gentoofan23/tanderson/tree/master%2Fpackages%2Fmedia-libs%2Fopencv%2Ffiles%2Fopencv-1.0.0-swiginvalidlinkingoptions.patch?raw=true
Comment 9 David Sveningsson 2008-10-11 22:40:18 UTC
Yes, the linked patch works for me. Thanks!
Comment 10 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-10-12 22:47:26 UTC
Fixed in CVS, thanks for the report! Sorry about the delay, I've been really busy :(