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

Bug 218915

Summary: net-libs/xulrunner-1.9_beta5-r1 throws error conected with libnss3 near the and of compilation
Product: Gentoo Linux Reporter: nusch <nusch88>
Component: [OLD] LibraryAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
Buil environment
strace gcc -o tmp tmp.c -lnss3

Description nusch 2008-04-22 17:35:24 UTC
Tried to compile from source mozilla-firefox-3.0_beta5:


Reproducible: Always

Steps to Reproduce:
emerge net-libs/xulrunner-1.9_beta5-r1
Actual Results:  
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lnss3
collect2: ld returned 1 exit status

/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lnss3
collect2: ld returned 1 exit status
gmake[5]: *** [libpipnss.so] Error 1
gmake[5]: Leaving directory `/mnt/dane/portage/portage/net-libs/xulrunner-1.9_beta5-r1/work/mozilla/security/manager/ssl/src'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/mnt/dane/portage/portage/net-libs/xulrunner-1.9_beta5-r1/work/mozilla/security/manager/ssl'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/mnt/dane/portage/portage/net-libs/xulrunner-1.9_beta5-r1/work/mozilla/security/manager'
gmake[2]: *** [libs_tier_toolkit] Error 2
gmake[2]: Leaving directory `/mnt/dane/portage/portage/net-libs/xulrunner-1.9_beta5-r1/work/mozilla'
gmake[1]: *** [tier_toolkit] Error 2
gmake[1]: Leaving directory `/mnt/dane/portage/portage/net-libs/xulrunner-1.9_beta5-r1/work/mozilla'
make: *** [default] Error 2
 *
 * ERROR: net-libs/xulrunner-1.9_beta5-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4862:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *


Expected Results:  
compiled xulrunner

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r4 i686)
=================================================================
System uname: 2.6.24-tuxonice-r4 i686 Intel(R) Pentium(R) M processor 1500MHz
Timestamp of tree: Sun, 20 Apr 2008 21:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
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
dev-util/ccache:     2.4-r7
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.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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="-march=pentium-m -Os -pipe -fomit-frame-pointer"
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/lib/fax /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl 		http://src.gentoo.pl 		http://gentoo.zie.pg.gda.pl 		http://gentoo.po.opole.pl 		ftp://gentoo.po.opole.pl 		ftp://mirror.icis.pcz.pl/gentoo/ "
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl 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="/mnt/dane/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/xeffects /usr/local/layman/kadu-stable /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X X509 a52 aac aalib accessibility acl acpi administrator adsl aiglx allegro alsa amr apache2 aqua_theme arts asf asm audiofile background battery branding buttons bzip2 c++ cap cardbus ccache cdaudio cdparanoia cdr cdrom cdsound cgi chroot cli clock-screen cnamefix connectionstatus console contactnotes contentcache cpulimit cracklib crypt css cups curl curlwrappers cvs cxx d daemon dbase dbox2 dbtool dbus dhcp directfb disk-partition diskcache diskio distribution divx dmi dnotify dnsdb dolby-record-switch domain-aware dri dv dvb dvbplayer dvd dvdnav dvdr dvdread eap-tls emacs embedded emerald emf emovix encode epiphany epydoc escreen esd etwin examples excel exif extensions extrafilters extraicons extramodules fat fax fbcon fbdev fbsplash festival ffmpeg firefox flac flash fmod font-server fontconfig foomaticdb fortran fping ftp gadu gconf gd gdb gdbm gif gimpprint glib glitz gmail gnokii gocr gphoto2 gpm gsm gtk gzip h323 hacking hal hash hdhomerun hfs highlight hou html http httpd hybrid ibam ical icons iconv icq icu id3 idea ieee1394 ilbc image imagemagick imap immqt injection inline ipfilter iproute2 iptv ipv6 irc irda irman irmc ithreads jabber java javascript jbig jfs john jpeg jpeg2k jumpplay justify kde kdm kdrive kipi lame ldap libcaca libnotify libsexy libwww lirc lm_sensors logitech-mouse logrotate logwatch lzw mad md5sum mgetty mhash midi mikmod mime mimencode ming mjpeg mmx mmxext mod_irc mod_python mode-owner modperl moneyplex mono mouse mozdevelop mozdom mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mplayer mudflap musepack music musicbrainz mysql nas nat ncurses net network-cron new-login nfs njb nls nowlistening nptl nptlonly nsplugin nss ntfs ntlm ntp obex objc objc++ objc-gc ogg opengl openmp openntpd openssh openssl opensslcrypt pam passwordsave pcap pci pcmcia pcre pdf perl pertty player plugins pmu png pnm pop posix postgres postproc postscript ppds profile python qt3 qt3support qt4 query-browser quicktime radio radius rar rdesktop readline real realmedia reiser4 reiserfs remote replytolist rewrite rss samba scanner sendmail sensord serial server session setup-plugin sftp shout skey slp sms smtp sndfile snmp soap sockets socks5 softfax sound sox spamassassin speech speedo spell spl spoof-source sql sse sse2 ssl startup-notification stats stlport stream streamripper stroke subtitles subversion svg svga swarmcache swat symlink sysfs syslog tagwriting tcpd texteffect threads thunderbird tiff timestats timidity tivo tk tlen tokenizer tordns totem tracker transcode transparent-proxy trayicon truetype tv_check tv_pick_cgi twolame type1 unicode unzip upnp usb userlocales v4l2 vcd vdr vga vhosts videos vim vnc vncviewer voice vorbis wifi win32codecs winbind winpopup wireshark wma wmf wmp wordperfect wxwindows x11vnc x264 x86 xcomposite xforms xfs xhtml xine xinerama xinetd xml xml-rpc xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xtended xv xvid xvmc xvnc yv12 zeroconf zip zlib" ALSA_CARDS="intel8x0" 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 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 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 python" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 nusch 2008-04-22 17:46:26 UTC
Created attachment 150625 [details]
build.log
Comment 2 nusch 2008-04-22 17:49:20 UTC
Created attachment 150627 [details]
Buil environment
Comment 3 nusch 2008-04-22 17:50:22 UTC
eix nss

[I] dev-libs/nss
     Available versions:  3.11.7 3.11.9 [M]~3.12_beta3 {M}(~)3.12_rc2 {utils}
     Installed versions:  3.12_rc2(18:08:06 22 IV 2008)(-utils)
     Homepage:            http://www.mozilla.org/projects/security/pki/nss/
     Description:         Mozilla's Network Security Services library that implements PKI support
Comment 4 nusch 2008-04-22 17:50:55 UTC
eix nss

[I] dev-libs/nss
     Available versions:  3.11.7 3.11.9 [M]~3.12_beta3 {M}(~)3.12_rc2 {utils}
     Installed versions:  3.12_rc2(18:08:06 22 IV 2008)(-utils)
     Homepage:            http://www.mozilla.org/projects/security/pki/nss/
     Description:         Mozilla's Network Security Services library that implements PKI support
Comment 5 nusch 2008-04-25 03:39:18 UTC
The link to nss was broken - pointing to non-existing libnss3.so.11 (neither emerge neither revdep-rebuild didn't repair this
nuschbox ~ # cd /usr/lib/nss

nuschbox nss # ls -l | grep nss
lrwxrwxrwx 1 root root      13 IV 22 18:08 libnss3.so -> libnss3.so.11
-rwxr-xr-x 1 root root 1131232 IV 22 18:07 libnss3.so.12
-rw-r--r-- 1 root root   37898 IV 22 18:07 libnss.a
-rw-r--r-- 1 root root   31140 IV 22 18:07 libnssb.a
lrwxrwxrwx 1 root root      16 IV 22 18:08 libnssckbi.so -> libnssckbi.so.12
-rwxr-xr-x 1 root root  319388 IV 22 18:07 libnssckbi.so.12
-rw-r--r-- 1 root root  115694 IV 22 18:07 libnssckfw.a
lrwxrwxrwx 1 root root      16 IV 22 18:08 libnssdbm3.so -> libnssdbm3.so.12
-rwxr-xr-x 1 root root  128672 IV 22 18:07 libnssdbm3.so.12
-rw-r--r-- 1 root root  141650 IV 22 18:07 libnssdbm.a
-rw-r--r-- 1 root root   42182 IV 22 18:07 libnssdev.a
-rw-r--r-- 1 root root  111596 IV 22 18:07 libnsspki.a
lrwxrwxrwx 1 root root      17 IV 22 18:08 libnssutil3.so -> libnssutil3.so.12
-rwxr-xr-x 1 root root   87672 IV 22 18:07 libnssutil3.so.12
-rw-r--r-- 1 root root  139538 IV 22 18:07 libnssutil.a
nuschbox nss # unlink libnss3.so
nuschbox nss # ln -s libnss3.so.12 libnss3.so
nuschbox nss # ls -l
razem 5984
-rw-r--r-- 1 root root  144854 IV 22 18:07 libcertdb.a
-rw-r--r-- 1 root root  106446 IV 22 18:07 libcerthi.a
-rw-r--r-- 1 root root   91432 IV 22 18:07 libcrmf.a
-rw-r--r-- 1 root root   50312 IV 22 18:07 libcryptohi.a
-rw-r--r-- 1 root root   36428 IV 22 18:07 libdbm.a
-rw-r--r-- 1 root root     476 IV 22 18:07 libfreebl3.chk
lrwxrwxrwx 1 root root      16 IV 22 18:08 libfreebl3.so -> libfreebl3.so.12
-rwxr-xr-x 1 root root  259588 IV 22 18:07 libfreebl3.so.12
-rw-r--r-- 1 root root   31058 IV 22 18:07 libfreebl.a
-rw-r--r-- 1 root root   41912 IV 22 18:07 libjar.a
lrwxrwxrwx 1 root root      13 IV 25 05:20 libnss3.so -> libnss3.so.12
-rwxr-xr-x 1 root root 1131232 IV 22 18:07 libnss3.so.12
-rw-r--r-- 1 root root   37898 IV 22 18:07 libnss.a
-rw-r--r-- 1 root root   31140 IV 22 18:07 libnssb.a
lrwxrwxrwx 1 root root      16 IV 22 18:08 libnssckbi.so -> libnssckbi.so.12
-rwxr-xr-x 1 root root  319388 IV 22 18:07 libnssckbi.so.12
-rw-r--r-- 1 root root  115694 IV 22 18:07 libnssckfw.a
lrwxrwxrwx 1 root root      16 IV 22 18:08 libnssdbm3.so -> libnssdbm3.so.12
-rwxr-xr-x 1 root root  128672 IV 22 18:07 libnssdbm3.so.12
-rw-r--r-- 1 root root  141650 IV 22 18:07 libnssdbm.a
-rw-r--r-- 1 root root   42182 IV 22 18:07 libnssdev.a
-rw-r--r-- 1 root root  111596 IV 22 18:07 libnsspki.a
lrwxrwxrwx 1 root root      17 IV 22 18:08 libnssutil3.so -> libnssutil3.so.12
-rwxr-xr-x 1 root root   87672 IV 22 18:07 libnssutil3.so.12
-rw-r--r-- 1 root root  139538 IV 22 18:07 libnssutil.a
-rw-r--r-- 1 root root  271542 IV 22 18:07 libpk11wrap.a
-rw-r--r-- 1 root root   79742 IV 22 18:07 libpkcs12.a
-rw-r--r-- 1 root root   66610 IV 22 18:07 libpkcs7.a
-rw-r--r-- 1 root root   53924 IV 22 18:07 libpkixcertsel.a
-rw-r--r-- 1 root root   26462 IV 22 18:07 libpkixchecker.a
-rw-r--r-- 1 root root   32074 IV 22 18:07 libpkixcrlsel.a
-rw-r--r-- 1 root root  179970 IV 22 18:07 libpkixmodule.a
-rw-r--r-- 1 root root   60638 IV 22 18:07 libpkixparams.a
-rw-r--r-- 1 root root  225976 IV 22 18:07 libpkixpki.a
-rw-r--r-- 1 root root   52012 IV 22 18:07 libpkixresults.a
-rw-r--r-- 1 root root    8290 IV 22 18:07 libpkixstore.a
-rw-r--r-- 1 root root  110622 IV 22 18:07 libpkixsystem.a
-rw-r--r-- 1 root root  195620 IV 22 18:07 libpkixtop.a
-rw-r--r-- 1 root root  126990 IV 22 18:07 libpkixutil.a
-rw-r--r-- 1 root root  119398 IV 22 18:07 libsectool.a
lrwxrwxrwx 1 root root      15 IV 22 18:08 libsmime3.so -> libsmime3.so.12
-rwxr-xr-x 1 root root  146244 IV 22 18:07 libsmime3.so.12
-rw-r--r-- 1 root root  115200 IV 22 18:07 libsmime.a
-rw-r--r-- 1 root root     476 IV 22 18:07 libsoftokn3.chk
lrwxrwxrwx 1 root root      17 IV 22 18:08 libsoftokn3.so -> libsoftokn3.so.12
-rwxr-xr-x 1 root root  194840 IV 22 18:07 libsoftokn3.so.12
-rw-r--r-- 1 root root  282906 IV 22 18:07 libsoftokn.a
lrwxrwxrwx 1 root root      13 IV 22 18:08 libssl3.so -> libssl3.so.12
-rwxr-xr-x 1 root root  170584 IV 22 18:07 libssl3.so.12
-rw-r--r-- 1 root root  237238 IV 22 18:07 libssl.a
-rw-r--r-- 1 root root   89680 IV 22 18:07 libzlib.a

nuschbox nss # ldconfig

And it still can't find it.
nuschbox ~ # gcc -o tmp tmp.c -ldl -lnss3
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lnss3
collect2: ld returned 1 exit status

Comment 6 nusch 2008-04-25 03:42:27 UTC
Created attachment 150895 [details]
strace gcc -o tmp tmp.c -lnss3

strace on gcc with linking nss3 to hello world program.
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2008-06-12 13:35:02 UTC
Not sure what do you want us to fix, it works here.
Comment 8 David Gathright 2008-07-02 01:03:20 UTC
cd /usr/lib/nss
ln -s libsoftokn3.so.12 libsoftokn3.so.11

enjoy!
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2008-07-18 17:42:42 UTC
Reopen if it still happens