Summary: | net-libs/libproxy-0.4.6: failing to link due to mozjs missing | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | DaggyStyle <daggs> |
Component: | [OLD] Library | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | canarauc, che, chrsclmn, Martin.vGagern, ooblick, polynomial-c, ssuominen |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://code.google.com/p/libproxy/issues/detail?id=145 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
libproxy-xul-order.patch build.log with CMAKE_VERBOSE=1 Corrrect fix to the reported issue |
Description
DaggyStyle
2010-09-30 06:55:47 UTC
Created attachment 249049 [details]
build.log
looks like a duplicate... Add a line to /etc/portage/package.use, "net-libs/libproxy -xulrunner" and it should link without problems. Created attachment 249054 [details, diff] libproxy-xul-order.patch This patch should fix your issue, but, before applying it, I would prefer to clarify why some people still need this while, for example, it works fine on my systems. libproxy-0.4.2.ebuild states: # Stop using xulrunner 1.8 when both are installed But 1.9 is the only one in the tree since some time, I have also read bug #320437 without knowing where is exactly the problem on systems with only xulrunner-1.9 it does not work here with the patch in Comment #4 : [ebuild U ] net-libs/libproxy-0.4.6 [0.4.2] USE="perl python xulrunner -gnome -kde -mono% -networkmanager -test% -vala -webkit (-debug%)" 0 kB [0=>1] * Applying libproxy-0.4.2-glibc212.patch ... [ ok ] * Applying libproxy-xul-order.patch ... [ ok ] [100%] Building C object bindings/perl/src/CMakeFiles/PLlibproxy.dir/Libproxy.c.o Linking C shared library ../../../perl/blib/arch/auto/Net/Libproxy.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmozjs collect2: ld returned 1 exit status # emerge --info Portage 2.1.9.12 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35.6n2 x86_64) ================================================================= System uname: Linux-2.6.35.6n2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.0.1 Timestamp of tree: Thu, 30 Sep 2010 07:15:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [enabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.67 sys-devel/automake: 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.35 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -m3dnow -mmmx -msse -msse2 -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=athlon64 -O2 -pipe -m3dnow -mmmx -msse -msse2 -msse3" DISTDIR="/mnt/data/gentoo/distfiles" FEATURES="assume-digests binpkg-logs distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans" GENTOO_MIRRORS="rsync://server/distfiles rsync://amd2000/distfiles ftp://mirror.qubenet.net/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.muntinternet.net/pub/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirror.netcologne.de/gentoo/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://de-mirror.org/distro/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://de-mirror.org/distro/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ http://gentoo.tiscali.nl/ http://mirror.qubenet.net/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.netcologne.de/gentoo/" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j7" PKGDIR="/mnt/data/gentoo/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/portage_overlay" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acl acpi alsa amd64 berkdb bzip2 cairo cdparanoia cli cracklib crypt cups custom-cflags custom-cpuopts custom-cxxflags custom-optimization cxx dbus dri dvb dvd dvdr encode exif fam flac fortran gdbm glitz gnutls gpm hal iconv ilbc imagemagick imlib ipv6 jpeg kpathsea lame lcms libsamplerate lm_sensors lzo mad mmx mmxext modules mp3 mudflap multilib ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre pdf perl png pppd python qt3support qt4 readline reflection sdl semantic-desktop session smp speex spell sse sse2 sse3 ssl svg sysfs tcpd theora threads tiff truetype unicode usb vorbis wmf x264 xcb xcomposite xine xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel intel8x0" 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="alias auth_basic authn_file authz_groupfile authz_host authz_user autoindex deflate dir filter ident log_config logio mime status" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="dibusb-usb1" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS In the build.log, it's finding the correct one: mozilla-js -- checking for one of the modules 'xulrunner-js;firefox-js;mozilla-js;seamonkey-js' -- found mozilla-js, version 1.9.2.9 And local testing (this is all expected output): $ gcc -lmozjs /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmozjs collect2: ld returned 1 exit status $ gcc -lmozjs `pkg-config --libs mozilla-js` /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: ld returned 1 exit status So seems it's not about the ordering, like the previous issue was. It's more like an issue the required -L flags never get passed from libproxy's build system to the linker. I suggest attaching `CMAKE_VERBOSE=1 emerge -v libproxy` build.log instead... Created attachment 249097 [details]
build.log with CMAKE_VERBOSE=1
I've got this exact same issue too on my ~x86 laptop + 30 Sep 2010; Samuli Suominen <ssuominen@gentoo.org> libproxy-0.4.6.ebuild, + +files/libproxy-0.4.6-mozjs-link_directory.patch: + Fix missing link directories for mozjs wrt #339216 by "DaggyStyle". *** Bug 339286 has been marked as a duplicate of this bug. *** Created attachment 250377 [details, diff]
Corrrect fix to the reported issue
Please stop using the old patch and use the correct one instead. This issue as been fixed upstream and will be delivered in next version (0.4.7).
Reopening because of comment #11 + 28 Oct 2010; Samuli Suominen <ssuominen@gentoo.org> + files/libproxy-0.4.6-mozjs-link_directory.patch: + Update to upstream patch wrt #339216 by Nicolas Dufresne. (In reply to comment #3) > Add a line to /etc/portage/package.use, "net-libs/libproxy -xulrunner" and it > should link without problems. It works. (In reply to comment #14) > (In reply to comment #3) > > Add a line to /etc/portage/package.use, "net-libs/libproxy -xulrunner" and it > > should link without problems. > > It works. Err... We use xulrunner:2.0 in ~arch now, and xulrunner:1.8 isn't in Portage anymore. I'm not sure what you just "worked around", but it shouldn't have been this bug anymore... Here's an idea: # emerge --sync # emerge -C xulrunner:1.8 (In reply to comment #15) > Err... We use xulrunner:2.0 in ~arch now, and xulrunner:1.8 isn't in Portage Sorry, I meant xulrunner-2.0 not xulrunner:2.0 in above line. |