Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 215223

Summary: dev-util/glade-2.6.8 fails to link with USE="gnome" due to undefined reference to `_'
Product: Gentoo Linux Reporter: Philippe Chaintreuil <gentoo_bugs_peep>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes linking with `_' errors

Description Philippe Chaintreuil 2008-03-28 17:32:59 UTC
dev-util/glade-2.6.8 fails linking with the following errors:

--------------------------------------------------------------------------------
i686-pc-linux-gnu-gcc -O0 -march=pentium3 -pipe -ggdb -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 palette.o property.o save.o source.o source_os2.o styles.o tree.o utils.o  gbwidgets/libgbwidgets.a gnome/libgnomewidgets.a -pthread /usr/lib/libgnomeui-2.so -L/usr/lib /usr/lib/libgnome-keyring.so /usr/lib/libjpeg.so /usr/lib/libbonoboui-2.so /usr/lib/libgnomecanvas-2.so /usr/lib/libgailutil.so /usr/lib/libgnome-2.so /usr/lib/libgnomevfs-2.so /usr/lib/libdbus-glib-1.so /usr/lib/libdbus-1.so /usr/lib/libgnutls.so /usr/lib/libtasn1.so /usr/lib/libgcrypt.so -lnsl /usr/lib/libgpg-error.so -lresolv -lutil /usr/lib/libgconf-2.so /usr/lib/libpopt.so /usr/lib/libart_lgpl_2.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libxml2.so /usr/lib/libdirectfb.so /usr/lib/libfusion.so /usr/lib/libdirect.so /usr/lib/libglitz-glx.so /usr/lib/libglitz.so /usr/lib/libGL.so /usr/lib/libXext.so /usr/lib/libpng12.so -lz /usr/lib/libXrender.so -lm /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBitCosNaming-2.so /usr/lib/libORBit-2.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lpthread -lrt /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -ldl
gnome/libgnomewidgets.a(gnomecontrol.o): In function `on_control_dialog_ok':  
/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8/glade/gnome/gnomecontrol.c:160: undefined reference to `_'
gnome/libgnomewidgets.a(gnomecontrol.o): In function `show_control_dialog':   
/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8/glade/gnome/gnomecontrol.c:249: undefined reference to `_'
/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8/glade/gnome/gnomecontrol.c:262: undefined reference to `_'
/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8/glade/gnome/gnomecontrol.c:294: undefined reference to `_'
gnome/libgnomewidgets.a(gnomecontrol.o): In function `gb_bonobo_control_init':
/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8/glade/gnome/gnomecontrol.c:339: undefined reference to `_'
collect2: ld returned 1 exit status
make[3]: *** [glade-2] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8/glade'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8/glade'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/glade-2.6.8/work/glade-2.6.8'
make: *** [all] Error 2 
 *
 * ERROR: dev-util/glade-2.6.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2577:  Called gnome2_src_compile
 *             environment, line 1962:  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/dev-util/glade-2.6.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/glade-2.6.8/temp/environment'. 
 * This ebuild is from an overlay: '/usr/local/portage/test/'
 *
--------------------------------------------------------------------------------

I tried compiling the glade by hand with --enable-gnome and I get the same thing.  Since this distribution hasn't changed since Dec. 21st, 2004 I suspect that it has something to do with using a newer Gnome (2.20.3).


Reproducible: Always
Comment 1 Philippe Chaintreuil 2008-03-28 17:34:48 UTC
Note that bug #192812 needs to be fixed for you to get to the linking stage of this ebuild.

Without bug #215216 being fixed, this will happen whether or not you have the gnome use flag enabled.
Comment 2 Philippe Chaintreuil 2008-03-28 17:35:48 UTC
My emerge --info:

--------------------------------------------------------------------------------
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: 2.6.23-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.86GHz
Timestamp of tree: Fri, 28 Mar 2008 13:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O0 -march=pentium3 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O0 -march=pentium3 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer nostrip sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo"
LANG="en_US"
LC_ALL="en_US"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/test"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amr apm artworkextra asf async automount bash-completion berkdb boundschecking branding bzip2 cairo cddb cdr cli cracklib crypt css cups dbus dell disk-partition doc dri dvd dvdr dvdread emboss encode fam fame ffmpeg firefox galago gd gif gimp gimpprint glitz gnome gnutls gpm gstreamer gtk hal i8x0 iconv id3 id3tag imagemagick imap imlib isdnlog jack-tmpfs javascript jce jpeg libnotify libsamplerate logrotate lzo mad midi mikmod mime mjpeg mmx mono mozbranding moznoirc mozsvg mp3 mpeg mudflap ncurses network network-cron nfs nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcmcia pcre pdf perl pidgin png ppds pppd python qt3support quicktime readline real reflection samba sasl sdl session slp smp soundex spell spl sse sse2 ssl svg swat syslog tcpd theora thunderbird tiff truetype unicode vim-with-x vorbis win32codecs winbind x264 x86 xcomposite xine xml xorg xpm xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
--------------------------------------------------------------------------------
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-28 17:39:01 UTC
Use dev-util/glade-2.12.2. This outdated version should be just removed instead of 'fixing' it, unneeded by anything in the tree.


*** This bug has been marked as a duplicate of bug 201962 ***

*** This bug has been marked as a duplicate of bug 201962 ***
Comment 4 Philippe Chaintreuil 2008-03-28 20:21:48 UTC
Created attachment 147572 [details, diff]
Fixes linking with `_' errors

Here's a patch that fixes the linking errors.

It's the same change as Glade's SVN rev. 1172 makes -- it just removes:

http://svn.gnome.org/viewvc/glade/trunk/glade/gnome/gnomecontrol.c?r1=884&r2=1172

From the Glade 2.12.2 ChangeLog:

2007-12-09  Christian Persch  <chpe@gnome.org>

	* glade/gnome/gnomecontrol.c: Don't define
	BONOBO_[UI_]DISABLE_DEPRECATED, or we'll get an undefined symbol "_".
	Fallout from bug #419535.
Comment 5 Philippe Chaintreuil 2008-03-28 20:28:42 UTC
Asking to reopen since I have a patch that makes it work.

I'd rather keep 2.6.8 in the tree (even if masked) since it's the only version that works with GTK 2.4/RHEL 4 systems properly.

- Glade 3 files are not loaded correctly as Glade 3 doesn't export settings which are the default settings, but has decided some default settings are different from the Glade 2 defaults.
- Glade 2.12.x files export extra properties that make GTK 2.4 systems spew out tons of warnings about the unexpected properties.


To reiterate: I'd like to see 2.6.8 stay in the tree with this and the other patches I've submitted today.  However, if you'd like to mask 2.6.8 to keep people from using it without having to really mean it, feel free.
    2.12.1 can be dropped as soon as 2.12.2 is stabilized for all I care.
Comment 6 Philippe Chaintreuil 2008-03-28 20:29:58 UTC
Feel free to fix the name of the patch.  That '=' is just my fat fingers.  ;)
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-03-28 20:31:07 UTC
As already said, this is FIXED in dev-util/glade-2.12.2. which needs to go stable and this obsolete thing needs to go to /dev/null.


*** This bug has been marked as a duplicate of bug 201962 ***