| View previous topic :: View next topic |
| Author |
Message |
bobbyprani n00b

Joined: 27 Mar 2007 Posts: 7
|
Posted: Wed Nov 28, 2012 8:08 pm Post subject: 'g_module_symbol' is defined in DSO |
|
|
Hi, While emerging gnome, I get the error:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: util.o: undefined reference to symbol 'g_module_symbol'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_module_symbol' is defined in DSO /usr/lib/libgmodule-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgmodule-2.0.so.0: could not read symbols: Invalid operation
I got quite a few DSO errors like the above. How do I fix them?
Thanks.
emerge --info
Portage 2.1.11.31 (default/linux/amd64/10.0/no-multilib, gcc-4.7.2, glibc-2.15-r3, 3.2.0-33-generic x86_64)
=================================================================
System uname: Linux-3.2.0-33-generic-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.1
Timestamp of tree: Wed, 28 Nov 2012 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.5
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.4, 4.7.2
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS=""
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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 bash-completion berkdb bluetooth bzip2 cdr cli cracklib crypt cscope cups cxx dbus dga dri dvd dvdr emacs ffmpeg fortran gdbm gnome gpm gstreamer gtk gtk3 iconv ipv6 latex lzma matroska mmx modules mozilla mudflap ncurses nls nptl opengl openmp pam pch pcre pppd pulseaudio python readline session smp sse sse2 sse3 ssh ssl subversion symlink tcpd threads truetype unicode vim wifi x264 zlib" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON |
|
| Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5357 Location: Goose Creek SC
|
Posted: Thu Nov 29, 2012 2:39 am Post subject: |
|
|
| Code: | emerge glib
revdep-rebuild | might help _________________ Defund the FCC. |
|
| Back to top |
|
 |
bobbyprani n00b

Joined: 27 Mar 2007 Posts: 7
|
Posted: Fri Nov 30, 2012 12:17 am Post subject: |
|
|
| I tried this and glib installed fine, but still it errors out with the same error... |
|
| Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5357 Location: Goose Creek SC
|
|
| Back to top |
|
 |
mcclung n00b

Joined: 24 Apr 2005 Posts: 15
|
Posted: Sat Feb 02, 2013 5:23 pm Post subject: |
|
|
I actually seem to have the same problem with gcc 4.6.3, there are 22 different packages I can no longer build. Did you ever find a solution to your problem?
| Code: |
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -Wall -Wno-pointer-sign -funsigned-char -I/usr/kerberos/include -I/usr/include/freetype2 -Wl,-O1 -o xchat about.o ascii.o banlist.o chanlist.o chanview.o custom-list.o dccgui.o editlist.o fe-gtk.o fkeys.o gtkutil.o ignoregui.o joind.o menu.o maingui.o notifygui.o palette.o pixmaps.o plugin-tray.o plugingui.o rawlog.o search.o servlistgui.o setup.o textgui.o urlgrab.o userlistgui.o xtext.o -Wl,--version-script -Wl,./../version-script -pthread -Wl,--export-dynamic -pthread -Wl,--as-needed ../common/libxchatcommon.a -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/libfontconfig.so -lfreetype -lz -lbz2 -lexpat -lXext -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lgthread-2.0 -lX11 -lssl -lcrypto -ldl -lrt -lglib-2.0 -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: plugin-tray.o: undefined reference to symbol 'g_module_symbol'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_module_symbol' is defined in DSO /usr/lib/libgmodule-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgmodule-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
|
|
|
| Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5357 Location: Goose Creek SC
|
Posted: Sat Feb 02, 2013 5:37 pm Post subject: |
|
|
suggest minor variation on the theme. routine updates in the last couple of weeks have done a stealth gcc upgrade to 4.6.3.
http://www.gentoo.org/doc/en/gcc-upgrading.xml refers
suggest: | Code: | emerge gcc glibc glib
gcc-config -l | 4.6.3 is set active? if not set it. | Code: | | emerge --oneshot libtool | if emerge -1 libtool does not help perhaps emerge -e system when you have lots of time. _________________ Defund the FCC. |
|
| Back to top |
|
 |
mcclung n00b

Joined: 24 Apr 2005 Posts: 15
|
Posted: Sun Feb 03, 2013 12:07 am Post subject: |
|
|
Thank you for responding. In frustration, I have been through a rebuild of everything a couple of times already (crazy emerge -e system and world repetitions).
I verified that I am on gcc 4.6.3.
| Code: | # gcc-config -l
[1] x86_64-pc-linux-gnu-4.5.4
[2] x86_64-pc-linux-gnu-4.6.3 *
|
I ran through the upgrade steps (fix_libtool_files.sh, rebuild libtool when I switched.)
The rebuild of gcc, glibc and glib all went fine. As did the rebuild of libtool afterwards. Nothing rebuilt by revdep-rebuild.
Same errors on the rebuild of xchat, as above. On 2 of my Gentoo boxes these exact same ebuilds work without problem, on 2 others, no luck. So, that's a bit confusing. The configuration of the boxes are not absolutely identical (hardware or software), but the USE flags and portage FEATURES are pretty close.
Anyway, I appreciate the response, I am going to keep hacking away at it until I get it fixed. If you have any more ideas, I'd love to hear them. |
|
| Back to top |
|
 |
mmenphis n00b

Joined: 30 Jan 2012 Posts: 2
|
Posted: Sun Feb 03, 2013 4:49 am Post subject: |
|
|
| I have same error after switch to gcc-4.6.3. It's interesting that the compilation of "audacious-3.2.2-r1" works good, but "audacious-3.1.1" doesn't. |
|
| Back to top |
|
 |
mcclung n00b

Joined: 24 Apr 2005 Posts: 15
|
Posted: Sun Feb 03, 2013 5:08 am Post subject: |
|
|
Everything did seem to go sideways with the new gcc for me. But this was the first time I've tried to rebuild "world" in a couple of years (2011), so I wasn't sure if it was related to something else.
When I go back to the old gcc, it doesn't seem to fix things but I may need to rebuild more of the system with gcc 4.5.4.
I unmasked the latest audacious and that works for me as well. I have problems with gedit, tremulous, gdm, gnome-control-center, gnome-panel, gnome-system-monitor, yelp, gxine, xchat, gnome-terminal, and a few others. I have other problems unrelated to this DSO error, like dosemu. Some of them don't have newer builds available, or if they do they'd require unmasking a ton of ~amd64 gnome stuff to potentially fix.
EDIT: I've had a lot of luck fixing this by removing LD_LIBRARY_PATH from root's environment before running emerge. I remember why I set it originally in .bashrc, but it does seem to have caused a lot of unintended problems for me. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|