Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472150 - media-gfx/autopano-sift-C-2.5.1 - ld: liblibsift.a(ScaleSpace.o): undefined reference to symbol 'exp@@GLIBC_2.2.5'
Summary: media-gfx/autopano-sift-C-2.5.1 - ld: liblibsift.a(ScaleSpace.o): undefined r...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL: http://sourceforge.net/p/hugin/autopa...
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-06-03 04:00 UTC by Jason Mours
Modified: 2013-08-28 17:59 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,6.46 KB, application/octet-stream)
2013-06-03 04:02 UTC, Jason Mours
Details
emerge-info (emerge-info,16.46 KB, text/plain)
2013-06-03 04:03 UTC, Jason Mours
Details
build.log (build.log,52.33 KB, text/plain)
2013-06-03 04:04 UTC, Jason Mours
Details
emerge-info (emerge-info,16.10 KB, text/plain)
2013-06-03 04:04 UTC, Jason Mours
Details
Patch solving the underlinking problem (autopano-sift-C-2.5.1-lm.patch,512 bytes, patch)
2013-08-28 16:52 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mours 2013-06-03 04:00:42 UTC
media-gfx/autopano-sift-C-2.5.1 was in packages. Getting 2 errors:

collect2: ld returned 1 exit status
make[2]: *** [generatekeys] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/autopano-sift-C-2.5.1/work/autopano-sift-C-2.5.1_build'
make[1]: *** [CMakeFiles/generatekeys.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[31m[1mLinking CXX executable autopano-sift-c
[0mcd /var/tmp/portage/media-gfx/autopano-sift-C-2.5.1/work/autopano-sift-C-2.5.1_build/APSCpp && /usr/bin/cmake -E cmake_link_script CMakeFiles/autopano-sift-c.dir/link.txt --verbose=1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: liblibsift.a(ScaleSpace.o): undefined reference to symbol 'exp@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/bin/x86_64-pc-linux-gnu-g++   -march=native -Os -pipe -ggdb    -Wl,-O1 -Wl,--as-needed CMakeFiles/autopano-sift-c.dir/ANNkd_wrap.o CMakeFiles/autopano-sift-c.dir/APSCpp_main.o CMakeFiles/autopano-sift-c.dir/APSCpp.o CMakeFiles/autopano-sift-c.dir/CamLens.o CMakeFiles/autopano-sift-c.dir/HermiteSpline.o CMakeFiles/autopano-sift-c.dir/saInterp.o CMakeFiles/autopano-sift-c.dir/saRemap.o  -o autopano-sift-c -rdynamic ANN/libANN.a ../liblibsift.a -ljpeg -ltiff -lpng -lz -lz -lpano13 -lxml2 
note: 'exp@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [autopano] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/autopano-sift-C-2.5.1/work/autopano-sift-C-2.5.1_build'
make[1]: *** [CMakeFiles/autopano.dir/all] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-gfx/autopano-sift-C-2.5.1/work/autopano-sift-C-2.5.1_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/media-gfx/autopano-sift-C-2.5.1/work/autopano-sift-C-2.5.1_build/CMakeFiles  16 17 18 19 20 21 22
[100%] Built target autopano-sift-c
make[1]: Leaving directory `/var/tmp/portage/media-gfx/autopano-sift-C-2.5.1/work/autopano-sift-C-2.5.1_build'
make: *** [all] Error 2

: Posting build.log

Reproducible: Always
Comment 1 Jason Mours 2013-06-03 04:02:57 UTC
Created attachment 349948 [details]
build.log

My plain-text copy/paste description doesn't look clean, please refer to the build.log
Comment 2 Jason Mours 2013-06-03 04:03:11 UTC
Created attachment 349950 [details]
emerge-info
Comment 3 Jason Mours 2013-06-03 04:04:23 UTC
Created attachment 349952 [details]
build.log
Comment 4 Jason Mours 2013-06-03 04:04:48 UTC
Created attachment 349954 [details]
emerge-info
Comment 5 markus 2013-08-22 15:36:41 UTC
hi,

same here

adding 

inherit flag-o-matic

and 

append-flags "-lm"

to the ebuild fixed it for me...

markus
Comment 6 Neil 2013-08-28 12:59:43 UTC
Exactly the same error here.

@markus : I'm not too hot on writing/tweaking ebuilds, could you indicate line numbers for where these should be inserted, I'll give it a go in a local overlay and if it works then upload a modified ebuild as an attachment?
Comment 7 Jason Mours 2013-08-28 16:03:19 UTC
(In reply to Neil from comment #6)
> Exactly the same error here.
> 
> @markus : I'm not too hot on writing/tweaking ebuilds, could you indicate
> line numbers for where these should be inserted, I'll give it a go in a
> local overlay and if it works then upload a modified ebuild as an attachment?

note: 'exp@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation

I'm tracing and debugging in kernel... This looks like weak symbols. I'm going to wait for the maintainer to re-write.
Comment 8 Jason Mours 2013-08-28 16:06:57 UTC
(In reply to Jason Mours from comment #7)
> (In reply to Neil from comment #6)
> > Exactly the same error here.
> > 
> > @markus : I'm not too hot on writing/tweaking ebuilds, could you indicate
> > line numbers for where these should be inserted, I'll give it a go in a
> > local overlay and if it works then upload a modified ebuild as an attachment?
> 
> note: 'exp@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it
> to the linker command line
> /lib64/libm.so.6: could not read symbols: Invalid operation
> 
> I'm tracing and debugging in kernel... This looks like weak symbols. I'm
> going to wait for the maintainer to re-write.

I hope I wasn't out of line if re-write isn't the plan of attack, I know that's a lot of work.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2013-08-28 16:52:10 UTC
Created attachment 357260 [details, diff]
Patch solving the underlinking problem
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2013-08-28 16:52:21 UTC
Patch applied to Portage. Closing.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2013-08-28 16:54:47 UTC
And looks like the fix is already in upstream repository as well:

http://sourceforge.net/p/hugin/autopano-sift-c/ci/4cebf88164c434aba3c635d46534ad3247db2e5f/