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
Created attachment 349948 [details] build.log My plain-text copy/paste description doesn't look clean, please refer to the build.log
Created attachment 349950 [details] emerge-info
Created attachment 349952 [details] build.log
Created attachment 349954 [details] emerge-info
hi, same here adding inherit flag-o-matic and append-flags "-lm" to the ebuild fixed it for me... markus
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?
(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.
(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.
Created attachment 357260 [details, diff] Patch solving the underlinking problem
Patch applied to Portage. Closing.
And looks like the fix is already in upstream repository as well: http://sourceforge.net/p/hugin/autopano-sift-c/ci/4cebf88164c434aba3c635d46534ad3247db2e5f/