After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 504401 - 'make' fails even though 'configure' is OK
'make' fails even though 'configure' is OK
Status: RESOLVED FIXED
Product: glade-legacy
Classification: Deprecated
Component: general
2.12.x
Other All
: Normal blocker
: ---
Assigned To: Damon Chaplin
Damon Chaplin
Depends on:
Blocks:
 
 
Reported: 2007-12-19 08:42 UTC by Sergei Steshenko
Modified: 2008-01-11 18:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sergei Steshenko 2007-12-19 08:42:01 UTC
Please describe the problem:
I lost the ability to build glade-2.12.1 in the framework of my AppsFromScratch
after upgrading versions of gtk+ and friends.

At them moment 'make' fails with these error messages:

gcc -g -O2 -o glade-2 debug.o editor.o gb.o gbwidget.o glade_widget_data.o gbsource.o glade.o glade_atk.o glade_clipboard.o glade_gnome.o glade_gnomelib.o glade_gnomedblib.o glade_gtk12lib.o glade_keys_dialog.o glade_menu_editor.o glade_palette.o glade-parser.o glade_plugin.o glade_project.o glade_project_options.o glade_project_view.o glade_project_window.o keys.o load.o main.o named_icons.o palette.o property.o save.o source.o source_os2.o styles.o tree.o utils.o -pthread  -L/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/MesaLib-7.0.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/lib -L/maxtor5/sergei/AppsFromScratchWD/install/bison-2.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/bzip2-1.0.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/lib -L/maxtor5/sergei/AppsFromScratchWD/install/cups-1.3.5-source/lib -L/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/lib -L/maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/flex-2.5.33/lib -L/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gettext-0.17/lib -L/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libIDL-0.8.7/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgcrypt-1.2.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libglade-2.6.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgpg-error-1.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libiconv_pre-1.11/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libxslt-1.1.17/lib -L/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/lib -L/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/lib -L/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/lib/engines -L/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/popt-1.6.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/scrollkeeper-0.3.14/lib -L/maxtor5/sergei/AppsFromScratchWD/install/tiff-3.8.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/zlib-1.2.3/lib gbwidgets/libgbwidgets.a gnome/libgnomewidgets.a /maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/lib/libgnomeui-2.so /maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/lib/libgnome-keyring.so /maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/lib/libjpeg.so /maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/lib/libbonoboui-2.so /maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/lib/libgnomecanvas-2.so /maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/lib/libgailutil.so /maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/lib/libgnome-2.so /maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib/libgnomevfs-2.so /maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib/libxml2.so -lssl -lcrypto -lresolv -lutil /maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/lib/libgconf-2.so /maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/lib/libesd.so /usr/lib/libasound.so /maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/lib/libaudiofile.so /maxtor5/sergei/AppsFromScratchWD/install/popt-1.6.4/lib/libpopt.so /maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/lib/libart_lgpl_2.so /maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib/libgtk-x11-2.0.so /maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib/libgdk-x11-2.0.so /maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/lib/libatk-1.0.so /maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib/libgdk_pixbuf-2.0.so /maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib/libpangocairo-1.0.so /maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib/libpangoft2-1.0.so /maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib/libpango-1.0.so /maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/lib/libcairo.so /maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/lib/libfontconfig.so /maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/lib/libfreetype.so /maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/lib/libexpat.so /maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/lib/libpng12.so -lz /usr/lib/libXrender.so /maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib/libbonobo-2.so /maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib/libbonobo-activation.so /maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib/libORBitCosNaming-2.so /maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib/libORBit-2.so /maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib/libgobject-2.0.so -lm /maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib/libgmodule-2.0.so /maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib/libgthread-2.0.so -lpthread -lrt /maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib/libglib-2.0.so /maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/lib/libpcre.so /maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/lib/libiconv.so /usr/lib/libSM.so -lICE /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -ldl -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/popt-1.6.4/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/popt-1.6.4/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/lib -Wl,--rpath -Wl,/maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/lib
gnome/libgnomewidgets.a(gnomecontrol.o): In function `gb_bonobo_control_init':
/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1/glade/gnome/gnomecontrol.c:339: undefined reference to `_'
gnome/libgnomewidgets.a(gnomecontrol.o): In function `show_control_dialog':
/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1/glade/gnome/gnomecontrol.c:249: undefined reference to `_'
/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1/glade/gnome/gnomecontrol.c:262: undefined reference to `_'
/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1/glade/gnome/gnomecontrol.c:294: undefined reference to `_'
gnome/libgnomewidgets.a(gnomecontrol.o): In function `on_control_dialog_ok':
/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1/glade/gnome/gnomecontrol.c:160: undefined reference to `_'
collect2: ld returned 1 exit status
make[3]: *** [glade-2] Error 1
make[3]: Leaving directory `/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1/glade'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1/glade'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1'
make: *** [all] Error 2
.

Please note that using the same setup I can successfully build glade3.

Steps to reproduce:
1. I can upload the script if necessary
2. 
3. 


Actual results:
Build fails - linker errors

Expected results:
Successful build.

Does this happen every time?
Yes.

Other information:
Command line used to run 'configure' - one can see versions of other
libraries used to build 'glade' from it:

cd /maxtor5/sergei/AppsFromScratchWD/build/glade-2.12.1; PATH=/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/bin:/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/bin:/maxtor5/sergei/AppsFromScratchWD/install/autoconf-2.61/bin:/maxtor5/sergei/AppsFromScratchWD/install/bc-1.06/bin:/maxtor5/sergei/AppsFromScratchWD/install/bison-2.3/bin:/maxtor5/sergei/AppsFromScratchWD/install/bzip2-1.0.4/bin:/maxtor5/sergei/AppsFromScratchWD/install/cups-1.3.5-source/bin:/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/bin:/maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/bin:/maxtor5/sergei/AppsFromScratchWD/install/flex-2.5.33/bin:/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/bin:/maxtor5/sergei/AppsFromScratchWD/install/gettext-0.17/bin:/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/bin:/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/bin:/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/bin:/maxtor5/sergei/AppsFromScratchWD/install/libIDL-0.8.7/bin:/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/bin:/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/bin:/maxtor5/sergei/AppsFromScratchWD/install/libgcrypt-1.2.3/bin:/maxtor5/sergei/AppsFromScratchWD/install/libglade-2.6.2/bin:/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/libgpg-error-1.4/bin:/maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/bin:/maxtor5/sergei/AppsFromScratchWD/install/libiconv_pre-1.11/bin:/maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/bin:/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/bin:/maxtor5/sergei/AppsFromScratchWD/install/tiff-3.8.2/bin:/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/bin:/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/bin:/maxtor5/sergei/AppsFromScratchWD/install/libxslt-1.1.17/bin:/maxtor5/sergei/AppsFromScratchWD/install/m4-1.4.10/bin:/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/bin:/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/bin:/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/bin:/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/bin:/maxtor5/sergei/AppsFromScratchWD/install/scrollkeeper-0.3.14/bin:/maxtor5/sergei/AppsFromScratchWD/install/texinfo-4.9/bin:/maxtor5/sergei/AppsFromScratchWD/install/pkg-config-0.21/bin:/opt/kde3/bin:/home/sergei/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/sergei/bin; export PATH; LD_LIBRARY_PATH=/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/MesaLib-7.0.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib:/maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/lib:/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/lib:/maxtor5/sergei/AppsFromScratchWD/install/bison-2.3/lib:/maxtor5/sergei/AppsFromScratchWD/install/bzip2-1.0.4/lib:/maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/lib:/maxtor5/sergei/AppsFromScratchWD/install/cups-1.3.5-source/lib:/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/lib:/maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/lib:/maxtor5/sergei/AppsFromScratchWD/install/flex-2.5.33/lib:/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/lib:/maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/gettext-0.17/lib:/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib:/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib:/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib:/maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/lib:/maxtor5/sergei/AppsFromScratchWD/install/libIDL-0.8.7/lib:/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/lib:/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/lib:/maxtor5/sergei/AppsFromScratchWD/install/libgcrypt-1.2.3/lib:/maxtor5/sergei/AppsFromScratchWD/install/libglade-2.6.2/lib:/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/libgpg-error-1.4/lib:/maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/lib:/maxtor5/sergei/AppsFromScratchWD/install/libiconv_pre-1.11/lib:/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/lib:/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/lib:/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib:/maxtor5/sergei/AppsFromScratchWD/install/libxslt-1.1.17/lib:/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/lib:/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/lib:/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/lib/engines:/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib:/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/lib:/maxtor5/sergei/AppsFromScratchWD/install/popt-1.6.4/lib:/maxtor5/sergei/AppsFromScratchWD/install/scrollkeeper-0.3.14/lib:/maxtor5/sergei/AppsFromScratchWD/install/tiff-3.8.2/lib:/maxtor5/sergei/AppsFromScratchWD/install/zlib-1.2.3/lib; export LD_LIBRARY_PATH; PKG_CONFIG_PATH=/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libxslt-1.1.17/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libglade-2.6.2/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libIDL-0.8.7/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig; export PKG_CONFIG_PATH; LDFLAGS='-L/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/MesaLib-7.0.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/lib -L/maxtor5/sergei/AppsFromScratchWD/install/bison-2.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/bzip2-1.0.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/lib -L/maxtor5/sergei/AppsFromScratchWD/install/cups-1.3.5-source/lib -L/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/lib -L/maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/flex-2.5.33/lib -L/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gettext-0.17/lib -L/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libIDL-0.8.7/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgcrypt-1.2.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libglade-2.6.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libgpg-error-1.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libiconv_pre-1.11/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libxslt-1.1.17/lib -L/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/lib -L/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/lib -L/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/lib/engines -L/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/popt-1.6.4/lib -L/maxtor5/sergei/AppsFromScratchWD/install/scrollkeeper-0.3.14/lib -L/maxtor5/sergei/AppsFromScratchWD/install/tiff-3.8.2/lib -L/maxtor5/sergei/AppsFromScratchWD/install/zlib-1.2.3/lib'; export LDFLAGS; CPPFLAGS='-I/maxtor5/sergei/AppsFromScratchWD/install/GConf-2.20.1/include/gconf/2 -I/maxtor5/sergei/AppsFromScratchWD/install/MesaLib-7.0.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/include/orbit-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/include/orbit-2.0/ORBitservices -I/maxtor5/sergei/AppsFromScratchWD/install/ORBit2-2.14.2/include/orbit-2.0/orbit-idl -I/maxtor5/sergei/AppsFromScratchWD/install/atk-1.20.0/include/atk-1.0 -I/maxtor5/sergei/AppsFromScratchWD/install/audiofile-0.2.6/include -I/maxtor5/sergei/AppsFromScratchWD/install/autoconf-2.61/include -I/maxtor5/sergei/AppsFromScratchWD/install/bc-1.06/include -I/maxtor5/sergei/AppsFromScratchWD/install/bison-2.3/include -I/maxtor5/sergei/AppsFromScratchWD/install/bzip2-1.0.4/include -I/maxtor5/sergei/AppsFromScratchWD/install/cairo-1.4.10/include/cairo -I/maxtor5/sergei/AppsFromScratchWD/install/cups-1.3.5-source/include -I/maxtor5/sergei/AppsFromScratchWD/install/esound-0.2.36/include -I/maxtor5/sergei/AppsFromScratchWD/install/expat-2.0.0/include -I/maxtor5/sergei/AppsFromScratchWD/install/flex-2.5.33/include -I/maxtor5/sergei/AppsFromScratchWD/install/fontconfig-2.4.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/include -I/maxtor5/sergei/AppsFromScratchWD/install/freetype-2.3.5/include/freetype2 -I/maxtor5/sergei/AppsFromScratchWD/install/gail-1.20.1/include/gail-1.0 -I/maxtor5/sergei/AppsFromScratchWD/install/gettext-0.17/include -I/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/include/glib-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/glib-2.14.4/lib/glib-2.0/include -I/maxtor5/sergei/AppsFromScratchWD/install/gnome-keyring-2.20.1/include/gnome-keyring-1 -I/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/include/gnome-vfs-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/include/gnome-vfs-module-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/gnome-vfs-2.14.2/lib/gnome-vfs-2.0/include -I/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/include -I/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/include/gtk-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/include/gtk-unix-print-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.12.3/lib/gtk-2.0/include -I/maxtor5/sergei/AppsFromScratchWD/install/jpegsrc.v6b/include -I/maxtor5/sergei/AppsFromScratchWD/install/libIDL-0.8.7/include/libIDL-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libart_lgpl-2.3.19/include/libart-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/include/bonobo-activation-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libbonobo-2.20.1/include/libbonobo-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libbonoboui-2.20.0/include/libbonoboui-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libgcrypt-1.2.3/include -I/maxtor5/sergei/AppsFromScratchWD/install/libglade-2.6.2/include/libglade-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libgnome-2.20.1/include/libgnome-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libgnomecanvas-2.20.1.1/include/libgnomecanvas-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libgnomeui-2.20.1.1/include/libgnomeui-2.0 -I/maxtor5/sergei/AppsFromScratchWD/install/libgpg-error-1.4/include -I/maxtor5/sergei/AppsFromScratchWD/install/libiconv-1.11/include -I/maxtor5/sergei/AppsFromScratchWD/install/libiconv_pre-1.11/include -I/maxtor5/sergei/AppsFromScratchWD/install/libpng-1.2.12/include/libpng12 -I/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/include -I/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/include/libxml2 -I/maxtor5/sergei/AppsFromScratchWD/install/libxslt-1.1.17/include -I/maxtor5/sergei/AppsFromScratchWD/install/m4-1.4.10/include -I/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/include -I/maxtor5/sergei/AppsFromScratchWD/install/openssl-0.9.8f/include -I/maxtor5/sergei/AppsFromScratchWD/install/pango-1.18.3/include/pango-1.0 -I/maxtor5/sergei/AppsFromScratchWD/install/pcre-7.4/include -I/maxtor5/sergei/AppsFromScratchWD/install/popt-1.6.4/include -I/maxtor5/sergei/AppsFromScratchWD/install/scrollkeeper-0.3.14/include -I/maxtor5/sergei/AppsFromScratchWD/install/texinfo-4.9/include -I/maxtor5/sergei/AppsFromScratchWD/install/tiff-3.8.2/include -I/maxtor5/sergei/AppsFromScratchWD/install/zlib-1.2.3/include'; export CPPFLAGS; ./configure  --prefix=/maxtor5/sergei/AppsFromScratchWD/install/glade-2.12.1 --enable-gnome 1>configure.log 2>&1
Comment 1 Damon Chaplin 2007-12-19 11:21:24 UTC
The undefined '_' is the gettext macro, which should have been defined in a header file somewhere. In this case it should have come from libbonobo/bonobo/bonobo-i18n.h (which now uses gi18n.h).

Are you compiling with -DBONOBO_DISABLE_DEPRECATED ?
That's the only thing I can think of.

Comment 2 Sergei Steshenko 2007-12-19 11:46:03 UTC
(In reply to comment #1)
> The undefined '_' is the gettext macro, which should have been defined in a
> header file somewhere. In this case it should have come from
> libbonobo/bonobo/bonobo-i18n.h (which now uses gi18n.h).
> 
> Are you compiling with -DBONOBO_DISABLE_DEPRECATED ?
> That's the only thing I can think of.
> 

I have no idea what BONOBO_DISABLE_DEPRECATED means; I do not set this flag
anywhere explicitly.

Can it be that the flag is set by 'configure' ?

...

I do not know whethere what I've just found is relative or not but here
it is:

1)
install/glib-2.14.4/include/glib-2.0/glib/gi18n.h

file contains

#include <libintl.h>

statement;

2)
http://www.delorie.com/gnu/docs/gettext/gettext_188.html

says:

"
`gettext.h' is a convenience header file for conditional use of `<libintl.h>', depending on the ENABLE_NLS macro. If ENABLE_NLS is set, it includes `<libintl.h>'; otherwise it defines no-op substitutes for the libintl.h functions. We recommend the use of "gettext.h" over direct use of `<libintl.h>', so that portability to older systems is guaranteed and installers can turn off internationalization if they want to. In the C code, you will then write 
 
  #include "gettext.h"

   instead of 
 
  #include <libintl.h>
".


Comment 3 Damon Chaplin 2007-12-19 13:51:17 UTC
BONOBO_DISABLE_DEPRECATED is a flag you can use when compiling to turn off
any deprecated features, which includes the bonobo-i18n.h header file.
I'm not sure that is your problem, as it would probably have been encountered
earlier.

I doubt the '#include <libintl.h>' line is the problem as we've been using that
for years, and every other package would have the same problem.

You just need to trace the included header files and find out why '_' hasn't
been defined.
Comment 4 Sergei Steshenko 2007-12-19 18:04:02 UTC
(In reply to comment #3)
> BONOBO_DISABLE_DEPRECATED is a flag you can use when compiling to turn off
> any deprecated features, which includes the bonobo-i18n.h header file.
> I'm not sure that is your problem, as it would probably have been encountered
> earlier.
> 
> I doubt the '#include <libintl.h>' line is the problem as we've been using that
> for years, and every other package would have the same problem.
> 
> You just need to trace the included header files and find out why '_' hasn't
> been defined.
> 

OK, in which exactly file should '_' be defined ?
Comment 5 Damon Chaplin 2007-12-19 18:34:20 UTC
Either in bonobo/bonobo-i18n.h or glib/gi18n.h (depending on bonobo version)

The include chain goes like this:

gnomecontrol.c
  ../gb.h
  gladeconfig.h
  libgnome/gnome-i18n.h
  bonobo/bonobo-i18n.h
  glib/gi18n.h
Comment 6 Sergei Steshenko 2008-01-10 06:23:28 UTC
Quick 'grep' shows this:

"
sergei@amdam2:/maxtor5/sergei/AppsFromScratchWD> grep -r -P '^#define\s+_' build/glade-2.12.1
build/glade-2.12.1/glade/gladeconfig.h:#define _(String) dgettext (GETTEXT_PACKAGE, String)
build/glade-2.12.1/glade/gladeconfig.h:#define _(String) (String)
build/glade-2.12.1/config.guess:#define __ARCHITECTURE__ "m68k"
sergei@amdam2:/maxtor5/sergei/AppsFromScratchWD> 
",

i.e. our best chance is definitions in 'glade-2.12.1/glade/gladeconfig.h'
file:

     33 /* Internationalization. */
     34 #ifdef USE_GNOME
     35 #include <libgnome/gnome-i18n.h>
     36 #else
     37
     38 #ifdef ENABLE_NLS
     39 #include <libintl.h>
     40 #undef _
     41 #define _(String) dgettext (GETTEXT_PACKAGE, String)
     42 #ifdef gettext_noop
     43 #define N_(String) gettext_noop (String)
     44 #else
     45 #define N_(String) (String)
     46 #endif /* gettext_noop */
     47 #else
     48 /* Stubs that do something close enough.  */
     49 #define textdomain(String) (String)
     50 #define gettext(String) (String)
     51 #define dgettext(Domain,Message) (Message)
     52 #define dcgettext(Domain,Message,Type) (Message)
     53 #define bindtextdomain(Domain,Directory) (Domain)
     54 #define _(String) (String)
     55 #define N_(String) (String)
     56 #endif /* ENABLE_NLS */
     57
     58 #endif /* USE_GNOME */

- is this the way it is supposed to be ?

My 'glade-2.12.1/config.h' shows:

     82 /* Define to 1 to include support for GNOME. */
     83 #define USE_GNOME 1
.

And, finally, 'libgnome/gnome-i18n.h' does not define the dreaded '_':

"
sergei@amdam2:/maxtor5/sergei/AppsFromScratchWD> grep -r -P '^#define\s+_' install/libgnome-2.20.1/include
install/libgnome-2.20.1/include/libgnome-2.0/libgnome/libgnometypebuiltins.h:#define __LIBGNOMETYPEBUILTINS_H__ 1
install/libgnome-2.20.1/include/libgnome-2.0/libgnome/gnome-sound.h:#define __GNOME_SOUND_H__ 1
install/libgnome-2.20.1/include/libgnome-2.0/libgnome/gnome-triggers.h:#define __GNOME_TRIGGERS_H__
install/libgnome-2.20.1/include/libgnome-2.0/libgnome/gnome-i18n.h:#define __GNOME_I18N_H__
install/libgnome-2.20.1/include/libgnome-2.0/libgnome/gnome-util.h:#define __GNOME_UTIL_H__
install/libgnome-2.20.1/include/libgnome-2.0/libgnome/gnome-score.h:#define __GNOME_SCORE_H__ 1
sergei@amdam2:/maxtor5/sergei/AppsFromScratchWD>    
".

So, again, where should '_' get its definition from taking into account that
USE_GNOME is set ?
Comment 7 Damon Chaplin 2008-01-10 17:03:56 UTC
As I said before - either bonobo/bonobo-i18n.h or glib/gi18n.h (depending on bonobo version)

libgnome/gnome-i18n.h should include bonobo/bonobo-i18n.h

bonobo-i18n.h should define '_' or include glib/gi18n.h which defines it.
Comment 8 Sergei Steshenko 2008-01-10 23:05:12 UTC
Well, it's like this.

The path to 'bonobo-i18n.h' file is:

libbonobo-2.20.1/include/libbonobo-2.0/bonobo/bonobo-i18n.h

and in 'bonobo-i18n.h' file one can see:

     36 #ifdef BONOBO_EXPLICIT_TRANSLATION_DOMAIN
     37 #include <glib/gi18n-lib.h>
     38 #else
     39 #include <glib/gi18n.h>
     40 #endif

, i.e. 'glib/gi18n.h' file is included, but depending on 
BONOBO_EXPLICIT_TRANSLATION_DOMAIN being defined.

On my system 'gi18n.h' file is in fact

glib-2.14.5/include/glib-2.0/glib/gi18n.h

and '_' is indeed defined in 'gi18n.h' file:

     25 #define _(String) gettext (String)
.

However, in 'Makefile' of 'libbonobo-2.20.1' one can see:

    290 INCLUDES = \
    291         -I$(top_srcdir)                                 \
    292         -I$(top_builddir)                               \
    293         $(WARN_CFLAGS)                                  \
    294         $(LIBBONOBO_CFLAGS)                             \
    295         -DPREFIX=\""$(prefix)"\"                        \
    296         -DBONOBO_LIBDIR=\""$(libdir)"\"                 \
    297         -DBONOBO_DATADIR=\""$(datadir)"\"               \
    298         -DBONOBO_PIXMAPDIR=\""$(datadir)/pixmaps"\"     \
    299         -DBONOBO_BINDIR=\""$(bindir)"\"                 \
    300         -DBONOBO_LOCALSTATEDIR=\""$(localstatedir)"\"   \
    301         -DBONOBO_LOCALEDIR=\""$(datadir)/locale"\"      \
    302         -DBONOBO_EXPLICIT_TRANSLATION_DOMAIN="GETTEXT_PACKAGE"  \
    303         -DG_DISABLE_DEPRECATED                          \
    304         -DG_LOG_DOMAIN=\"Bonobo\"                       \
    305         -DVERSION=\"$(VERSION)\"

, i.e. BONOBO_EXPLICIT_TRANSLATION_DOMAIN _is_ defined, and that is why
'gi18n.h' does not get included, and instead of it 'gi18n-lib.h' does.

The meaningful part (for the bug report) is this:

     19 #ifndef __G_I18N_LIB_H__
     20 #define __G_I18N_LIB_H__
     21
     22 #include <glib/gstrfuncs.h>
     23
     24 #include <libintl.h>
     25
     26 #ifndef GETTEXT_PACKAGE
     27 #error You must define GETTEXT_PACKAGE before including gi18n-lib.h.
     28 #endif
     29
     30 #define _(String) dgettext (GETTEXT_PACKAGE, String)
     31 #define Q_(String) g_strip_context ((String), dgettext (GETTEXT_PACKAGE, String))
     32 #ifdef gettext_noop
     33 #define N_(String) gettext_noop (String)
     34 #else
     35 #define N_(String) (String)
     36 #endif
     37
     38 #endif  /* __G_I18N_LIB_H__ */
.

So, according to

     30 #define _(String) dgettext (GETTEXT_PACKAGE, String)

line above '_' should be defined (unless __G_I18N_LIB_H__ is erroneously set),
but it isn't.

Can it be that something undefines '_' ?
Comment 9 Damon Chaplin 2008-01-11 12:01:39 UTC
I think you're slightly wrong - BONOBO_EXPLICIT_TRANSLATION_DOMAIN may be defined
when compiling bonobo itself, but I don't think it is defined when compiling
Glade.

Also see bug 363033 - it looks like this bug is caused by changes to bonobo.
Comment 10 Christian Persch 2008-01-11 13:22:01 UTC
I think this is fixed in glade2 2.12.2 and it's fallout from bug 419535 rather than bug 363033.
Comment 11 Sergei Steshenko 2008-01-11 14:33:03 UTC
glade-2.12.2 builds just fine, you can close the bug.

Thanks,
  Sergei.