emerging juffed-0.10 fails with undefined references during linking. Reproducible: Always Steps to Reproduce: 1. emerge juffed-0.8.1 ==> succes 2. emerge juffed-0.10 (latest version) ==> fails 3. Actual Results: End of the build log: libjuff.so.0.10: undefined reference to `enca_analyse' libjuff.so.0.10: undefined reference to `enca_set_garbage_test' libjuff.so.0.10: undefined reference to `enca_charset_name' libjuff.so.0.10: undefined reference to `enca_set_termination_strictness' libjuff.so.0.10: undefined reference to `enca_set_ambiguity' libjuff.so.0.10: undefined reference to `enca_set_threshold' libjuff.so.0.10: undefined reference to `enca_analyser_alloc' libjuff.so.0.10: undefined reference to `enca_analyser_free' libjuff.so.0.10: undefined reference to `enca_set_multibyte' collect2: error: ld returned 1 exit status make[2]: *** [juffed] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-editors/juffed-0.10/work/juffed-0.10_build' make[1]: *** [CMakeFiles/juffed.dir/all] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-editors/juffed-0.10/work/juffed-0.10_build' make: *** [all] Error 2 Version enca used is enca-1.14-r2. Let me know if additional information is needed
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Created attachment 397584 [details] emerge --info As requested, the output of the "emerge --info" command.
Created attachment 397586 [details] Build log As requested, the full build log
Please also post CMakeOutput.log and CMakeError.log.
The build log in comment #3 is completely different to the errors you describe in comment #0. It's not clear if this is a Funtoo issue or not. Regardless, I added a missing USE dependency that may or may not be the cause of your issue.
Created attachment 397620 [details] build log Sorry - I do not know what went log. Correct build log attached
Created attachment 397622 [details] CMake error log As requested
Created attachment 397624 [details] CMake Output log As requested
Created attachment 397626 [details] Updated emerge --info
Sorry, I do not know what went wrong. Attached what I hope is a consistent set files. There is indeed an extra dependency missing in the funtoo ebuild but adding this dependency (and adding qt4 in my make.conf file) did not make any difference. Please reconsider.
Could you please add 'emerge -pv enca' and 'qlist enca'?
I can confirm this. Attached is my information. Also: emerge -pv enca These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-i18n/enca-1.14-r2::gentoo USE="recode -doc" ABI_X86="32 (64) (-x32)" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB qlist enca /usr/libexec/enca/extconv/cstocs /usr/libexec/enca/extconv/map /usr/libexec/enca/extconv/piconv /usr/libexec/enca/extconv/recode /usr/libexec/enca/extconv/umap /usr/lib32/libenca.so.0 /usr/lib32/libenca.so /usr/lib32/pkgconfig/enca.pc /usr/lib32/libenca.so.0.5.1 /usr/include/enca.h /usr/share/gtk-doc/html/libenca/ch01.html /usr/share/gtk-doc/html/libenca/index.html /usr/share/gtk-doc/html/libenca/libenca-Analyser.html /usr/share/gtk-doc/html/libenca/libenca-Auxiliary-Functions.html /usr/share/gtk-doc/html/libenca/libenca-Charsets-and-Surfaces.html /usr/share/gtk-doc/html/libenca/libenca-Typedefs-and-Constants.html /usr/share/gtk-doc/html/libenca/index.sgml /usr/share/gtk-doc/html/libenca/libenca.devhelp /usr/share/man/man1/enca.1.bz2 /usr/share/man/man1/enconv.1.bz2 /usr/share/doc/enca-1.14-r2/FAQ.bz2 /usr/share/doc/enca-1.14-r2/THANKS.bz2 /usr/share/doc/enca-1.14-r2/TODO.bz2 /usr/share/doc/enca-1.14-r2/NEWS.bz2 /usr/share/doc/enca-1.14-r2/AUTHORS.bz2 /usr/share/doc/enca-1.14-r2/ChangeLog.bz2 /usr/share/doc/enca-1.14-r2/README.devel.bz2 /usr/share/doc/enca-1.14-r2/README.bz2 /usr/lib64/libenca.so.0 /usr/lib64/libenca.so /usr/lib64/pkgconfig/enca.pc /usr/lib64/libenca.so.0.5.1 /usr/bin/enconv /usr/bin/enca
Created attachment 402786 [details] All information for juffed emerge
Is there nay plan to confirm and/or fix this? juffed is now broken by qscintilla and no rebuild is possible due to this problem identified about three months ago.
It's libjuff.so that uses (and therefore must be linked against) libenca, not the juffed binary. This dependency is not declared in CMakeLists.txt, so -lenca ends up before libjuff.so on the linker command line, causing the failure.
Fixed in cvs.