Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464148 - app-text/stardict-3.0.3-r2 fails to build
Summary: app-text/stardict-3.0.3-r2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-04-02 03:34 UTC by Patrick Lauer
Modified: 2014-05-09 14:18 UTC (History)
4 users (show)

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


Attachments
patch which fixes this underlinking problem (stardict-3.0.3-underlink.patch,1.36 KB, patch)
2013-10-30 21:31 UTC, Petr Zima
Details | Diff
ebuild using the patch (stardict-3.0.3-r2.ebuild.patch,853 bytes, patch)
2013-10-30 21:44 UTC, Petr Zima
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-04-02 03:34:38 UTC
mv -f .deps/dictmanage.Tpo .deps/dictmanage.Po
/bin/sh ../libtool --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -O2 -pipe  -Wl,-O1 -Wl,--as-needed  -lSM -lICE -o stardict   stardict.o mainwin.o conf.o skin.o prefsdlg.o dictmanagedlg.o pluginmanagedlg.o floatwin.o readword.o selection.o splash.o gtktextviewpango.o pangoview.o articleview.o class_factory.o inifile.o  x11_iskeyspressed.o docklet.o gtk_iskeyspressed.o progresswin.o tray.o dictmanage.o eggaccelerators.o globalhotkeys.o hotkeyeditor.o tomboykeybinder.o desktop.o log.o cmdlineopts.o lib/libstardict.la -lsigc-2.0  -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfreetype -lfontconfig -lgthread-2.0 -pthread -lglib-2.0  -lz  -lX11 
libtool: link: x86_64-pc-linux-gnu-g++ -O2 -pipe -Wl,-O1 -o stardict stardict.o mainwin.o conf.o skin.o prefsdlg.o dictmanagedlg.o pluginmanagedlg.o floatwin.o readword.o selection.o splash.o gtktextviewpango.o pangoview.o articleview.o class_factory.o inifile.o x11_iskeyspressed.o docklet.o gtk_iskeyspressed.o progresswin.o tray.o dictmanage.o eggaccelerators.o globalhotkeys.o hotkeyeditor.o tomboykeybinder.o desktop.o log.o cmdlineopts.o -pthread  -Wl,--as-needed lib/.libs/libstardict.a -lSM -lICE -lsigc-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfreetype -lfontconfig -lgthread-2.0 -lglib-2.0 -lz -lX11 -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/.libs/libstardict.a(pluginmanager.o): undefined reference to symbol 'g_module_symbol'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_module_symbol' is defined in DSO /usr/lib64/libgmodule-2.0.so.0 so try adding it to the linker command line
/usr/lib64/libgmodule-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[4]: *** [stardict] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-text/stardict-3.0.3-r2/work/stardict-3.0.3/dict/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-text/stardict-3.0.3-r2/work/stardict-3.0.3/dict/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-text/stardict-3.0.3-r2/work/stardict-3.0.3/dict'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-text/stardict-3.0.3-r2/work/stardict-3.0.3/dict'
make: *** [all-recursive] Error 1
 * ERROR: app-text/stardict-3.0.3-r2 failed (compile phase):
 *   emake failed

Portage 2.1.11.59 (default/linux/amd64/13.0, gcc-4.8.0, glibc-2.17, 3.7.9-vs2.3.5.6 x86_64)
=================================================================
System uname: Linux-3.7.9-vs2.3.5.6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7921088 total,    709708 free
KiB Swap:   25165812 total,  24580348 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.0::hardened-dev
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo hardened-dev
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.lecl.net/pub/gentoo/ http://ftp.lecl.net/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/hardened-development"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri egl fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp openvg pam pcre readline session sqlite sse sse2 ssl tcpd unicode xa xvfb zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2013-04-02 04:33:46 UTC
These errors aren't related to gcc-4.8.  It looks like binutils-2.23.2 is the cause.

PS, can you hold off filing bugs with the hardened-overlay 4.8.0?  i'll have an official version in the tree in a day or two.
Comment 2 Andrew Savchenko gentoo-dev 2013-08-24 19:40:26 UTC
This is a classical underlinking issue: g_module_symbol is used in dict/src/lib/pluginmanager.cpp but not linked to.

Just add gmodule-2.0 to pkg-config check to fix this. Patch for stardict-3.0.4 is  here: https://bugs.gentoo.org/attachment.cgi?id=356886 (bug 451730) If it doesn't apply, you got the idea.
Comment 3 Petr Zima 2013-10-30 21:31:26 UTC
Created attachment 362324 [details, diff]
patch which fixes this underlinking problem

I confirm that this is just underlinking issue with recent binutils. My patch is essentially the same as the one for 3.0.4 reffered above.
Comment 4 Petr Zima 2013-10-30 21:44:36 UTC
Created attachment 362326 [details, diff]
ebuild using the patch

There is a minor additional problem when running autoreconf after aplying the patch to dict/conrigure.ac. It is similar to bug #439894 (but I can trigger it only with modified ebuild which runs eautoreconf!):

configure.ac:310: error: possibly undefined macro: AM_GCONF_SOURCE_2
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

The problem is not entirely new in gentoo (e.g. some versions of evince, ibus, compiz, libcanberra or celestia). The build systems just wants to use the gconf macro even when building without gnome. Here I have chosen the easiest way of fixing this, i.e. to remove the macro completely when USE=-gnome.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-05-09 14:18:33 UTC
fixed by `sed` in 3.0.4's ebuild