Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED!] undefined reference to g_dgettext
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
koolfy
n00b
n00b


Joined: 05 Dec 2007
Posts: 12

PostPosted: Tue Jul 29, 2008 3:35 pm    Post subject: [SOLVED!] undefined reference to g_dgettext Reply with quote

problem when compiling gnome-base/libgnomeui-2.22.1 (by emerge -uavDN world)




Code:
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O3 -pipe -o .libs/test-entry testentry.o -pthread  ../libgnomeui/.libs/libgnomeui-2.so /usr/lib64/libxml2.so /usr/lib64/libbonoboui-2.so /usr/lib64/libgnomecanvas-2.so /usr/lib64/libgnome-2.so /usr/lib64/libart_lgpl_2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libcairo.so /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so /usr/lib64/libORBit-2.so /usr/lib64/libpango-1.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgnomevfs-2.so /usr/lib64/libgconf-2.so /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libgnome-keyring.so /usr/lib64/libjpeg.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so /usr/lib64/libpopt.so
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-gnome] Erreur 1
make[2]: *** Attente des tâches non terminées....
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O3 -pipe -o .libs/test-iconlist testiconlist.o -pthread  ../libgnomeui/.libs/libgnomeui-2.so /usr/lib64/libxml2.so /usr/lib64/libbonoboui-2.so /usr/lib64/libgnomecanvas-2.so /usr/lib64/libgnome-2.so /usr/lib64/libart_lgpl_2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libcairo.so /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so /usr/lib64/libORBit-2.so /usr/lib64/libpango-1.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgnomevfs-2.so /usr/lib64/libgconf-2.so /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libgnome-keyring.so /usr/lib64/libjpeg.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so /usr/lib64/libpopt.so
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-entry] Erreur 1
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O3 -pipe -o .libs/test-druid testdruid.o -pthread  ../libgnomeui/.libs/libgnomeui-2.so /usr/lib64/libxml2.so /usr/lib64/libbonoboui-2.so /usr/lib64/libgnomecanvas-2.so /usr/lib64/libgnome-2.so /usr/lib64/libart_lgpl_2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libcairo.so /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so /usr/lib64/libORBit-2.so /usr/lib64/libpango-1.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgnomevfs-2.so /usr/lib64/libgconf-2.so /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libgnome-keyring.so /usr/lib64/libjpeg.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so /usr/lib64/libpopt.so
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-iconlist] Erreur 1
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-druid] Erreur 1
make[2]: quittant le répertoire « /var/tmp/portage/gnome-base/libgnomeui-2.22.1/work/libgnomeui-2.22.1/test-gnome »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/gnome-base/libgnomeui-2.22.1/work/libgnomeui-2.22.1 »
make: *** [all] Erreur 2
 *
 * ERROR: gnome-base/libgnomeui-2.22.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2658:  Called gnome2_src_compile
 *             environment, line 2034:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/gnome-base/libgnomeui-2.22.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-base/libgnomeui-2.22.1/temp/environment'.


important lines are :

Code:
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-gnome] Erreur 1


Code:
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-entry] Erreur 1


Code:
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-iconlist] Erreur 1


Code:
/usr/lib64/libbonoboui-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[2]: *** [test-druid] Erreur 1



people suggested me a revdep-rebuild,
revdep-rebuilds begins with gnome-base/gnome-settings-daemon-2.22.2.1
and gets the same error :

Code:
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O3 -pipe -o gnome-settings-daemon gnome_settings_daemon-main.o gnome_settings_daemon-gnome-settings-manager.o gnome_settings_daemon-gnome-settings-plugin.o gnome_settings_daemon-gnome-settings-plugin-info.o gnome_settings_daemon-gnome-settings-module.o -Wl,--export-dynamic -pthread  ./.libs/libgsd-profile.a /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so -L/usr/lib64 /usr/lib64/libpangoft2-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libdirectfb.so /usr/lib64/libfusion.so /usr/lib64/libdirect.so /usr/lib64/libglitz-glx.so /usr/lib64/libglitz.so /usr/lib64/libGL.so /usr/lib64/libXext.so /usr/lib64/libpng12.so /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libpixman-1.so /usr/lib64/libgnome-2.so /usr/lib64/libgnomevfs-2.so /usr/lib64/libxml2.so -lm /usr/lib64/libdbus-glib-1.so -lnsl /usr/lib64/libgnutls.so -lz /usr/lib64/libtasn1.so /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /usr/lib64/libavahi-glib.so /usr/lib64/libavahi-client.so /usr/lib64/libdbus-1.so /usr/lib64/libavahi-common.so -lresolv -lutil /usr/lib64/libgconf-2.so /usr/lib64/libpopt.so /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so /usr/lib64/libORBitCosNaming-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so 
/usr/lib64/libgnome-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[3]: *** [gnome-settings-daemon] Erreur 1
make[3]: quittant le répertoire « /var/tmp/portage/gnome-base/gnome-settings-daemon-2.22.2.1/work/gnome-settings-daemon-2.22.2.1/gnome-settings-daemon »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /var/tmp/portage/gnome-base/gnome-settings-daemon-2.22.2.1/work/gnome-settings-daemon-2.22.2.1/gnome-settings-daemon »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/gnome-base/gnome-settings-daemon-2.22.2.1/work/gnome-settings-daemon-2.22.2.1 »
make: *** [all] Erreur 2
 *
 * ERROR: gnome-base/gnome-settings-daemon-2.22.2.1 failed.


I quote :

Code:
/usr/lib64/libgnome-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[3]: *** [gnome-settings-daemon] Erreur 1



I red somewhere that g_dgettext was part of glib, which was updated at the beginning of the emerge world, I tried to re-emerge it but it changed nothing (however, it compiled fine)


as I can't get any far with emerge world and revdep-rebuild can't do anything, (and google has no solution for me), I'm asking here what is my 'noobish mistake'


Last edited by koolfy on Tue Jul 29, 2008 5:29 pm; edited 2 times in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Jul 29, 2008 3:42 pm    Post subject: Reply with quote

try rebuilding gnome-base/libbonoboui
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
koolfy
n00b
n00b


Joined: 05 Dec 2007
Posts: 12

PostPosted: Tue Jul 29, 2008 3:46 pm    Post subject: Reply with quote

thanks for the fast time response but the result is not very positive :

Code:
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O3 -pipe -o .libs/bonobo-hello hello.o -pthread  ../../bonobo/.libs/libbonoboui-2.so -L/usr/lib64 /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libgnomecanvas-2.so /usr/lib64/libgailutil.so /usr/lib64/libart_lgpl_2.so /usr/lib64/libgnome-2.so /usr/lib64/libpopt.so /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so /usr/lib64/libORBitCosNaming-2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libdirectfb.so /usr/lib64/libfusion.so /usr/lib64/libdirect.so /usr/lib64/libglitz-glx.so /usr/lib64/libglitz.so /usr/lib64/libGL.so /usr/lib64/libXext.so /usr/lib64/libpng12.so /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libpixman-1.so /usr/lib64/libgnomevfs-2.so /usr/lib64/libxml2.so -lm /usr/lib64/libdbus-glib-1.so -lnsl /usr/lib64/libgnutls.so -lz /usr/lib64/libtasn1.so /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /usr/lib64/libavahi-glib.so /usr/lib64/libavahi-client.so /usr/lib64/libdbus-1.so /usr/lib64/libavahi-common.so -lresolv -lutil /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so
/usr/lib64/libgnome-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[3]: *** [bonobo-hello] Erreur 1


as you can see, same problem here..
Code:
/usr/lib64/libgnome-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[3]: *** [bonobo-hello] Erreur 1
Back to top
View user's profile Send private message
MoinMan
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2007
Posts: 78
Location: Liechtenstein

PostPosted: Tue Jul 29, 2008 4:19 pm    Post subject: Reply with quote

looks like libgnome is the culprit --> try rebuilding gnome-base/libgnome
Back to top
View user's profile Send private message
koolfy
n00b
n00b


Joined: 05 Dec 2007
Posts: 12

PostPosted: Tue Jul 29, 2008 4:53 pm    Post subject: Reply with quote

thank you again, but no luck.. same error :

Code:
/bin/sh ../libtool --mode=link x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O3 -pipe  -o gnome-open gnome-open.o libgnome-2.la -Wl,--export-dynamic -pthread -lgnomevfs-2 -lbonobo-2 -lbonobo-activation -lgmodule-2.0 -ldl -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lgconf-2 -lglib-2.0   -lpopt
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O3 -pipe -o .libs/gnome-open gnome-open.o -Wl,--export-dynamic -pthread  ./.libs/libgnome-2.so -L/usr/lib64 /usr/lib64/libgnomevfs-2.so /usr/lib64/libxml2.so -lm /usr/lib64/libdbus-glib-1.so -lnsl /usr/lib64/libgnutls.so -lz /usr/lib64/libtasn1.so /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /usr/lib64/libavahi-glib.so /usr/lib64/libavahi-client.so /usr/lib64/libdbus-1.so /usr/lib64/libavahi-common.so -lresolv -lutil /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so /usr/lib64/libORBitCosNaming-2.so /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so /usr/lib64/libpopt.so
/usr/lib64/libbonobo-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[3]: *** [gnome-open] Erreur 1
make[3]: quittant le répertoire « /var/tmp/portage/gnome-base/libgnome-2.22.0/work/libgnome-2.22.0/libgnome »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /var/tmp/portage/gnome-base/libgnome-2.22.0/work/libgnome-2.22.0/libgnome »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/gnome-base/libgnome-2.22.0/work/libgnome-2.22.0 »
make: *** [all] Erreur 2
 *
 * ERROR: gnome-base/libgnome-2.22.0 failed.



Code:
/usr/lib64/libbonobo-2.so: undefined reference to `g_dgettext'
collect2: ld returned 1 exit status
make[3]: *** [gnome-open] Erreur 1


it seems that this g_dgettext is blocking everything out...
Back to top
View user's profile Send private message
koolfy
n00b
n00b


Joined: 05 Dec 2007
Posts: 12

PostPosted: Tue Jul 29, 2008 5:27 pm    Post subject: Reply with quote

Ok, some progress here.

when emerging libgnome, the same error went again with another lib : gnome-vfs
emerging gnome-vfs worked. (hooray !)
trying to emerge libgnome then gave the same error with libbonobo (and not libbonoboui like libgnomeui, either gnome-vfs like it did before )
emerging libbonobo worked too (hooray² !)
emerging libgnome worked after that (hooray³ !)
now, libbonoboui has justed finished sucessfully ( (hooray³ * hooray) !)
now the compilation of libgnomeui got the error with libgnome-keyring
I am now compiling gnome-keyring...good ! worked. (hooray^(4) !)
now retrying libgnomeui... and it worked.

So the package blocking my emerge world has been successfully emerged now. Every ebuild giving this error from now will be repairable emerging the ebuild whose broken lib is from. It's like a manual revdep-rebuild, in fact.

I hope this will help anybody having this same error : the problem is in the libs, not in the "g_dgettext" thing, emerging those libs solves the problem.

IMO when glib got updated it broke all those libs, I wonder why revdep-rebuild couldn't see what packages were concerned and in what order emerge it, if it's fixable I hope my thread helped.

However, it's maybe just my fault doing something bad.
Back to top
View user's profile Send private message
koolfy
n00b
n00b


Joined: 05 Dec 2007
Posts: 12

PostPosted: Tue Jul 29, 2008 5:31 pm    Post subject: Reply with quote

I forgot : Thank you all.
Back to top
View user's profile Send private message
bytenirvana
Apprentice
Apprentice


Joined: 10 Jun 2006
Posts: 218
Location: Volksstaat Hessen

PostPosted: Fri Nov 07, 2008 4:03 pm    Post subject: Reply with quote

thx for your "sequence". I can now finally use thunderbird again! :D

Why couldn't revdep-rebuild figure this out?
_________________
Linux User #422770
Back to top
View user's profile Send private message
b0b0
n00b
n00b


Joined: 18 Nov 2004
Posts: 43

PostPosted: Sun Dec 28, 2008 5:12 am    Post subject: Reply with quote

I am trying to work through a similar problem myself, and revdep-rebuild is not finding these glib-dependent broken libraries either. Whenever I use ldd, it seems to give me the correct dependency hierarchy; is there a reason why revdep-rebuild is not working?

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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