Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540554 - app-editors/juffed-0.10 - libjuff.so.0.10: undefined reference to `enca_analyse'
Summary: app-editors/juffed-0.10 - libjuff.so.0.10: undefined reference to `enca_analyse'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 18:30 UTC by Karel De Vriendt
Modified: 2015-05-11 14:59 UTC (History)
0 users

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


Attachments
emerge --info (20150227-emerge--info.txt,4.88 KB, text/plain)
2015-02-27 08:45 UTC, Karel De Vriendt
Details
Build log (build.log,4.24 KB, text/plain)
2015-02-27 08:51 UTC, Karel De Vriendt
Details
build log (build.log,336.60 KB, text/plain)
2015-02-27 17:05 UTC, Karel De Vriendt
Details
CMake error log (CMakeError.log,5.51 KB, text/x-log)
2015-02-27 17:06 UTC, Karel De Vriendt
Details
CMake Output log (CMakeOutput.log,44.79 KB, text/plain)
2015-02-27 17:06 UTC, Karel De Vriendt
Details
Updated emerge --info (20150227-emerge--info.txt,9.78 KB, text/plain)
2015-02-27 17:09 UTC, Karel De Vriendt
Details
All information for juffed emerge (Juffed,328.78 KB, text/plain)
2015-05-06 20:15 UTC, Mark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karel De Vriendt 2015-02-18 18:30:14 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-19 07:03:22 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Karel De Vriendt 2015-02-27 08:45:48 UTC
Created attachment 397584 [details]
emerge --info

As requested, the output of the "emerge --info" command.
Comment 3 Karel De Vriendt 2015-02-27 08:51:25 UTC
Created attachment 397586 [details]
Build log

As requested, the full build log
Comment 4 Andrew Savchenko gentoo-dev 2015-02-27 16:12:41 UTC
Please also post CMakeOutput.log and CMakeError.log.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2015-02-27 16:41:37 UTC
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.
Comment 6 Karel De Vriendt 2015-02-27 17:05:20 UTC
Created attachment 397620 [details]
build log

Sorry - I do not know what went log. Correct build log attached
Comment 7 Karel De Vriendt 2015-02-27 17:06:00 UTC
Created attachment 397622 [details]
CMake error log

As requested
Comment 8 Karel De Vriendt 2015-02-27 17:06:39 UTC
Created attachment 397624 [details]
CMake Output log

As requested
Comment 9 Karel De Vriendt 2015-02-27 17:09:14 UTC
Created attachment 397626 [details]
Updated emerge --info
Comment 10 Karel De Vriendt 2015-02-27 17:11:17 UTC
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.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2015-03-04 18:52:45 UTC
Could you please add 'emerge -pv enca' and 'qlist enca'?
Comment 12 Mark 2015-05-06 20:13:46 UTC
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
Comment 13 Mark 2015-05-06 20:15:25 UTC
Created attachment 402786 [details]
All information for juffed emerge
Comment 14 Mark 2015-05-11 14:08:26 UTC
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.
Comment 15 Davide Pesavento (RETIRED) gentoo-dev 2015-05-11 14:43:18 UTC
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.
Comment 16 Davide Pesavento (RETIRED) gentoo-dev 2015-05-11 14:59:43 UTC
Fixed in cvs.