Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283482 - xulrunner-1.9.1.2-r2 does not compile due to libSM undefined reference error
Summary: xulrunner-1.9.1.2-r2 does not compile due to libSM undefined reference error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-02 07:23 UTC by Mathieu Z
Modified: 2009-09-05 20:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Z 2009-09-02 07:23:50 UTC
xulrunner-1.9.1.2-r2 do not compile due to libSM undefined reference error. Rebuilding x11-lib/libSM do not help:

Reproducible: Always

Steps to Reproduce:
1. emerge xulrunner
2.
3.

Actual Results:  
i686-pc-linux-gnu-g++ -o xpcshell  -fno-rtti -fno-handle-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -march=athlon-xp -pipe -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions   xpcshell.o    -lpthread -Wl,-O1  -Wl,-rpath-link,/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/dist/bin -Wl,-rpath-link,/usr/lib  -L../../../../dist/bin -L../../../../dist/lib ../../../../dist/lib/libxpcomglue_s.a -L/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/dist/bin -lxpcom -lxul  -L/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/dist/bin -lmozjs -Wl,-R/usr/lib/nspr -L/usr/lib/nspr -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -lasound -ldl -lm
/usr/lib/libSM.so.6: undefined reference to `uuid_unparse_lower@UUID_1.0'
/usr/lib/libSM.so.6: undefined reference to `uuid_generate@UUID_1.0'
collect2: ld returned 1 exit status
gmake[4]: *** [xpcshell] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/js/src/xpconnect/shell'
gmake[3]: *** [tools] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/js/src/xpconnect'
gmake[2]: *** [tools_tier_gecko] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1'
gmake[1]: *** [tier_toolkit] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1'
make: *** [default] Error 2
 *
 * ERROR: net-libs/xulrunner-1.9.1.2-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5568:  Called _eapi2_src_compile
 *               ebuild.sh, line  634:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-libs:xulrunner-1.9.1.2-r2:20090902-062325.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.16"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

Expected Results:  
compiles
Comment 1 Mathieu Z 2009-09-02 07:24:30 UTC
$ emerge --info                                      
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r5 i686)                                                                                        
=================================================================                         
System uname: Linux-2.6.30-gentoo-r5-i686-AMD_Athlon-tm-_XP_3000+-with-gentoo-2.0.1       
Timestamp of tree: Tue, 01 Sep 2009 20:15:01 +0000                                        
app-shells/bash:     4.0_p28                                                              
dev-java/java-config: 2.1.9                                                               
dev-lang/python:     2.6.2-r1, 3.1.1                                                      
dev-util/cmake:      2.6.4-r2                                                             
sys-apps/baselayout: 2.0.1                                                                
sys-apps/openrc:     0.4.3-r3                                                             
sys-apps/sandbox:    2.1                                                                  
sys-devel/autoconf:  2.13, 2.63-r1                                                        
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11                             
sys-devel/binutils:  2.19.1-r1                                                            
sys-devel/gcc-config: 1.4.1                                                               
sys-devel/libtool:   2.2.6a                                                               
virtual/os-headers:  2.6.30-r1                                                            
ACCEPT_KEYWORDS="x86 ~x86"                                                                
CBUILD="i686-pc-linux-gnu"                                                                
CFLAGS="-march=athlon-xp -O2 -pipe"                                                       
CHOST="i686-pc-linux-gnu"                                                                 
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"                                   
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                    
CXXFLAGS="-march=athlon-xp -O2 -pipe"                                                     
DISTDIR="/usr/portage/distfiles"                                                          
EMERGE_DEFAULT_OPTS="--keep-going"                                                        
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ja zh zh_CN zh_TW"
MAKEOPTS="-j1"
PKGDIR="/usr/portage//packages"
PORTAGE_CONFIGROOT="/"
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/layman/gentoo-taiwan /usr/local/portage/layman/gentoo-china /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/arcon /usr/local/portage/layman/emacs /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi aim alsa apache2 audiofile avahi bash-completion bcmath berkdb bidi blas bluetooth bzip2 cairo calendar caps cdaudio cddax cddb cdparanoia cdr cjk clamav cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx dbus dga directfb djvu dri dts dv dvb dvd dvdr dvdread eds emacs encode evo exif expat fam fastcgi fbcon ffmpeg fftw firefox flac flash fontconfig foomaticdb fortran ftp fuse gd gdbm gimp ginac git glib glut gnome gnome-keyring gnuplot gnutls gphoto2 gpm gps gsl gtk gtkhtml hal htmlhandbook httpd iconv icq idn ieee1394 imagemagick imap imlib immqt-bc innodb ipod ipv6 isdnlog jabber java java6 javascript jingle joystick jpeg jpeg2k kde4 kpathsea lame lapack latex lcms libcaca libnotify libsamplerate libwww lm_sensors lyx lzo m17n-lib mad mime mmx mmxext modplug motif mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz mysql mysqli ncurses neXt netboot nforce2 nis nls nntp nptl nptlonly nsplugin odbc ogg openal openexr opengl openmp osc oscar pae pam pch pcre pda pdf perl php plasma plotutils png posix postgres ppds pppd pulseaudio python qq qt3support qt4 quicktime readline recode reflection rss ruby samba scanner sdl semantic-desktop session simplexml slang sndfile sockets socks5 speex spell spl sqlite sse ssl subversion svg svga sysfs taglib tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype unicode upnp usb v4l2 vcd vhosts vim-syntax vorbis wavepack wddx webkit win32codecs wma wmf wmp wxwindows x264 x86 x86emu xcb xcomposite xforms xft xine xinerama xml xmlrpc xorg xosd xsl xulrunner xv xvid yahoo yaz zip 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja zh zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Rafał Mużyło 2009-09-02 08:03:23 UTC
Does 'ldd -r /usr/lib/libSM.so' print anything
interesting ?
Comment 3 Mathieu Z 2009-09-02 20:12:05 UTC
(In reply to comment #2)
> Does 'ldd -r /usr/lib/libSM.so' print anything
> interesting ?
> 

$ ldd -r /usr/lib/libSM.so
	linux-gate.so.1 =>  (0xffffe000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0xb7f96000)
	libuuid.so.1 => /lib/libuuid.so.1 (0xb7f91000)
	libc.so.6 => /lib/libc.so.6 (0xb7e1e000)
	/lib/ld-linux.so.2 (0xb7fde000)

The usual?
Comment 4 Rafał Mużyło 2009-09-03 08:25:52 UTC
Attach output of 'nm -C -D /lib/libuuid.so.1'.
Did you by chance first upgrade to libuuid from
>=util-linux 2.16 and then downgrade to the one from
e2fsprogs-libs ?
Comment 5 Mathieu Z 2009-09-03 19:51:26 UTC
(In reply to comment #4)
> Attach output of 'nm -C -D /lib/libuuid.so.1'.
> Did you by chance first upgrade to libuuid from
> >=util-linux 2.16 and then downgrade to the one from
> e2fsprogs-libs ?
> 

$ nm -C -D /lib/libuuid.so.1
00000000 A UUID_1.0
         w _Jv_RegisterClasses
         U ___tls_get_addr
         U __ctype_b_loc
         w __cxa_finalize
         U __errno_location
         U __fprintf_chk
         w __gmon_start__
         U __sprintf_chk
         U __xstat64
         U access
         U close
         U connect
         U execl
         U exit
         U fclose
         U fcntl
         U fdopen
         U fflush
         U fork
         U fscanf
         U ftruncate64
         U getpid
         U gettimeofday
         U getuid
         U ioctl
         U memset
         U open64
         U random
         U read
         U rewind
         U socket
         U srandom
         U strlen
         U strncpy
         U strtoul
         U sysconf
         U time
         U umask
000013f0 T uuid__generate_random
00001a60 T uuid__generate_time
00001120 T uuid_clear
00001150 T uuid_compare
00001200 T uuid_copy
00002160 T uuid_generate
000014a0 T uuid_generate_random
00002030 T uuid_generate_time
000021b0 T uuid_is_null
00002240 T uuid_parse
00002630 T uuid_time
000025f0 T uuid_type
00002510 T uuid_unparse
00002570 T uuid_unparse_lower
00002540 T uuid_unparse_upper
000025a0 T uuid_variant
         U waitpid
         U write

No, because due to bug #281654, I have been repeatedly re-merging util-linux in the last few days. Besides, I don't see any libuuid.so.1 from e2fsprogs-lib

$ qlist e2fsprogs-libs
/lib/libss.so.2
/lib/libss.so.2.0
/lib/libcom_err.so.2
/lib/libcom_err.so.2.1
/usr/bin/compile_et
/usr/bin/mk_cmds
/usr/lib/libcom_err.so
/usr/lib/libss.a
/usr/lib/pkgconfig/ss.pc
/usr/lib/pkgconfig/com_err.pc
/usr/lib/libcom_err.a
/usr/lib/libss.so
/usr/share/et/et_c.awk
/usr/share/et/et_h.awk
/usr/share/ss/ct_c.awk
/usr/share/ss/ct_c.sed
/usr/share/man/man1/mk_cmds.1.bz2
/usr/share/man/man1/compile_et.1.bz2
/usr/share/man/man3/com_err.3.bz2
/usr/share/info/libext2fs.info.bz2
/usr/include/et/com_err.h
/usr/include/ss/ss.h
/usr/include/ss/ss_err.h
Comment 6 Rafał Mużyło 2009-09-05 14:21:27 UTC
> No, because due to bug #281654, I have been repeatedly re-merging util-linux in
> the last few days. Besides, I don't see any libuuid.so.1 from e2fsprogs-lib

Cause there's none in the recent version of the ebuild (disabled
in favor of the one in util-linux).

Anyway, you should have started with this little bit, as it makes this bug
INVALID, in a way.
Somehow (perhaps due to your own actions), your setup became broken.
See what package owns /usr/lib/libuuid.so.1, then remove that file
(in /usr/lib there should be only libuuid.so, not even a symlink,
just a linker script pointing to the lib in /lib/ ).
Immediately afterward, revdep-rebuild.

For reference, you may paste 'readelf -V' output for those two libs,
I think it should significantly differ.
Comment 7 Mathieu Z 2009-09-05 20:21:56 UTC
(In reply to comment #6)
> > No, because due to bug #281654, I have been repeatedly re-merging util-linux in
> > the last few days. Besides, I don't see any libuuid.so.1 from e2fsprogs-lib
> 
> Cause there's none in the recent version of the ebuild (disabled
> in favor of the one in util-linux).
> 
> Anyway, you should have started with this little bit, as it makes this bug
> INVALID, in a way.
> Somehow (perhaps due to your own actions), your setup became broken.
> See what package owns /usr/lib/libuuid.so.1, then remove that file
> (in /usr/lib there should be only libuuid.so, not even a symlink,
> just a linker script pointing to the lib in /lib/ ).
> Immediately afterward, revdep-rebuild.
> 
> For reference, you may paste 'readelf -V' output for those two libs,
> I think it should significantly differ.
> 

Thanks for the hint. Indded related to bug #281654 dur to two orphaned files /usr/lib/libuuid.so.1 and /usr/lib/libuuid.so.1.2.

Removing them fixes the problem.