Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391961 - app-text/stardict-3.0.1-r3 doesn't build (Gucharmap not found, libz.so.1)
Summary: app-text/stardict-3.0.1-r3 doesn't build (Gucharmap not found, libz.so.1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Spell checking utilities and dictionaries -- related bugs (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-26 12:27 UTC by Sven Müller
Modified: 2012-01-08 17:30 UTC (History)
1 user (show)

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


Attachments
buildlog with gucharmap-2.32.1 (build.log,68.13 KB, text/plain)
2011-11-26 12:28 UTC, Sven Müller
Details
emerge --info =app-text/stardict-3.0.1-r3 (emerge_info.out,14.13 KB, text/plain)
2011-12-09 15:31 UTC, Attila Stehr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2011-11-26 12:27:44 UTC
Hello.

In the portage-update there was an upgrade of gucharmap:

[I] gnome-extra/gucharmap
     Available versions:  
	(0)	2.32.1 (~)3.0.1-r200
	(2.90)	(~)3.2.1

The upgrade installed 3.2.1 and deinstalled 2.32.1. After that stardict appeared in the rebuild list (revdep-rebuild). Rebuilding stardict gave:

emerge -1 stardict
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-text/stardict-3.0.1-r3
 * stardict-3.0.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                [ ok ]
>>> Unpacking source...
>>> Unpacking stardict-3.0.1.tar.bz2 to /var/tmp/portage/app-text/stardict-3.0.1-r3/work
>>> Source unpacked in /var/tmp/portage/app-text/stardict-3.0.1-r3/work
>>> Preparing source in /var/tmp/portage/app-text/stardict-3.0.1-r3/work/stardict-3.0.1 ...
 * Applying stardict-3.0.1-configure.in-EST.diff ...                     [ ok ]
 * Applying stardict-3.0.1-gconf-m4.diff ...                             [ ok ]
 * Applying stardict-3.0.1-gcc43.patch ...                               [ ok ]
 * Applying stardict-3.0.1-transparent_trayicon.patch ...                [ ok ]
 * Applying stardict-3.0.1-changelog-minor-typo-fixes.patch ...          [ ok ]
 * Applying stardict-3.0.1-gcc44.patch ...                               [ ok ]
 * Applying stardict-3.0.1-sparc_sigbus.patch ...                        [ ok ]
 * Applying stardict-3.0.1-gcc46.patch ...                               [ ok ]
 * Applying stardict-3.0.1-gucharmap2.patch ...                          [ ok ]
 * Running eautoreconf in '/var/tmp/portage/app-text/stardict-3.0.1-r3/work/stardict-3.0.1' ...
 * Running aclocal -I m4 -I m4 ...                                       [ ok ]
 * Running libtoolize --copy --force --install --automake ...            [ ok ]
 * Running aclocal -I m4 -I m4 ...                                       [ ok ]
 * Running autoconf -I m4 ...                                            [ ok ]
 * Running autoheader -I m4 ...                                          [ ok ]
 * Running automake --add-missing --copy ...                             [ ok ]
 * Running elibtoolize in: stardict-3.0.1/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 * Fixing OMF Makefiles ...                                              [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-text/stardict-3.0.1-r3/work/stardict-3.0.1 ...
 * econf: updating stardict-3.0.1/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating stardict-3.0.1/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-gnome-support --enable-spell --enable-gucharmap --enable-espeak --disable-qqwry --disable-festival --disable-advertisement --disable-updateinfo
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
configure: loading site script /usr/share/crossdev/include/site/x86_64-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
... (snip)
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for ENCHANT... yes
checking for GUCHARMAP... no
checking for GUCHARMAP... no
configure: error: Gucharmap library not found or too old. Use --disable-gucharmap to build without gucharmap plugin.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-text/stardict-3.0.1-r3/work/stardict-3.0.1/config.log
 * ERROR: app-text/stardict-3.0.1-r3 failed (configure phase):
 *   econf failed

Ok, I made a downgrade of gucharmap back to 2.32.1. But compiling failed again:

/bin/sh ../libtool --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -march=athlon64 -O2 -pipe -msse3 -ffast-math  -Wl,-O1 -Wl,--as-needed  -lSM -lICE -o stardict   stardict.o mainwin.o eggtrayicon.o docklet.o conf.o skin.o prefsdlg.o dictmanagedlg.o pluginmanagedlg.o floatwin.o readword.o selection.o splash.o utils.o gtktextviewpango.o pangoview.o articleview.o class_factory.o inifile.o x11_iskeyspressed.o gtk_iskeyspressed.o progresswin.o tray.o dictmanage.o desktop.o -lsigc-2.0   -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lz  lib/libstardict.a -lX11 
libtool: link: x86_64-pc-linux-gnu-g++ -march=athlon64 -O2 -pipe -msse3 -ffast-math -Wl,-O1 -Wl,--as-needed -o stardict stardict.o mainwin.o eggtrayicon.o docklet.o conf.o skin.o prefsdlg.o dictmanagedlg.o pluginmanagedlg.o floatwin.o readword.o selection.o splash.o utils.o gtktextviewpango.o pangoview.o articleview.o class_factory.o inifile.o x11_iskeyspressed.o gtk_iskeyspressed.o progresswin.o tray.o dictmanage.o desktop.o -pthread  /usr/lib64/libSM.so -L/usr/lib64 -luuid /usr/lib64/libICE.so /usr/lib64/libsigc-2.0.so -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 /usr/lib64/libfreetype.so -lbz2 -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lz lib/libstardict.a -lX11 -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: lib/libstardict.a(stddict.o): undefined reference to symbol 'gzclose'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'gzclose' is defined in DSO /lib64/libz.so.1 so try adding it to the linker command line
/lib64/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [stardict] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/app-text/stardict-3.0.1-r3/work/stardict-3.0.1/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/app-text/stardict-3.0.1-r3/work/stardict-3.0.1/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/app-text/stardict-3.0.1-r3/work/stardict-3.0.1'
make: *** [all] Fehler 2
emake failed
 * ERROR: app-text/stardict-3.0.1-r3 failed (compile phase):
 *   compile failure


Reproducible: Always
Comment 1 Sven Müller 2011-11-26 12:28:40 UTC
Created attachment 293823 [details]
buildlog with gucharmap-2.32.1
Comment 2 Rafał Mużyło 2011-11-26 14:49:14 UTC
First of all, 3.0.1-r200 would have been enough. Though the dep should be fixed to a slot.

Second part is a matter of order: lib/libstardict.a should have come before live system libs.

stardict seems a bit broken anyway.

On a semi-related note: while there has been a 3.0.3 release, it will be affected by this bug too and to be honest, it seems to become more broken in each subsequent release.
Comment 3 Attila Stehr 2011-12-09 15:28:20 UTC
Same here...

checking for GUCHARMAP... no
configure: error: Gucharmap library not found or too old. Use --disable-gucharmap to build without gucharmap plugin.
[...]

~ $ eix gucharmap
* gnome-extra/gucharmap
[...]
     Installed versions:  Version: 3.2.1(2.90)
                          Date:    19:27:44 07.12.2011
                          USE:     introspection test -cjk -debug -doc -gnome

config.log:

Perhaps you should add the directory containing `gucharmap-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gucharmap-2' found
configure:17579: $? = 1
configure:17593: result: no
No package 'gucharmap-2' found
configure:17627: error: Gucharmap library not found or too old. Use --disable-gucharmap to build without gucharmap plugin.

~ $ find /usr/lib64/ -name "gucharmap-2*.pc"
/usr/lib64/pkgconfig/gucharmap-2.90.pc


Looks like 
sudo ln -s /usr/lib64/pkgconfig/gucharmap-2.90.pc /usr/lib64/pkgconfig/gucharmap-2.pc
is a workaround...

Though I get an other error now... :(
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libgtk-x11-2.0.so: undefined reference to symbol 'g_module_symbol'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_module_symbol' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libgmodule-2.0.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libgmodule-2.0.so: could not read symbols: Invalid operation

Or is that due to my "workaround"?
Comment 4 Attila Stehr 2011-12-09 15:31:57 UTC
Created attachment 295297 [details]
emerge --info =app-text/stardict-3.0.1-r3
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-01-08 17:30:08 UTC
Fixed by 3.0.3 which is in portage