Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355919 - net-libs/xulrunner > 1.9.2.8 cannot be compiled. problem on linking
Summary: net-libs/xulrunner > 1.9.2.8 cannot be compiled. problem on linking
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-21 22:36 UTC by darkmanPPT
Modified: 2012-01-28 13:57 UTC (History)
2 users (show)

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


Attachments
build.log of the compilation (build.log,595.19 KB, text/plain)
2011-02-21 22:39 UTC, darkmanPPT
Details
build log of xulrunner 2.0 (build.log.gz,111.65 KB, application/gzip)
2011-03-24 09:41 UTC, darkmanPPT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkmanPPT 2011-02-21 22:36:30 UTC
I try to update firefox and requires a newer version of xulrunner. Now i have net-libs/xulrunner-1.9.2.8 and it works and it compiles.

I'm not able to compile all the newer versions. Same error. exactly the same error for every version.

Reproducible: Always

Steps to Reproduce:
1.emerge -uDN xulrunner
2.
3.

Actual Results:  
the package doesn't compile:

......
x86_64-pc-linux-gnu-g++ -o message_pump_libevent.o -c  -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXCLUDE_SKIA_DEPENDENCIES -DCHROMIUM_MOZILLA_BUILD  -DOS_LINUX=1 -DOS_POSIX=1  -I../../dist -I../../ipc/chromium/src -I../../ipc/glue -I../../ipc/ipdl/_ipdlheaders  -I. -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -I/usr/include   -fPIC  -march=native -pipe -m3dnow -msse -msse2 -msse3 -mmmx -I/usr/include -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 -march=native -pipe -Wno-return-type -w -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -I/usr/include/gtk-unix-print-2.0   -O2  -march=native -pipe -m3dnow -msse -msse2 -msse3 -mmmx  -I/usr/include -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/message_pump_libevent.pp ./src/base/message_pump_libevent.cc
./src/base/message_pump_libevent.cc: In static member function 'static void base::MessagePumpLibevent::OnWakeup(int, short int, void*)':
./src/base/message_pump_libevent.cc:94: error: 'event_base_loopbreak' was not declared in this scope
./src/base/message_pump_libevent.cc: In constructor 'base::MessagePumpLibevent::MessagePumpLibevent()':
./src/base/message_pump_libevent.cc:100: error: 'event_base_new' was not declared in this scope
./src/base/message_pump_libevent.cc: In member function 'bool base::MessagePumpLibevent::Init()':
./src/base/message_pump_libevent.cc:127: error: 'event_base_set' was not declared in this scope
./src/base/message_pump_libevent.cc: In destructor 'virtual base::MessagePumpLibevent::~MessagePumpLibevent()':
./src/base/message_pump_libevent.cc:143: error: 'event_base_free' was not declared in this scope
./src/base/message_pump_libevent.cc: In member function 'bool base::MessagePumpLibevent::WatchFileDescriptor(int, bool, base::MessagePumpLibevent::Mode, base::MessagePumpLibevent::FileDescriptorWatcher*, base::MessagePumpLibevent::Watcher*)':
./src/base/message_pump_libevent.cc:181: error: 'event_base_set' was not declared in this scope
./src/base/message_pump_libevent.cc: In member function 'bool base::MessagePumpLibevent::CatchSignal(int, base::MessagePumpLibevent::SignalEvent*, base::MessagePumpLibevent::SignalWatcher*)':
./src/base/message_pump_libevent.cc:276: error: 'event_base_set' was not declared in this scope
./src/base/message_pump_libevent.cc: In member function 'virtual void base::MessagePumpLibevent::Run(base::MessagePump::Delegate*)':
./src/base/message_pump_libevent.cc:330: error: 'event_base_loop' was not declared in this scope
./src/base/message_pump_libevent.cc:337: error: 'event_base_loopexit' was not declared in this scope
./src/base/message_pump_libevent.cc:338: error: 'event_base_loop' was not declared in this scope
make[3]: *** [message_pump_libevent.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.13/work/mozilla-1.9.2/ipc/chromium'
make[2]: *** [libs_tier_xpcom] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.13/work/mozilla-1.9.2'
make[1]: *** [tier_xpcom] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.13/work/mozilla-1.9.2'
make: *** [default] Error 2
emake failed
 * ERROR: net-libs/xulrunner-1.9.2.13 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 7650:  Called _eapi2_src_compile
 *     ebuild.sh, line  654:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"


Expected Results:  
well, obviously, i expect to compile and update xulrunner

GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.24"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
-----------------------------------------------------
emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-zen16 x86_64)
=================================================================
System uname: Linux-2.6.36-zen16-x86_64-AMD_Athlon-tm-X2_DualCore_QL-64-with-gentoo-2.0.1
Timestamp of tree: Sun, 20 Feb 2011 11:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  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.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -m3dnow -msse -msse2 -msse3 -mmmx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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"
CPPFLAGS="-O2 -march=native -pipe -m3dnow -msse -msse2 -msse3 -mmmx"
CXXFLAGS="-O2 -march=native -pipe -m3dnow -msse -msse2 -msse3 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="it"
MAKEOPTS="-j2"
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="/var/lib/layman/kde /usr/local/portage/layman/sunrise /usr/local/portage/layman/pro-audio /usr/local/portage/layman/zugaina /usr/local/portage/layman/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi alsa amd64 apache2 berkdb branding bzip2 cairo caps cdr cgi cli consolekit cpudetection cracklib crypt cups custom-cflags cxx dbus dga dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac fortran gdbm gdu gif glitz gpm gstreamer gtk iconv ipv6 jack java jfs jpeg jpeg2k kde kpathsea ladspa laptop lash latex lcms ldap libnotify libsamplerate mad mikmod mmx mmxext mng modules motif mp3 mp4 mpeg mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin ntp ogg openal openexr opengl openmp pam pango pcre pdf perl phonon png policykit ppds pppd profile python qt3support qt4 quicktime readline rss sdl semantic-desktop session speex spell sqlite sse sse2 ssl startup-notification static-libs svg sysfs tcpd theora threads tiff timidity tk truetype udev unicode usb v4l v4l2 vorbis wicd wifi x264 xcb xcomposite xext xml xorg xulrunner xv xvid zip 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" 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon fglrx" 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:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
---------------------------------------------------

cat /var/tmp/portage/net-libs/xulrunner-1.9.2.13/temp/build.log

....
    --with-system-nss               mozilla.org default
    --with-nss-prefix=/usr          mozilla.org default
    --x-includes=/usr/include       mozilla.org default
    --x-libraries=/usr/lib64        mozilla.org default
    --with-system-bz2               mozilla.org default
    --with-system-libevent=/usr     mozilla.org default
    --enable-ipc                    +ipc
    --enable-libnotify              +libnotify
    --enable-javaxpcom              +java
....

and obviously the libevent library is not in the right path.
Comment 1 darkmanPPT 2011-02-21 22:39:01 UTC
Created attachment 263377 [details]
build.log of the compilation
Comment 2 Rafał Mużyło 2011-02-21 23:32:24 UTC
Actually it is: it asks for a prefix, not a path to the header.
What's your version of libevent ?
Comment 3 darkmanPPT 2011-02-22 08:41:02 UTC
(In reply to comment #2)
> Actually it is: it asks for a prefix, not a path to the header.
> What's your version of libevent ?
> 

dev-libs/libevent-1.4.14b-r1 that is ~ in portage
the problem remains also with versions 1.4.14b and 1.4.13 that are stable in portage.
same errors
Comment 4 darkmanPPT 2011-02-23 00:00:37 UTC
I try to compile the package without the flag "ipc".

it works.
But... as explained in http://www.gentoo.org/dyn/use-index.xml#net-libs

the flag "ipc" is: "Use inter-process communication between tabs and plugins. Allows for greater stability in case of plugin crashes"

and obviously is something that i would like to activate.
Comment 5 Jory A. Pratt gentoo-dev 2011-03-14 19:25:56 UTC
(In reply to comment #4)
> I try to compile the package without the flag "ipc".
> 
> it works.
> But... as explained in http://www.gentoo.org/dyn/use-index.xml#net-libs
> 
> the flag "ipc" is: "Use inter-process communication between tabs and plugins.
> Allows for greater stability in case of plugin crashes"
> 
> and obviously is something that i would like to activate.

Please post the results of the following command 

echo "int main() { return 0; }" | gcc -march=native -v -E - 2>&1 | grep march
Comment 6 darkmanPPT 2011-03-15 09:44:49 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I try to compile the package without the flag "ipc".
> > 
> > it works.
> > But... as explained in http://www.gentoo.org/dyn/use-index.xml#net-libs
> > 
> > the flag "ipc" is: "Use inter-process communication between tabs and plugins.
> > Allows for greater stability in case of plugin crashes"
> > 
> > and obviously is something that i would like to activate.
> 
> Please post the results of the following command 
> 
> echo "int main() { return 0; }" | gcc -march=native -v -E - 2>&1 | grep march

 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=k8
Comment 7 darkmanPPT 2011-03-24 09:41:42 UTC
Created attachment 267059 [details]
build log of xulrunner 2.0

xulrunner 2.0 with the following flags: USE="alsa crashreporter%* custom-optimization dbus libnotify startup-notification system-sqlite webm%* wifi -debug -ipc (-gnome%) (-java%*)"
Comment 8 darkmanPPT 2011-03-24 09:44:10 UTC
maybe something went wrong with the preovious post. just to say that i have the same erroro with xulrunner 2.0 even if i have the flag "-ipc".
It seems that the "ipc" is not truly deactivated.
Comment 9 Jory A. Pratt gentoo-dev 2011-05-03 01:57:52 UTC
(In reply to comment #8)
> maybe something went wrong with the preovious post. just to say that i have the
> same erroro with xulrunner 2.0 even if i have the flag "-ipc".
> It seems that the "ipc" is not truly deactivated.

After reviewing the file in question from build.log I see no reason for the failure unless you are using ccache or possibly distcc.

#include "third_party/libevent/event.h" which  is created properly by
mkdir -p ../../dist/third_party/libevent
echo "#include <event.h>" > ../../dist/third_party/libevent/event.h

are you sure that /usr/include/event.h is not corrupt?
Comment 10 darkmanPPT 2011-05-03 20:21:47 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > maybe something went wrong with the preovious post. just to say that i have the
> > same erroro with xulrunner 2.0 even if i have the flag "-ipc".
> > It seems that the "ipc" is not truly deactivated.
> 
> After reviewing the file in question from build.log I see no reason for the
> failure unless you are using ccache or possibly distcc.
> 
> #include "third_party/libevent/event.h" which  is created properly by
> mkdir -p ../../dist/third_party/libevent
> echo "#include <event.h>" > ../../dist/third_party/libevent/event.h
> 
> are you sure that /usr/include/event.h is not corrupt?

well, i think that /usr/include/event.h is not corrupted just because i remove it (remove libevent) and reinstall it.
I don't use neither distcc nor ccache.

Boh, i'll try again to manually remove event.h and reinstall it.
(just to confirm this behaviour). If i will not answer again it means that nothing changes.
Comment 11 Jory A. Pratt gentoo-dev 2012-01-28 13:57:17 UTC
xulrunner is in stages of being preped for removal, if you can produce this exact failure with fx/tb stable please open a bug report.
Comment 12 Jory A. Pratt gentoo-dev 2012-01-28 13:57:55 UTC
closing test requested.