/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
This issue has nothing to do with gcc-4, so adjusted the summary, assiging to mozilla herd.
same thing happens with the xulrunner-1.9.1.1-r2 !
(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.
Actually first rebuild your systems nspr .. revdep-rebuild is your friend.
MAKEOPTS and revdep-rebuild is not an issue.
Then please rebuild nspr-4.8 your failing to link to the appropriate lib.
sorry Jory, I should have mentioned that rebuilding of the nspr doesn't help either...
(In reply to comment #7) > sorry Jory, I should have mentioned that rebuilding of the nspr doesn't help > either... > "locate libplds4" please
pussy ~ # find / -iname libplds4 pussy ~ # there is no such file then
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
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
Please post /etc/env.d/08nsp, /etc/env.d/08nss also run env-update then post /etc/ld.so.conf please.
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 ~ #
Now that we know your enviroment is completely sane as far as nspr is concerned please attempt your emerge of xulrunner again.
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:
Created attachment 200221 [details] xulrunner build.log xulrunner build.log
Created attachment 200223 [details] environment environment
(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.
(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.
>> 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...
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.
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.
Please attach config.log it can be found in /var/tmp/portage/net-libs/xulrunner-1.9.1.2/work/mozilla-1.9.1/
Created attachment 200257 [details] config.log
-DARON_WAS_HERE
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.
Created attachment 200657 [details] config.status Non of the gecko browsers get compiled. I don't know why really.
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.
>>> 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.
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.
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
Go ahead and attach nspr-config location is /usr/bin.
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
Created attachment 200659 [details] nspr-config
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.
you know, "worksforme" is rather not making sense to me. What do I do so that I can compile and emerge this web browser ?
(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.
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.
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 ?
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'.
Created attachment 203601 [details] xulrunner build.log
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
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
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
(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.
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}
(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.
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.
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...
one thing to add - every other ebuild can be emerged. The issues are only with xulrunner/mozilla and so on.
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
copy the append to src_compile() and retest.
the ebuild doesn't contail src_compile(). Nor in main tree nor in the development tree
Created attachment 203745 [details] hack for broken nspr-config You can apply this and test sorry for the delay.
aidar if you could also please post "nspr-config --libdir" would be appreciated.
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
(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.
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 #
<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
*** Bug 284272 has been marked as a duplicate of this bug. ***
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.
(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.
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 !