Every time I launch emacs from a terminal, I get the following warning: # emacs -nw .bashrc emacs: Symbol `_XmStrings' has different size in shared object, consider re-linking If I run in X, I get an additional warning: # emacs .bashrc emacs: Symbol `_XmStrings' has different size in shared object, consider re-linking Warning: Cannot convert string "#000000" to type Boolean I have had this issue on two machines for a while. I have tried remerging emacs but this hasn't solved the issue. Here are the relevant use flags: # etcat -u emacs [ Colour Code : set unset ] [ Legend : (U) Col 1 - Current USE flags ] [ : (I) Col 2 - Installed With USE flags ] U I [ Found these USE variables in : app-editors/emacs-21.3-r3 ] + + X : Adds support for X11 + + nls : unknown + + motif : Adds motif support (x11-libs/openmotif x11-libs/lesstif) - - leim : Adds input methods support to Emacs + + gnome : Adds GNOME support - - Xaw3d : Adds support of the 3d athena widget set + + lesstif : Use lesstif over openmotif in cases where a program supports both - - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too Reproducible: Always Steps to Reproduce: 1. launch emacs 2. one or two lines of warning are printed 3. emacs works fine Actual Results: See details Expected Results: no warnings # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 i686) ================================================================= System uname: 2.6.9-gentoo-r4 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz Gentoo Base System version 1.6.6 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa artworkextra avi berkdb bitmap-fonts cdparanoia cdr crypt cups dedicated divx4linux dvd dvdread encode f77 fam flac foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile hal imagemagick imap imlib ithreads java joystick jpeg junit kde ldap lesstif libg++ libwww mad matroska mikmod mime motif mozilla mpeg nas ncurses network nls offensive oggvorbis opengl pam pdflib perl png pwdb python qt quicktime readline rtc samba sdl slang spell sse ssl svg svga tcltk tcpd theora tiff truetype wmf x86 xine xml xml2 xmms xv xvid zlib"
It turns out that the second warning (pasted below) only appears in gnome. I'm running gnome 2.8 (latest ~x86 version). I don't have the warning in xfce. Warning: Cannot convert string "#000000" to type Boolean The other warning appears everywhere, console, xterms...
not a bugzilla bug
What happens if you recompile lesstif? Also, if recompiling lesstiff doesn't solve anything, does setting USE="motif -lesstif", or USE="-motif -lesstif" make any difference?
Thanks, recompiling lesstif solved it! I still can't use the buffer menu (Ctrl+left click) to switch between buffers but I got rid of the warning.
Rebuilding lesstif didn't work for me, nor did rebuilding emacs after rebuilding lesstif. Building emacs without motif or lesstif support worked fine, though.
Are you using unstable (~x86)? ~x86 uses different motif setup, and you might need to run motif-config to switch actual motif library to link. I haven't sorted out what is needed for emacs ebuild to cope with this new method of motif setup.
The error <<has different size in shared object, consider re-linking>> can be fixed by remergint the package owning the file. See bug 338347 . The issue is not in the app, but in portage 2.2, or in revdep-rebuild.