Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361011 - xulrunner-2.0 fails to link
Summary: xulrunner-2.0 fails to link
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
Depends on:
Reported: 2011-03-28 21:29 UTC by Luca Barbato
Modified: 2011-10-31 21:57 UTC (History)
0 users

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

Mozconfig (.mozconfig,2.62 KB, text/plain)
2011-03-28 21:29 UTC, Luca Barbato
Build log (build.log.xz,167.89 KB, application/octet-stream)
2011-04-11 20:03 UTC, Luca Barbato

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Barbato gentoo-dev 2011-03-28 21:29:54 UTC
Created attachment 267593 [details]

Apparently libxul doesn't add -lcairo when building the plugin container.

x86_64-pc-linux-gnu-g++ -o plugin-container -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pipe -march=core2 -g -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer -finline-limit=50  MozillaRuntimeMain.o   -lpthread -Wl,--as-needed  -Wl,-rpath-link,/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0/dist/bin -Wl,-rpath-link,/usr/lib  -L../../dist/bin -L../../dist/lib -L/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0/dist/bin -lxpcom -lmozalloc -lxul  -Wl,-R/usr/lib64 -L/usr/lib64 -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -Wl,--whole-archive -ljemalloc -Wl,--no-whole-archive -rdynamic -Wl,--version-script -Wl,../../build/unix/gnu-ld-scripts/jemalloc-standalone-linkage-version-script -ldl     
../../dist/bin/ undefined reference to `cairo_tee_surface_index'
../../dist/bin/ undefined reference to `cairo_tee_surface_add'
../../dist/bin/ undefined reference to `cairo_tee_surface_create'
Comment 1 Rafał Mużyło 2011-03-28 22:33:21 UTC
No, that seems to look more like a too old cairo.
What's your version of it ?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-29 23:32:46 UTC
Also, post your `emerge --info' output and attach the entire build log.
Comment 3 Luca Barbato gentoo-dev 2011-04-11 20:03:02 UTC
Created attachment 269525 [details]
Build log

cairo is the latest released. You might notice that the problem is that it isn't linked even if directly used.
Comment 4 Luca Barbato gentoo-dev 2011-04-11 20:33:21 UTC
Portage (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 2.6.38-gentoo x86_64)
System uname: Linux-2.6.38-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9500_@_2.60GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 11 Apr 2011 12:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.6.6
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.2, 4.4.4-r1, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.34 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O3 -frename-registers -pipe -march=core2 -g"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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="-O3 -frename-registers -pipe -march=core2 -g"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms sign splitdebug unknown-features-warn unmerge-logs unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/lu_zero /var/lib/layman/enlightenment /var/lib/layman/mozilla /var/lib/layman/iElectric /var/lib/layman/x11 /var/lib/layman/gnome /var/lib/layman/multimedia"
USE="X a52 aac acl acpi additions aio alsa amd64 amrnb amrwb apng autoid autotrace avahi berkdb bluetooth bonjour branding bzip2 cairo caps cddb cdparanoia cdr cjk cli consolekit contrast cracklib crypt cscope cups cupsddk curl cxx dbus dc1394 device-mapper dia drbd dri dts dvb dvd dvdr eapi3-draft editor egl emboss encode exchange exif expat extensions extras faac faad ffmpeg firefox flac fontconfig fontforge fortran fuse gadu gcj gdbm gdu gif gimp git glade gles glib glitz gpm gtk hotpixels howl-compat hyphenation iconv ieee1394 inkjar inotify iproute2 ipv6 italk itrax jabber jack jingle jpeg jpeg2k kdeeablefinal kdehiddenvisibility kdrive kqemu kvm laptop lcms lensfun libass libnotify libsamplerate libyaml lightning live llvm lvm lzma lzo mad md3sum mdnsresponder-compat mikmod mmx mmxext mng modules mozdevelop mp3 mp4 mpeg mudflap multilib musepack mysql ncurses network nls nptl nptlonly nsplugin nut ogg opengl openmp openvpn pam pango parted pcre pdf perl plotutils png policykit postscript ppds pppd pulseaudio python qemu qt3support rar raw readline replytolist restrict-javascript rle rtmp rtsp schroedinger sctp sdl secure-delete server session shout smp soup speex spell sqlite sqlite3 srv sse sse2 ssl ssse3 stream subversion svg synaptics sysfs syslog system-ffmpeg system-wide tcmalloc tcpd tftp theora threads tiff timidity tk tools trace truetype udev ukit unicode upnp usb v4l v4l2 vde vdpau vim vim-pager vim-syntax vorbis vpx webkit wmp x264 xcb xcomposite xhtml xml xorg xosd xpm xslt xulrunner xv yahoo zeroconf zlib" 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 cgi cgid 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" APACHE2_MPMS="event" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm x86_64 i386 ppc ppc64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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" 
Comment 5 Rafał Mużyło 2011-04-15 16:51:40 UTC
Well, there's something odd here - the command that builds libxul includes '-lcairo' and configure does detect cairo with tee, yet during that build the symbols seem missing.

Nothing obvious in C{XX}FLAGS either.

Any chance you've got a stale cairo laying around ?
Comment 6 Jory A. Pratt gentoo-dev 2011-10-31 21:57:13 UTC
If any can be duplicated or reproduce feel free to update summary and reopen please.