Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327067 - net-libs/xulrunner-2.0_beta2_pre: ebuild fails with "'XRE_InitEmbedding' was not declared in this scope"
Summary: net-libs/xulrunner-2.0_beta2_pre: ebuild fails with "'XRE_InitEmbedding' was ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 01:05 UTC by vsync
Modified: 2010-07-26 04:25 UTC (History)
8 users (show)

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


Attachments
xulrunner-2.0_beta2-java-fixup.diff (xulrunner-2.0_beta2-java-fixup.diff,575 bytes, patch)
2010-07-19 03:56 UTC, Jory A. Pratt
Details | Diff
attached /var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/xulrunner-2.0_beta2-java-fixup.diff-14279.out (xulrunner-2.0_beta2-java-fixup.diff-14279.out,3.28 KB, text/plain)
2010-07-20 01:18 UTC, Lance Lassetter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vsync 2010-07-06 01:05:41 UTC
I tried to emerge www-client/mozilla-firefox-4.0_beta2_pre from the mozilla layman overlay which has a dependency on net-libs/xulrunner-2.0_beta2_pre.  It runs for a while then I get the dreaded

 * ERROR: net-libs/xulrunner-2.0_beta2_pre failed:
 *   emake failed


Reproducible: Always

Steps to Reproduce:
1. add mozilla layman overlay
2. unmask and enable www-client/mozilla-firefox-4.0_beta2_pre and net-libs/xulrunner-2.0_beta2_pre
3. emerge mozilla-firefox

Actual Results:  
It runs for a long time then bombs with the following:

x86_64-pc-linux-gnu-g++ -o nsJavaWrapper.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I"/opt/sun-jdk-1.6.0.20/include" -I"/opt/sun-jdk-1.6.0.20/include"/linux -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -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 -march=amdfam10 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer    -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsJavaWrapper.pp nsJavaWrapper.cpp
nsJavaXPTCStub.cpp
x86_64-pc-linux-gnu-g++ -o nsJavaXPTCStub.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I"/opt/sun-jdk-1.6.0.20/include" -I"/opt/sun-jdk-1.6.0.20/include"/linux -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -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 -march=amdfam10 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer    -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsJavaXPTCStub.pp nsJavaXPTCStub.cpp
nsJavaInterfaces.cpp: In function 'nsresult InitEmbedding_Impl(JNIEnv*, _jobject*, _jobject*, _jobject*)':
nsJavaInterfaces.cpp:95: error: 'XRE_InitEmbedding' was not declared in this scope
nsJavaInterfaces.cpp: In function '_jobject* Java_org_mozilla_xpcom_internal_XPCOMImpl_getComponentManager(JNIEnv*, _jobject*)':
nsJavaInterfaces.cpp:238: error: incomplete type 'nsIComponentManager' used in nested name specifier
nsJavaInterfaces.cpp:238: error: expected primary-expression before 'int'
nsJavaInterfaces.cpp:238: error: expected ')' before 'int'
make[3]: *** [nsJavaInterfaces.o] Error 1
make[3]: *** Waiting for unfinished jobs....
nsJavaXPTCStubWeakRef.cpp
x86_64-pc-linux-gnu-g++ -o nsJavaXPTCStubWeakRef.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I"/opt/sun-jdk-1.6.0.20/include" -I"/opt/sun-jdk-1.6.0.20/include"/linux -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -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 -march=amdfam10 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer    -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsJavaXPTCStubWeakRef.pp nsJavaXPTCStubWeakRef.cpp
make[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre/work/mozilla-central/extensions/java/xpcom/src'
make[2]: *** [libs_tier_platform] Error 2                       
make[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre/work/mozilla-central'
make[1]: *** [tier_platform] Error 2                            
make[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre/work/mozilla-central'
make: *** [default] Error 2                                     


Expected Results:  
successful build

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.30-gentoo-r5-th0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r5-th0-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-1.12.13
Timestamp of tree: Mon, 05 Jul 2010 21:45:03 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -combine"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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=amdfam10 -O2 -pipe -combine"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/ http://www.gtlib.gatech.edu/pub/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j5"
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/xemacs /var/lib/layman/lisp /var/lib/layman/sunrise /var/lib/layman/mozilla /var/lib/layman"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acl alsa amd64 audacious berkdb bittorrent bonjour bzip2 cli cracklib crypt cups cxx doc dri esd finger fontconfig fortran ftp gdbm gif gnome gnustep gnutls gopher gpm gtk guile iconv imlib jadetex javascript jpeg kpathsea latex maildir mailwrapper mbox mmap mmx mmxext modules mp3 msn mudflap mule multilib multiuser ncurses nethack nntp nptl nptlonly offensive openmp pam pcre perl png postgres pppd python quotes readline reflection sasl session spl sse sse2 sse3 sse4a ssl sysfs tcpd tetex threadsafe tiff timidity truetype unicode wma xcomposite xface xinerama xorg xpm xrandr xscreensaver xulrunner zlib" ALSA_CARDS="usb-audio snd-hda-intel" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon ati radeonhd" 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, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jory A. Pratt gentoo-dev 2010-07-06 03:12:32 UTC
Please do not change the severity on a bug report if you do not understand what you are doing. This is p.masked in the overlay, not officially support. I am aware that java is busted and will work on it as time permits. Disable java useflag if you want/need to test firefox-4 that bad.
Comment 2 rob shelton 2010-07-10 05:16:52 UTC
Whilst I can confirm both the "bug" and the solution (and thanks for your efforts in bringing us this), I also follow ArchLinux AUR (don't use it, Gentoo only), but as they compile programs from source they often have solutions/patches.

Their firefox-4.0beta2 (or equivalent) does not seem to have this problem.

http://aur.archlinux.org/packages.php?ID=22919

Will keep looking and checking. As I can compilte xulrunner in about 5 minutes, am happy to test anything, as doesn't take a lot of time.
Comment 3 fkhp 2010-07-17 00:42:48 UTC
same problem for net-libs/xulrunner-2.0_beta2_pre-r1::mozilla:

x86_64-pc-linux-gnu-g++ -o nsJavaXPTCStub.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I"/opt/sun-jdk-1.6.0.21/include" -I"/opt/sun-jdk-1.6.0.21/include"/linux -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -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 -mtune=core2 -march=core2 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsJavaXPTCStub.pp nsJavaXPTCStub.cpp
nsJavaInterfaces.cpp: In function 'nsresult InitEmbedding_Impl(JNIEnv*, _jobject*, _jobject*, _jobject*)':
nsJavaInterfaces.cpp:95:62: error: 'XRE_InitEmbedding' was not declared in this scope
nsJavaInterfaces.cpp: In function '_jobject* Java_org_mozilla_xpcom_internal_XPCOMImpl_getComponentManager(JNIEnv*, _jobject*)':
nsJavaInterfaces.cpp:238:48: error: incomplete type 'nsIComponentManager' used in nested name specifier
nsJavaInterfaces.cpp:238:83: error: expected primary-expression before 'int'
nsJavaInterfaces.cpp:238:83: error: expected ')' before 'int'
make[3]: *** [nsJavaInterfaces.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta2_pre-r1/work/mozilla-central/extensions/java/xpcom/src'
make[2]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta2_pre-r1/work/mozilla-central'
make[1]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta2_pre-r1/work/mozilla-central'
make[2]: *** [libs_tier_platform] Error 2
make[1]: *** [tier_platform] Error 2
make: *** [default] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in net-libs/xulrunner-2.0_beta2_pre-r1::mozilla:
Comment 4 Michael Gaber 2010-07-19 02:42:52 UTC
and the same here with r2
Comment 5 Jory A. Pratt gentoo-dev 2010-07-19 02:48:54 UTC
(In reply to comment #4)
> and the same here with r2
> 

I am well aware of the problem no need for anyone else to post. I will work on it as time permits.
Comment 6 Jory A. Pratt gentoo-dev 2010-07-19 03:56:05 UTC
Created attachment 239335 [details, diff]
xulrunner-2.0_beta2-java-fixup.diff

If someone could please test, and report your results would be appreciated.
Comment 7 Lance Lassetter 2010-07-20 01:15:40 UTC
tested.  this is what i got:

# ebuild xulrunner-2.0_beta2_pre-r2.ebuild digest 
 * Applying xulrunner-2.0_beta2-java-fixup.diff ...
 * QA Notice: 'egrep' called in global scope: net-libs/xulrunner-2.0_beta2_pre-r2
 * QA Notice: 'awk' called in global scope: net-libs/xulrunner-2.0_beta2_pre-r2

 * Failed Patch: xulrunner-2.0_beta2-java-fixup.diff !
 *  ( /var/lib/layman/mozilla/net-libs/xulrunner/files/xulrunner-2.0_beta2-java-fixup.diff )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/xulrunner-2.0_beta2-java-fixup.diff-14279.out

 * ERROR: net-libs/xulrunner-2.0_beta2_pre-r2 failed:
 *   Failed Patch: xulrunner-2.0_beta2-java-fixup.diff!
 * 
 * Call stack:
 *                           ebuild.sh, line 1881:  Called source '/var/lib/layman/mozilla/net-libs/xulrunner/xulrunner-2.0_beta2_pre-r2.ebuild'
 *   xulrunner-2.0_beta2_pre-r2.ebuild, line   19:  Called epatch '/var/lib/layman/mozilla/net-libs/xulrunner/files/xulrunner-2.0_beta2-java-fixup.diff'
 *                       eutils.eclass, line  412:  Called die
 * The specific snippet of code:
 *   			die "Failed Patch: ${patchname}!"
 * 
 * If you need support, post the output of 'emerge --info =net-libs/xulrunner-2.0_beta2_pre-r2',
 * the complete build log and the output of 'emerge -pqv =net-libs/xulrunner-2.0_beta2_pre-r2'.
 * This ebuild is from an overlay: '/var/lib/layman/mozilla/'
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/environment'.
 * S: '/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work/xulrunner-2.0_beta2_pre'

attached is the .out file.
Comment 8 Lance Lassetter 2010-07-20 01:18:01 UTC
Created attachment 239481 [details]
attached /var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/xulrunner-2.0_beta2-java-fixup.diff-14279.out

hope this helps.
Comment 9 Jory A. Pratt gentoo-dev 2010-07-20 01:24:13 UTC
(In reply to comment #8)
> Created an attachment (id=239481) [details]
> attached
> /var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/xulrunner-2.0_beta2-java-fixup.diff-14279.out
> 
> hope this helps.
> 
Show me your epatch lines, It appears you forgot to cd ${S} before applying that patch.

Comment 10 Lance Lassetter 2010-07-20 18:56:58 UTC
i just added this one line:

epatch "${FILESDIR}/xulrunner-2.0_beta2-java-fixup.diff"

to the ebuild.
Comment 11 Lance Lassetter 2010-07-20 20:01:12 UTC
the patch applied but didn't work.  i modified the ebuild:

src_unpack() {
    unpack ${A}
    cd "${S}"
    epatch "${FILESDIR}"/xulrunner-2.0_beta2-java-fixup.diff
}

.....


x86_64-pc-linux-gnu-g++ -o nsJavaXPCOMBindingUtils.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I"/opt/sun-jdk-1.6.0.20/include" -I"/opt/sun-jdk-1.6.0.20/include"/linux -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -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 -march=core2 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsJavaXPCOMBindingUtils.pp nsJavaXPCOMBindingUtils.cpp
nsJavaInterfaces.cpp: In function 'nsresult InitEmbedding_Impl(JNIEnv*, _jobject*, _jobject*, _jobject*)':
nsJavaInterfaces.cpp:95: error: 'XRE_InitEmbedding' was not declared in this scope
nsJavaInterfaces.cpp: In function '_jobject* Java_org_mozilla_xpcom_internal_XPCOMImpl_getComponentManager(JNIEnv*, _jobject*)':
nsJavaInterfaces.cpp:238: error: incomplete type 'nsIComponentManager' used in nested name specifier
nsJavaInterfaces.cpp:238: error: expected primary-expression before 'int'
nsJavaInterfaces.cpp:238: error: expected ')' before 'int'
make[3]: *** [nsJavaInterfaces.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work/mozilla-central/extensions/java/xpcom/src'
make[2]: *** [libs_tier_platform] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work/mozilla-central'
make[1]: *** [tier_platform] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work/mozilla-central'
make: *** [default] Error 2
 * ERROR: net-libs/xulrunner-2.0_beta2_pre-r2 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 7438:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =net-libs/xulrunner-2.0_beta2_pre-r2',
 * the complete build log and the output of 'emerge -pqv =net-libs/xulrunner-2.0_beta2_pre-r2'.
 * This ebuild is from an overlay named 'mozilla': '/var/lib/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.20"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/environment'.
 * S: '/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work/mozilla-central'

>>> Failed to emerge net-libs/xulrunner-2.0_beta2_pre-r2, Log file:

>>>  '/var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/temp/build.log'
Comment 12 Lance Lassetter 2010-07-20 20:03:11 UTC
snippet of code where the patch was applied (don't know if the order is relevant):

>>> Unpacking firefox-4.0b2_pre_def9068a4446.source.tar.bz2 to /var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work
 * Applying xulrunner-2.0_beta2-java-fixup.diff ...
  [ ok ]
>>> Source unpacked in /var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work
>>> Preparing source in /var/tmp/portage/net-libs/xulrunner-2.0_beta2_pre-r2/work/mozilla-central ...
 * Applying various patches (bugfixes/updates) ...
Comment 13 fkhp 2010-07-23 02:59:56 UTC
xulrunner-2.0_beta3_pre emake failed the same way, then patch it by hand, and run make by hand again still failed the same way:
=========================================================

x86_64-pc-linux-gnu-g++ -o nsJavaInterfaces.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I"/opt/sun-jdk-1.6.0.21/include" -I"/opt/sun-jdk-1.6.0.21/include"/linux -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -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 -mtune=core2 -march=core2 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsJavaInterfaces.pp nsJavaInterfaces.cpp
nsJavaInterfaces.cpp: In function ‘nsresult InitEmbedding_Impl(JNIEnv*, _jobject*, _jobject*, _jobject*)’:
nsJavaInterfaces.cpp:95:66: error: ‘XRE_InitEmbedding’ was not declared in this scope
nsJavaInterfaces.cpp: In function ‘_jobject* Java_org_mozilla_xpcom_internal_XPCOMImpl_getComponentManager(JNIEnv*, _jobject*)’:
nsJavaInterfaces.cpp:238:47: error: incomplete type ‘nsIComponentManager’ used in nested name specifier
nsJavaInterfaces.cpp:238:47: error: expected primary-expression before ‘int’
nsJavaInterfaces.cpp:238:47: error: expected ‘)’ before ‘int’
make[3]: *** [nsJavaInterfaces.o] Error 1
make[3]: Leaving directory `/dev/shm/tmp/net-libs-xulrunner-2.0_beta3_pre/work/mozilla-central/extensions/java/xpcom/src'
make[2]: *** [libs_tier_platform] Error 2
make[2]: Leaving directory `/dev/shm/tmp/net-libs-xulrunner-2.0_beta3_pre/work/mozilla-central'
make[1]: *** [tier_platform] Error 2
make[1]: Leaving directory `/dev/shm/tmp/net-libs-xulrunner-2.0_beta3_pre/work/mozilla-central'
make: *** [default] Error 2
Comment 14 Lance Lassetter 2010-07-24 02:59:15 UTC
latest pre beta of xulrunner still fails with java use flag:

t/sun-jdk-1.6.0.20/include"/linux -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -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 -march=core2 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsJavaXPTCStub.pp nsJavaXPTCStub.cpp
nsJavaInterfaces.cpp: In function 'nsresult InitEmbedding_Impl(JNIEnv*, _jobject*, _jobject*, _jobject*)':
nsJavaInterfaces.cpp:95: error: 'XRE_InitEmbedding' was not declared in this scope
nsJavaInterfaces.cpp: In function '_jobject* Java_org_mozilla_xpcom_internal_XPCOMImpl_getComponentManager(JNIEnv*, _jobject*)':
nsJavaInterfaces.cpp:238: error: incomplete type 'nsIComponentManager' used in nested name specifier
nsJavaInterfaces.cpp:238: error: expected primary-expression before 'int'
nsJavaInterfaces.cpp:238: error: expected ')' before 'int'
make[3]: *** [nsJavaInterfaces.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta3_pre/work/mozilla-central/extensions/java/xpcom/src'
make[2]: *** [libs_tier_platform] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta3_pre/work/mozilla-central'
make[1]: *** [tier_platform] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0_beta3_pre/work/mozilla-central'
make: *** [default] Error 2
 * ERROR: net-libs/xulrunner-2.0_beta3_pre failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 7438:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =net-libs/xulrunner-2.0_beta3_pre',
 * the complete build log and the output of 'emerge -pqv =net-libs/xulrunner-2.0_beta3_pre'.
 * This ebuild is from an overlay named 'mozilla': '/var/lib/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.20"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/net-libs/xulrunner-2.0_beta3_pre/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-2.0_beta3_pre/temp/environment'.
 * S: '/var/tmp/portage/net-libs/xulrunner-2.0_beta3_pre/work/mozilla-central'

>>> Failed to emerge net-libs/xulrunner-2.0_beta3_pre, Log file:

>>>  '/var/tmp/portage/net-libs/xulrunner-2.0_beta3_pre/temp/build.log'

still willing to test....

ebuild xulrunner-2.0_beta3_pre.ebuild
Comment 15 Jory A. Pratt gentoo-dev 2010-07-26 03:54:47 UTC
Prepare yourselves javaxpcom is going away, no active maintainer and noone wants to step up for it upstream. I will remove javaxpcom support in next revision bump.
Comment 16 Jory A. Pratt gentoo-dev 2010-07-26 04:25:51 UTC
Closing new revision with javaxpcom is in the overlay. If somehow we find someone to take over the code upstream we can bring it back later, but this is very unlikely.