Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280367 - net-libs/xulrunner-1.9.1.2-r2 fails to compile
Summary: net-libs/xulrunner-1.9.1.2-r2 fails to compile
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 284272 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-04 20:02 UTC by aidar
Modified: 2009-11-04 00:24 UTC (History)
0 users

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


Attachments
xulrunner build.log (build.log,120.33 KB, text/plain)
2009-08-05 02:13 UTC, aidar
Details
environment (environment,217.67 KB, text/plain)
2009-08-05 02:14 UTC, aidar
Details
config.log (config.log,44.41 KB, text/plain)
2009-08-05 14:15 UTC, aidar
Details
config.status (config.status,108.70 KB, text/plain)
2009-08-09 04:45 UTC, aidar
Details
nspr-config (nspr-config,2.29 KB, text/plain)
2009-08-09 05:45 UTC, aidar
Details
xulrunner build.log (build.log,119.24 KB, text/plain)
2009-09-09 15:49 UTC, aidar
Details
temp fix (xulrunner-1.9.1.2-nspr-temp-fix.patch,682 bytes, text/plain)
2009-09-10 05:50 UTC, Jory A. Pratt
Details
hack for broken nspr-config (temp,1.07 KB, text/plain)
2009-09-10 23:39 UTC, Jory A. Pratt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aidar 2009-08-04 20:02:30 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lplds4
collect2: ld returned 1 exit status
gmake[3]: *** [libmozjs.so] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1/js/src'
gmake[2]: *** [libs_tier_js] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1'
gmake[1]: *** [tier_js] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1'
make: *** [default] Error 2
 *
 * ERROR: net-libs/xulrunner-1.9.1.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5596:  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/tmp/portage/net-libs/xulrunner-1.9.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9.1.2/temp/environment'.
 * This ebuild is from an overlay named 'mozilla': '/usr/local/portage/layman/mozilla/'
 *
!!! 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.13"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info


Reproducible: Always

Steps to Reproduce:
1.get GCC 4.4.1 from portage 
2.try to install mozilla-firefox
3.

Actual Results:  
compilation fails

Expected Results:  
suc. build

pussy ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-rc2-26142-g0c2e395 x86_64)                                                           
=================================================================                      
System uname: Linux-2.6.31-rc2-26142-g0c2e395-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-1.12.11.1                                                         
Timestamp of tree: Tue, 04 Aug 2009 15:30:02 +0000                                     
app-shells/bash:     3.2_p39                                                           
dev-java/java-config: 2.1.8-r1                                                         
dev-lang/python:     2.5.4-r3, 2.6.2-r1                                                
dev-util/cmake:      2.6.4                                                             
sys-apps/baselayout: 1.12.11.1                                                         
sys-apps/sandbox:    1.6-r2                                                            
sys-devel/autoconf:  2.13, 2.63-r1                                                     
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                              
sys-devel/binutils:  2.18-r3                                                           
sys-devel/gcc-config: 1.4.1                                                            
sys-devel/libtool:   2.2.6a                                                            
virtual/os-headers:  2.6.27-r2                                                         
ACCEPT_KEYWORDS="amd64"                                                                
CBUILD="x86_64-pc-linux-gnu"                                                           
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"                                  
CHOST="x86_64-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/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/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                                               
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"                                
DISTDIR="/usr/portage/distfiles"                                                       
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                         
LDFLAGS="-Wl,-O1"                                                                      
LINGUAS="en en_US ru ru_RU"                                                            
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/desktop-effects /usr/local/portage/layman/jokey /usr/local/portage/layman/x11 /usr/local/portage/layman/kde-testing /usr/local/portage/layman/mozilla"                                                                    
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                         
USE="X X509 a52 aac acl acpi alsa amd64 apache2 archive atmo audiofile automount bash-completion berkdb bluetooth bluez branding bzip2 cairo calendar cdda cddax cddb cdio cdparanoia cdr cgi cleartype cli consolekit cracklib crypt css cups cxx dbus dhclient dirac directfb disk-partition dqa dri dso dts dvb dvd dvdr dvdread eds emboss emerald encode equalizer esd eselect evo example examples exif fam fat fbcon ffmpeg firefox flac fontconfig fpx ftp fuse gdbm gif gimp git glitz gnutls gpm gstreamer gtk hal hdaps hdapslaptop hddtemp iconv icq id3tag imap ipod ipv6 irda isdnlog jabber java java6 javascript jpeg jpeg2k kate kde4 kerberos krb4 lame ldap libass libcaca libmms libnotify libsysfs libv4l2 live lm_sensors lzma mad matroska mikmod mime mms mmx mmxext mng mozilla mp2 mp3 mp4 mp4live mpeg mplayer msn mudflap multilib musepack musepak mysql nas ncurses networkmanager nfs nls nocd nptl nptlonly nsplugin ntfs ntfs3g nvtv ogg ogm openexr opengl openmp optimisememory oracle oscar oss pam pcre pda pdf perl plasma png policykit ppds pppd ps3 pvr python qt3support qt4 quicktime raw rdesktop readline reflection resolvconf rss samba scim scsi sdl seamonkey session skins smapi smp sndfile sockets socks5 sound source spell spl sqlite sse sse2 sse3 sse4 ssl ssse3 startup-notification stream subversion svg symlink sysfs tcpd templates theora threads tiff tk toolbar truetype twolame unicode upnp usb v4l v4l2 vcd vcdinfo vcdx vlm vnc vorbis wavpack webkit wifi wma wmf x264 xcb xcomposite xinerama xml xorg xosd xrandr xulrunner xv xvid zeroconf zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US ru ru_RU" NETBEANS_MODULES="*" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Sachau gentoo-dev 2009-08-04 20:42:58 UTC
This issue has nothing to do with gcc-4, so adjusted the summary, assiging to mozilla herd.
Comment 2 aidar 2009-08-04 20:46:52 UTC
same thing happens with the xulrunner-1.9.1.1-r2 !
Comment 3 Jory A. Pratt gentoo-dev 2009-08-04 23:59:26 UTC
(In reply to comment #2)
> same thing happens with the xulrunner-1.9.1.1-r2 !
> 

This is a a multi compile failure, emerge with MAKEOPTS="-j1" please.
Comment 4 Jory A. Pratt gentoo-dev 2009-08-05 00:00:05 UTC
Actually first rebuild your systems nspr .. revdep-rebuild is your friend.
Comment 5 aidar 2009-08-05 00:30:23 UTC
MAKEOPTS and revdep-rebuild is not an issue.
Comment 6 Jory A. Pratt gentoo-dev 2009-08-05 00:40:06 UTC
Then please rebuild nspr-4.8 your failing to link to the appropriate lib.
Comment 7 aidar 2009-08-05 00:44:16 UTC
sorry Jory, I should have mentioned that rebuilding of the nspr doesn't help either...
Comment 8 Jory A. Pratt gentoo-dev 2009-08-05 00:47:13 UTC
(In reply to comment #7)
> sorry Jory, I should have mentioned that rebuilding of the nspr doesn't help
> either...
> 

"locate libplds4" please
Comment 9 aidar 2009-08-05 01:07:40 UTC
pussy ~ # find / -iname libplds4
pussy ~ #


there is no such file then
Comment 10 Jory A. Pratt gentoo-dev 2009-08-05 01:25:30 UTC
I specifically asked for results of locate, but Just so you can verify you can compare to ensure all your files match this right here.

[anarchy - ~]  locate libplds4
/usr/lib64/nspr/libplds4.a
/usr/lib64/nspr/libplds4.so.8
/usr/lib64/nspr/libplds4.so
Comment 11 aidar 2009-08-05 01:39:12 UTC
pussy ~ # find / -iname libplds4*
/usr/lib64/nspr/libplds4.so.8
/usr/lib64/nspr/libplds4.so
/usr/lib64/nspr/libplds4.a
/opt/chromium.org/lib/libplds4.so.0d
/opt/flash-libcompat/libplds4.so
Comment 12 Jory A. Pratt gentoo-dev 2009-08-05 01:50:01 UTC
Please post /etc/env.d/08nsp, /etc/env.d/08nss also run env-update then post /etc/ld.so.conf please.
Comment 13 aidar 2009-08-05 01:54:50 UTC
pussy ~ # cat /etc/env.d/08nss  
LDPATH=/usr/lib64/nss           
pussy ~ # cat /etc/env.d/08nspr 
LDPATH=/usr/lib64/nspr          
pussy ~ # env-update            
>>> Regenerating /etc/ld.so.cache...
pussy ~ # cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
//usr/lib32/opengl/xorg-x11/lib
//usr/lib64/opengl/xorg-x11/lib
/lib
/usr/lib
/lib64
/usr/lib64
/usr/local/lib64
/lib32
/usr/lib32
/usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32
/usr/lib64/nspr
/usr/lib64/nss
/usr/lib64/xulrunner-1.9.1
/usr/lib64/seamonkey
/usr/lib64/qca2
/usr/lib/qt4
/usr/lib64/qt4
/usr/lib32/qt4
/usr/qt/3/lib
/usr/qt/3/lib64
/usr/qt/3/lib32
/opt/flash-libcompat
/usr/lib32/libstdc++-v3/
/usr/local/lib/
pussy ~ #
Comment 14 Jory A. Pratt gentoo-dev 2009-08-05 01:58:52 UTC
Now that we know your enviroment is completely sane as far as nspr is concerned please attempt your emerge of xulrunner again. 
Comment 15 aidar 2009-08-05 02:10:57 UTC
rm -f libmozjs.so                                                                      
x86_64-pc-linux-gnu-g++ -DARON_WAS_HERE  -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 -pipe -march=native -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -fstrict-aliasing  -fPIC -shared -Wl,-z,defs -Wl,-h,libmozjs.so -o libmozjs.so  jsapi.o jsarena.o jsarray.o jsatom.o jsbool.o jscntxt.o jsdate.o jsdbgapi.o jsdhash.o jsdtoa.o jsemit.o jsexn.o jsfun.o jsgc.o jshash.o jsinterp.o jsinvoke.o jsiter.o jslock.o jslog2.o jsmath.o jsnum.o jsobj.o json.o jsopcode.o jsparse.o jsprf.o jsregexp.o jsscan.o jsscope.o jsscript.o jsstr.o jsutil.o jsxdrapi.o jsxml.o prmjtime.o     -lpthread -Wl,-O1  -Wl,-rpath-link,/bin -Wl,-rpath-link,/lib  -Wl,-R/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1/dist/lib -L/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm  -lm -ldl                
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lplds4                                                                            
collect2: ld returned 1 exit status                                                    
gmake[3]: *** [libmozjs.so] Error 1                                                    
gmake[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1/js/src'                                                                           
gmake[2]: *** [libs_tier_js] Error 2                                                   
gmake[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1'                                                                                  
gmake[1]: *** [tier_js] Error 2                                                        
gmake[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1'                                                                                  
make: *** [default] Error 2                                                            
 *                                                                                     
 * ERROR: net-libs/xulrunner-1.9.1.2 failed.                                           
 * Call stack:                                                                         
 *               ebuild.sh, line   49:  Called src_compile                             
 *             environment, line 5594:  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/tmp/portage/net-libs/xulrunner-1.9.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9.1.2/temp/environment'.
 * This ebuild is from an overlay named 'mozilla': '/usr/local/portage/layman/mozilla/'
 *

>>> Failed to emerge net-libs/xulrunner-1.9.1.2, Log file:
Comment 16 aidar 2009-08-05 02:13:05 UTC
Created attachment 200221 [details]
xulrunner build.log

xulrunner build.log
Comment 17 aidar 2009-08-05 02:14:06 UTC
Created attachment 200223 [details]
environment

environment
Comment 18 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-08-05 04:05:20 UTC
(In reply to comment #15)
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lplds4                                                             

(In reply to comment #11)
> pussy ~ # find / -iname libplds4*
> /usr/lib64/nspr/libplds4.so.8
> /usr/lib64/nspr/libplds4.so

(In reply to comment #13)
[snip]
> pussy ~ # cat /etc/env.d/08nspr 
> LDPATH=/usr/lib64/nspr          
> pussy ~ # env-update            
> >>> Regenerating /etc/ld.so.cache...
> pussy ~ # cat /etc/ld.so.conf
[snip]
> /usr/lib64/nspr
[snip]

These three things combined do NOT make sense. Please paste the output of 

gcc -lplds4

This is to see whether it's a xulrunner problem or an ld/system problem.
Comment 19 Jory A. Pratt gentoo-dev 2009-08-05 04:22:20 UTC
(In reply to comment #18)
> gcc -lplds4
>
This is not a proper check to see if it is xulrunner or system ld, if you where to run this on your system right now it will most likely come back with an unable to find as well.
Comment 20 aidar 2009-08-05 05:39:36 UTC
>> Please paste the output of 
>> gcc -lplds4

pussy ~ # gcc -lplds4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lplds4
collect2: ld returned 1 exit status

makes sense or doesn't - is not important.
I really don't know why I can't emerge this xulrunner/ff/seamonkey and other browsers on gecko...
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2009-08-05 13:20:38 UTC
Try:

inherit flag-o-matic multilib

at top of the ebuild, and

append-ldflags -L/usr/$(get_libdir)/nspr

before running ./configure and/or make

This has worked for me when I moved media-libs/fmod to /opt, and fixed latest revision of media-libs/libsidplay to find some libs...

The ld.so.conf which is already set then helps the running executable (the result) to find the lib, so this is a building problem only.

Don't know if this is a workaround or should it really work like this.
Comment 22 Jory A. Pratt gentoo-dev 2009-08-05 13:24:59 UTC
Mark if you could shine some light on this would be appreciated. I have had well over 1000 people test this and none can reproduce it.
Comment 23 Jory A. Pratt gentoo-dev 2009-08-05 13:36:33 UTC
Please attach config.log it can be found in /var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1/
Comment 24 aidar 2009-08-05 14:15:33 UTC
Created attachment 200257 [details]
config.log
Comment 25 aidar 2009-08-05 14:16:27 UTC
-DARON_WAS_HERE
Comment 26 Jory A. Pratt gentoo-dev 2009-08-09 04:37:29 UTC
Please attach config.status, this is the last file I will ask for, if it looks fine there is no reason this should be failing.
Comment 27 aidar 2009-08-09 04:45:39 UTC
Created attachment 200657 [details]
config.status

Non of the gecko browsers get compiled. I don't know why really.
Comment 28 Jory A. Pratt gentoo-dev 2009-08-09 04:56:00 UTC
show me nspr-config --cflag && nspr-config --libs based off the config.status your using an ebuild for nspr that is not from gentoo's mozilla team. 
Comment 29 aidar 2009-08-09 05:00:18 UTC
>>> show me


pussy / # nspr-config --cflags && nspr-config --libs
-I/usr/include/nspr
-Wl,-R/usr/lib -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl


I tried the mozilla from mozilla overlay. And I tried the mozilla from portage. Results are pretty much the same.
Comment 30 Jory A. Pratt gentoo-dev 2009-08-09 05:13:26 UTC
Your failure is from the pkg-config file for nspr. Where did the nspr come from that you are using. Your pkg-config should look something like ..

[anarchy - pkgconfig]  cat nspr.pc 
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64/nspr
includedir=${prefix}/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.8.0
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -Wl,-R${libdir}

You are gonna have to track down where you have installed nspr from. If you believe there might be an error rm /usr/lib64/pkgconfig/nspr.pc and re-emerge nspr.
Comment 31 aidar 2009-08-09 05:37:24 UTC
here is what I have in nspr.pc:

pussy drm-intel # cat /usr/lib64/pkgconfig/nspr.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64/nspr
includedir=${prefix}/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.8.0
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -Wl,-R${libdir}
Cflags: -I${includedir}



nevertheless,
remerged nspr from portage - it doesn't help to emerge firefox
Comment 32 Jory A. Pratt gentoo-dev 2009-08-09 05:40:36 UTC
Go ahead and attach nspr-config location is /usr/bin.
Comment 33 aidar 2009-08-09 05:44:53 UTC
pussy drm-intel # cat /usr/bin/nspr-config 
#!/bin/sh                                  

prefix=/usr

major_version=4
minor_version=8
patch_version=0

usage()
{      
        cat <<EOF
Usage: nspr-config [OPTIONS] [LIBRARIES]
Options:                                
        [--prefix[=DIR]]                
        [--exec-prefix[=DIR]]           
        [--includedir[=DIR]]            
        [--libdir[=DIR]]                
        [--version]                     
        [--libs]                        
        [--cflags]                      
Libraries:                              
        nspr                            
        plc                             
        plds                            
EOF                                     
        exit $1                         
}                                       

if test $# -eq 0; then
        usage 1 1>&2  
fi                    

lib_nspr=yes
lib_plc=yes 
lib_plds=yes

while test $# -gt 0; do
  case "$1" in         
  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) optarg= ;;                                          
  esac                                                   

  case $1 in
    --prefix=*)
      prefix=$optarg
      ;;            
    --prefix)       
      echo_prefix=yes
      ;;             
    --exec-prefix=*) 
      exec_prefix=$optarg
      ;;                 
    --exec-prefix)       
      echo_exec_prefix=yes
      ;;                  
    --includedir=*)       
      includedir=$optarg  
      ;;                  
    --includedir)         
      echo_includedir=yes 
      ;;                  
    --libdir=*)           
      libdir=$optarg      
      ;;                  
    --libdir)             
      echo_libdir=yes     
      ;;                  
    --version)            
      echo ${major_version}.${minor_version}.${patch_version}
      ;;                                                     
    --cflags)                                                
      echo_cflags=yes                                        
      ;;                                                     
    --libs)                                                  
      echo_libs=yes                                          
      ;;                                                     
    nspr)                                                    
      lib_nspr=yes                                           
      ;;                                                     
    plc)                                                     
      lib_plc=yes                                            
      ;;                                                     
    plds)                                                    
      lib_plds=yes                                           
      ;;                                                     
    *)                                                       
      usage 1 1>&2                                           
      ;;                                                     
  esac                                                       
  shift                                                      
done                                                         

# Set variables that may be dependent upon other variables
if test -z "$exec_prefix"; then                           
    exec_prefix=${prefix}                                 
fi                                                        
if test -z "$includedir"; then                            
    includedir=${prefix}/include/nspr                     
fi                                                        
if test -z "$libdir"; then                                
    libdir=/usr/lib64/nspr                                
fi                                                        

if test "$echo_prefix" = "yes"; then
    echo $prefix                    
fi                                  

if test "$echo_exec_prefix" = "yes"; then
    echo $exec_prefix
fi

if test "$echo_includedir" = "yes"; then
    echo $includedir
fi

if test "$echo_libdir" = "yes"; then
    echo $libdir
fi

if test "$echo_cflags" = "yes"; then
    echo -I$includedir
fi

if test "$echo_libs" = "yes"; then
      libdirs="-Wl,-R$libdir -L$libdir"
      if test -n "$lib_plds"; then
        libdirs="$libdirs -lplds${major_version}"
      fi
      if test -n "$lib_plc"; then
        libdirs="$libdirs -lplc${major_version}"
      fi
      if test -n "$lib_nspr"; then
        libdirs="$libdirs -lnspr${major_version}"
      fi
      os_ldflags="-Wl,-O1"
      for i in $os_ldflags ; do
        if echo $i | grep \^-L >/dev/null; then
          libdirs="$libdirs $i"
        fi
      done
      echo $libdirs -lpthread -ldl
fi
Comment 34 aidar 2009-08-09 05:45:41 UTC
Created attachment 200659 [details]
nspr-config
Comment 35 Jory A. Pratt gentoo-dev 2009-08-09 16:02:58 UTC
s%@NSPR_CONFIG@%/usr/bin/nspr-config%g
s%@NSPR_CFLAGS@%-I/usr/include/nspr%g
s%@NSPR_LIBS@%-Wl,-R/usr/lib64 -L/usr/lib64 -lplds4 -lplc4 -lnspr4 -lpthread -ldl%g

Based on all the info you have provided, there is no way this nspr_libs path would be set the way it is. nspr-config is called with --libs --cflags in the configure and would cause your path for nspr_libs to actually include /usr/lib64/nspr , as no other user is able to duplicate this issue I will leave it up to a mozilla team dev to decided, but I would close bug worksforme. 
Comment 36 aidar 2009-08-09 16:12:13 UTC
you know, "worksforme" is rather not making sense to me.
What do I do so that I can compile and emerge this web browser ?
Comment 37 Jory A. Pratt gentoo-dev 2009-08-09 16:36:24 UTC
(In reply to comment #36)
> you know, "worksforme" is rather not making sense to me.
> What do I do so that I can compile and emerge this web browser ?
> 

Please provide "eix nspr". You might have to emerge eix in order to provide this info but it is only way I can see to keep from closing this bug as worksforme.
Comment 38 aidar 2009-08-09 17:13:08 UTC
pussy drm-intel # eix nspr
[I] dev-libs/nspr
     Available versions:  4.6.8 4.7.3 4.7.4 (~)4.8 {debug ipv6}
     Installed versions:  4.8(00:37:07 08/09/09)(ipv6 -debug)
     Homepage:            http://www.mozilla.org/projects/nspr/
     Description:         Netscape Portable Runtime

* net-proxy/dnsproxy
     Available versions:  1.15
     Homepage:            http://www.wolfermann.org/dnsproxy.html
     Description:         The dnsproxy daemon is a proxy for DNS queries

Found 2 matches.
Comment 39 aidar 2009-08-11 15:50:18 UTC
The ebuild from main portage tree, mozilla-firefox-3.5.2 exhibits same behavior - failure to compile.

the whole issue come to play after my upgrade to GCC-4.4.1 and with subsequent reemerging the world with : 
emerge -e world

any ideas ?
Comment 40 aidar 2009-09-09 15:48:48 UTC
x86_64-pc-linux-gnu-g++ -o prmjtime.o -c -I./../../dist/include/system_wrappers_js -include ./config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API  -DJS_USE_SAFE_ARENA  -I. -I.  -I./../../dist/include   -I./../../dist/include/js -I/usr/include/nspr -I/sdk/include -I.    -fPIC   -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 -pipe -march=native -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -fstrict-aliasing    -DMOZILLA_CLIENT -include ./mozilla-config.h -Wp,-MD,.deps/prmjtime.pp prmjtime.cpp                                    
rm -f libmozjs.so                                                                 
x86_64-pc-linux-gnu-g++  -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 -pipe -march=native -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -fstrict-aliasing  -fPIC -shared -Wl,-z,defs -Wl,-h,libmozjs.so -o libmozjs.so  jsapi.o jsarena.o jsarray.o jsatom.o jsbool.o jscntxt.o jsdate.o jsdbgapi.o jsdhash.o jsdtoa.o jsemit.o jsexn.o jsfun.o jsgc.o jshash.o jsinterp.o jsinvoke.o jsiter.o jslock.o jslog2.o jsmath.o jsnum.o jsobj.o json.o jsopcode.o jsparse.o jsprf.o jsregexp.o jsscan.o jsscope.o jsscript.o jsstr.o jsutil.o jsxdrapi.o jsxml.o prmjtime.o     -lpthread -Wl,-O1  -Wl,-rpath-link,/bin -Wl,-rpath-link,/lib  -Wl,-R/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/dist/lib -L/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm  -lm -ldl                                                
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lplds4                                                                  
collect2: ld returned 1 exit status                                               
gmake[3]: *** [libmozjs.so] Error 1                                               
gmake[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/js/src'                                                              
gmake[2]: *** [libs_tier_js] 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_js] 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 5664:  Called _eapi2_src_compile
 *               ebuild.sh, line  638:  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/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/temp/environment'.
Comment 41 aidar 2009-09-09 15:49:46 UTC
Created attachment 203601 [details]
xulrunner build.log
Comment 42 aidar 2009-09-09 15:52:48 UTC
  sorry for bugging you all people 

but this issue is quite annoying - cant emerge xulrunner - no eclipse no firefox, nothing really...this is my main os, so I should have a browser at leas
Comment 43 Jory A. Pratt gentoo-dev 2009-09-09 17:00:55 UTC
Please do not add me to the CC list, I am already getting a copy via the mozilla alias.

Also please post out of :

nspr-config --libs --cflags

until xulrunner gets proper nspr-config --libs setting your stuck. I can only show ya what a proper install of nspr would set of amd64 which would actually be 

[anarchy - ~]  nspr-config --libs --cflags
-I/usr/include/nspr
-Wl,-R/usr/lib64/nspr -L/usr/lib64/nspr -lplds4 -lplc4 -lnspr4 -lpthread -ldl
Comment 44 aidar 2009-09-09 17:43:24 UTC
sorry to bug you Jory.

here is the output: 

pussy ~ # nspr-config --libs --cflags
-I/usr/include/nspr
-Wl,-R/usr/lib -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl
Comment 45 Jory A. Pratt gentoo-dev 2009-09-09 23:48:01 UTC
(In reply to comment #44)
> sorry to bug you Jory.
> 
> here is the output: 
> 
> pussy ~ # nspr-config --libs --cflags
> -I/usr/include/nspr
> -Wl,-R/usr/lib -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl
> 

your nspr-config --libs is not passing the proper directory. Please attach your
 /usr/lib/pkgconfig/nspr.pc.
Comment 46 aidar 2009-09-10 04:14:34 UTC
ak@pussy / $ cat /usr/lib/pkgconfig/nspr.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64/nspr
includedir=${prefix}/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.8.0
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -Wl,-R${libdir}
Cflags: -I${includedir}
Comment 47 Jory A. Pratt gentoo-dev 2009-09-10 05:40:49 UTC
(In reply to comment #46)
> ak@pussy / $ cat /usr/lib/pkgconfig/nspr.pc
> prefix=/usr
> exec_prefix=${prefix}
> libdir=/usr/lib64/nspr
> includedir=${prefix}/include/nspr
> 
> Name: NSPR
> Description: The Netscape Portable Runtime
> Version: 4.8.0
> Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -Wl,-R${libdir}
> Cflags: -I${includedir}
> 

after double checking your nspr-config I do not see how it fails to pass the proper libdir to --libs. I will ask around and see if anyone else has seen the same issue that you reported, and see what they ended up with for a fix. If you review your nspr-config you will see libdir is set to /usr/lib64/nspr but --libs fails to set actual define and uses only /usr/lib64. Only option I can give you for temp solution would be symlinks back to /usr/lib64 from /usr/lib64/nspr to allow ya to compile at this moment in time.
Comment 48 Jory A. Pratt gentoo-dev 2009-09-10 05:50:36 UTC
Created attachment 203655 [details]
temp fix

Please test attached patch. This should allow ya to compile xulrunner until we figure out your nspr-config issue. I really would rather ya not polute /usr/lib64 with nspr symlinks that might become forgotten.
Comment 49 aidar 2009-09-10 12:25:47 UTC
Jory,

I applied your patch to the xulrunner ebuild - it emerged. Thank you so much - now I can emerge so much more on my machine.

As far as the issue goes, I might have some info on why this happened.
After migrating to GCC-4.4.1 there was some issue with the libGL.la - it was always misplaced in /usr/lib64 folder or something like that and emerge couldn't find it. I looked into it and saw that it needs ${libdir} ... I then sed'ed all files containing this ${libdir} to replace it to point to /usr/lib64 ...

At the time and now I still can't figure out how the env variables work in gentoo. Whatever I set in /etc/env.d ( with subsequent env-update && source /etc/profile ) doesn't work for me...
Comment 50 aidar 2009-09-10 12:27:47 UTC
one thing to add - every other ebuild can be emerged. The issues are only with xulrunner/mozilla and so on.
Comment 51 aidar 2009-09-10 12:40:49 UTC
too early, it didn't compile. Now however it says sth different : 

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl3                                                                   
collect2: ld returned 1 exit status                                               
gmake[3]: *** [libxul.so] Error 1                                                 
gmake[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/toolkit/library'                                                     
gmake[2]: *** [libs_tier_toolkit] 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  
Comment 52 Jory A. Pratt gentoo-dev 2009-09-10 14:17:37 UTC
copy the append to src_compile() and retest.
Comment 53 aidar 2009-09-10 20:34:03 UTC
the ebuild doesn't contail src_compile(). Nor in main tree nor in the development tree
Comment 54 Jory A. Pratt gentoo-dev 2009-09-10 23:39:43 UTC
Created attachment 203745 [details]
hack for broken nspr-config

You can apply this and test sorry for the delay.
Comment 55 Jory A. Pratt gentoo-dev 2009-09-10 23:50:22 UTC
aidar if you could also please post "nspr-config --libdir" would be appreciated.
Comment 56 aidar 2009-09-11 00:00:17 UTC
of course, here you go :

pussy BAT0 # nspr-config --libdir
/usr/lib


will try the compilation later today before the end of the day by eastern time EST
Comment 57 Jory A. Pratt gentoo-dev 2009-09-11 00:18:05 UTC
(In reply to comment #56)
> of course, here you go :
> 
> pussy BAT0 # nspr-config --libdir
> /usr/lib

There is our problem. Please grep i- libdir /usr/bin/nspr-config and post here. also attach nspr-config to the bug, this will give me two possible solutions.
Comment 58 aidar 2009-09-11 00:29:32 UTC
pussy BAT0 # grep -i libdir /usr/bin/nspr-config
        [--libdir[=DIR]]
    --libdir=*)
      libdir=$optarg
    --libdir)
      echo_libdir=yes
if test -z "$libdir"; then
    libdir=/usr/lib64/nspr
if test "$echo_libdir" = "yes"; then
    echo $libdir
      libdirs="-Wl,-R$libdir -L$libdir"
        libdirs="$libdirs -lplds${major_version}"
        libdirs="$libdirs -lplc${major_version}"
        libdirs="$libdirs -lnspr${major_version}"
          libdirs="$libdirs $i"
      echo $libdirs -lpthread -ldl
pussy BAT0 #
Comment 59 aidar 2009-09-11 12:17:56 UTC
<B>this is with the temp, hack for broken nspr-config</B>

x86_64-pc-linux-gnu-g++ -o nsRDFResource.o -c -I../../dist/include/system_wrappers -include ../../config/gcc_hidden.h -DMOZ_ENABLE_GTK2 -DMOZ_PLUGINS -DMOZ_XPFE_COMPONENTS -DMOZ_XPINSTALL -DMOZ_JSDEBUGGER -DMOZ_PREF_EXTENSIONS -DMOZ_AUTH_EXTENSION -DMOZ_PERMISSIONS -DMOZ_UNIVERSALCHARDET -DMOZ_FILEVIEW -DMOZ_ENABLE_POSTSCRIPT -DMOZ_SPELLCHECK -DMOZ_ZIPWRITER -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -D_IMPL_NS_COM -D_IMPL_NS_STRINGAPI -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET  -DIMPL_XREAPI -I../../extensions/java/xpcom/src -I"/opt/sun-jdk-1.6.0.15/include"  -I"/opt/sun-jdk-1.6.0.15/include"/linux -I../../intl/unicharutil/util -I../../config -I../../widget/src/windows -I../../widget/src/build  -I. -I. -I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include/xulapp -I../../dist/include/uconv -I../../dist/include/unicharutil -I../../dist/include/rdf -I../../dist/include/rdfutil -I../../dist/include   -I../../dist/include/libxul -I/usr/include/nspr       -fPIC   -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 -pipe -march=native -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions    -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsRDFResource.pp nsRDFResource.cpp
rm -f libxul.so                                                                   
x86_64-pc-linux-gnu-g++  -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 -pipe -march=native -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fPIC -shared -Wl,-z,defs -Wl,-h,libxul.so -o libxul.so  nsStaticXULComponents.o nsUnicharUtils.o nsCompressedCharMap.o nsBidiUtils.o nsRDFResource.o     -lpthread -Wl,-O1 -L/usr/lib64/nspr  -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  -Wl,--whole-archive ../../embedding/browser/gtk/src/libgtkembedmoz.a ../../toolkit/xre/libxulapp_s.a  ../../staticlib/components/libxpconnect.a ../../staticlib/components/libnecko.a ../../staticlib/components/libuconv.a ../../staticlib/components/libi18n.a ../../staticlib/components/libchardet.a ../../staticlib/components/libjar50.a ../../staticlib/components/libpref.a ../../staticlib/components/libcaps.a ../../staticlib/components/libhtmlpars.a ../../staticlib/components/libimglib2.a ../../staticlib/components/libgklayout.a ../../staticlib/components/libdocshell.a ../../staticlib/components/libembedcomponents.a ../../staticlib/components/libwebbrwsr.a ../../staticlib/components/libnsappshell.a ../../staticlib/components/libtxmgr.a ../../staticlib/components/libchrome.a ../../staticlib/components/libcommandlines.a ../../staticlib/components/libtoolkitcomps.a ../../staticlib/components/libpipboot.a ../../staticlib/components/libpipnss.a ../../staticlib/components/libgkplugin.a ../../staticlib/components/libmozfind.a ../../staticlib/components/libappcomps.a ../../staticlib/components/libunixproxy.a ../../staticlib/components/libxpinstall.a ../../staticlib/components/libjsd.a ../../staticlib/components/libautoconfig.a ../../staticlib/components/libauth.a ../../staticlib/components/libcookie.a ../../staticlib/components/libpermissions.a ../../staticlib/components/libuniversalchardet.a ../../staticlib/components/libcomposer.a ../../staticlib/components/librdf.a ../../staticlib/components/libwindowds.a ../../staticlib/components/libintlapp.a ../../staticlib/components/libfileview.a ../../staticlib/components/libstoragecomps.a ../../staticlib/components/libplaces.a ../../staticlib/components/libtkautocomplete.a ../../staticlib/components/libsatchel.a ../../staticlib/components/libpippki.a ../../staticlib/components/libucvmath.a ../../staticlib/components/libwidget_gtk2.a ../../staticlib/components/libsystem-pref.a ../../staticlib/components/libgkgfxthebes.a ../../staticlib/components/liboji.a ../../staticlib/components/libaccessibility.a ../../staticlib/components/libremoteservice.a ../../staticlib/components/libspellchecker.a ../../staticlib/components/libzipwriter.a ../../staticlib/libxpcom_core.a ../../staticlib/libucvutil_s.a ../../staticlib/libgkgfx.a ../../staticlib/libgfxshared_s.a ../../staticlib/libmozreg_s.a ../../staticlib/libmorkreader_s.a ../../staticlib/libgtkxtbin.a ../../staticlib/libgfxpsshar.a ../../staticlib/libthebes.a ../../staticlib/libjsj.a  ../../extensions/java/xpcom/src/libjavaxpcom.a -Wl,--no-whole-archive -L../../dist/lib -lsqlite3 -L../../dist/bin -L../../dist/lib  -L../../dist/bin -L../../dist/lib -ljpeg  -L../../modules/libimg/png -lmozpng ../../gfx/qcms/libmozqcms.a -L/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/dist/bin -lmozjs -Wl,-R/usr/lib64 -L/usr/lib64 -lssl3 -lsmime3 -lnss3 -lnssutil3 -lcrmf -lcairo -lfreetype -lfontconfig    -L/usr/lib64 -lXrender -lcairo -lX11    -lz  -lhunspell-1.2   -Wl,-R/usr/lib64 -L/usr/lib64 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0   -L/usr/lib64 -lX11  -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt -lgthread-2.0 -lfreetype -lz  -lstartup-notification-1   -lasound -ldl -lm                         
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl3                                                                   
collect2: ld returned 1 exit status                                               
gmake[3]: *** [libxul.so] Error 1                                                 
gmake[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.2-r2/work/mozilla-1.9.1/toolkit/library'                                                     
gmake[2]: *** [libs_tier_toolkit] 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 5665:  Called die                                
 * The specific snippet of code:                                                  
 *       emake || die "failed to build"                                           
 *  The die message:                                                              
 *   failed to build                                                              
 *                                                                                
 * 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/net-libs/xulrunner-1.9.1.2-r2/temp/build.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.15"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
Comment 60 Jory A. Pratt gentoo-dev 2009-09-11 20:21:39 UTC
*** Bug 284272 has been marked as a duplicate of this bug. ***
Comment 61 Jory A. Pratt gentoo-dev 2009-09-23 12:30:12 UTC
Have you tested if this is still valid for you with nss-3.12.4 in the tree? If not please do and post results.
Comment 62 Jory A. Pratt gentoo-dev 2009-11-04 00:17:49 UTC
(In reply to comment #61)
> Have you tested if this is still valid for you with nss-3.12.4 in the tree? If
> not please do and post results.
> 

I have failed to hear from you on weather this is still valid or not. I am closing needinfo. Please reopen if problem persists.
Comment 63 aidar 2009-11-04 00:24:37 UTC
hello,

I just resolved the issue today. How ?
I had a file in /etc/env.d that was littering the LIBDIR variable. By looking at the nss-config and nspr-config files, I figured out that if I remove that variable then the xulrunner and mozilla-firefox packages would emerge without problem.

thanks !