Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310411 - www-client/galeon-2.0.7-r2: mozilla-embed-shell.cpp:65:27: error: nsIJVMManager.h: No such file or directory
Summary: www-client/galeon-2.0.7-r2: mozilla-embed-shell.cpp:65:27: error: nsIJVMManag...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 314025
  Show dependency tree
 
Reported: 2010-03-20 17:37 UTC by Martin Mokrejš
Modified: 2010-05-07 08:48 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,333.46 KB, text/plain)
2010-03-20 17:40 UTC, Martin Mokrejš
Details
galeon-2.0.7-nojavaconsole.patch (galeon-2.0.7-nojavaconsole.patch,1.64 KB, patch)
2010-03-20 17:42 UTC, Hicham HAOUARI
Details | Diff
galeon-2.0.7-r2.ebuild (galeon-2.0.7-r2.ebuild,1.46 KB, text/plain)
2010-03-20 18:06 UTC, Hicham HAOUARI
Details
tarball of patches (galeon-2.0.7-patches.tar.gz,37.49 KB, application/x-compressed-tar)
2010-03-20 18:09 UTC, Hicham HAOUARI
Details
galeon-2.0.7-r2.ebuild (galeon-2.0.7-r2.ebuild,1.46 KB, text/plain)
2010-03-21 17:10 UTC, Hicham HAOUARI
Details
galeon-2.0.7-patches.tar.bz2 (galeon-2.0.7-patches.tar.bz2,32.08 KB, application/x-bzip-compressed-tar)
2010-03-21 17:12 UTC, Hicham HAOUARI
Details
galeon-2.0.7-misc.patch.out (galeon-2.0.7-misc.patch.out,4.20 KB, text/plain)
2010-03-22 22:39 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2010-03-20 17:37:28 UTC
libtool: compile:  i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../utils -I../utils -I../embed -I../bookmarks -I../libegg -I.. -fshort-wchar -I/usr/include/xulrunner-1.9.2 -I/usr/include/nspr -I/usr/include/xulrunner-1.9.2/ -I/usr/include/xulrunner-1.9.2//caps -I/usr/include/xulrunner-1.9.2//chardet -I/usr/include/xulrunner-1.9.2//chrome -I/usr/include/xulrunner-1.9.2//content -I/usr/include/xulrunner-1.9.2//cookie -I/usr/include/xulrunner-1.9.2//docshell -I/usr/include/xulrunner-1.9.2//dom -I/usr/include/xulrunner-1.9.2//exthandler -I/usr/include/xulrunner-1.9.2//find -I/usr/include/xulrunner-1.9.2//fastfind -I/usr/include/xulrunner-1.9.2//gfx -I/usr/include/xulrunner-1.9.2//helperAppDlg -I/usr/include/xulrunner-1.9.2//history -I/usr/include/xulrunner-1.9.2//htmlparser -I/usr/include/xulrunner-1.9.2//java -I/usr/include/xulrunner-1.9.2//js -I/usr/include/xulrunner-1.9.2//jsconsole -I/usr/include/xulrunner-1.9.2//layout -I/usr/include/xulrunner-1.9.2//locale -I/usr/include/xulrunner-1.9.2//loginmgr -I/usr/include/xulrunner-1.9.2//mimetype -I/usr/include/xulrunner-1.9.2//mozxfer -I/usr/include/xulrunner-1.9.2//necko -I/usr/include/xulrunner-1.9.2//necko2 -I/usr/include/xulrunner-1.9.2//nkcache -I/usr/include/xulrunner-1.9.2//nspr -I/usr/include/xulrunner-1.9.2//oji -I/usr/include/xulrunner-1.9.2//passwordmgr -I/usr/include/xulrunner-1.9.2//pipnss -I/usr/include/xulrunner-1.9.2//pipboot -I/usr/include/xulrunner-1.9.2//pref -I/usr/include/xulrunner-1.9.2//progressDlg -I/usr/include/xulrunner-1.9.2//sidebar -I/usr/include/xulrunner-1.9.2//shistory -I/usr/include/xulrunner-1.9.2//string -I/usr/include/xulrunner-1.9.2//uconv -I/usr/include/xulrunner-1.9.2//uriloader -I/usr/include/xulrunner-1.9.2//unicharutil -I/usr/include/xulrunner-1.9.2//wallet -I/usr/include/xulrunner-1.9.2//webbrowserpersist -I/usr/include/xulrunner-1.9.2//webbrwsr -I/usr/include/xulrunner-1.9.2//webshell -I/usr/include/xulrunner-1.9.2//widget -I/usr/include/xulrunner-1.9.2//windowwatcher -I/usr/include/xulrunner-1.9.2//xpcom -I/usr/include/xulrunner-1.9.2//xpconnect -I/usr/include/xulrunner-1.9.2//xulapp -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -DLIB_DIR=\"/usr/lib/galeon\" -DSHARE_DIR=\"/usr/share/galeon\" -D_GNU_SOURCE=1 -include mozilla-config.h -DGALEON_MOZILLA_HOME=\"/usr/lib/xulrunner-devel-1.9.2/bin\" -fno-rtti -O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb -fshort-wchar -Wall -Wsign-compare -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -MT mozilla-embed-shell.lo -MD -MP -MF .deps/mozilla-embed-shell.Tpo -c mozilla-embed-shell.cpp  -fPIC -DPIC -o .libs/mozilla-embed-shell.o
mozilla-embed-shell.cpp:65:27: error: nsIJVMManager.h: No such file or directory
mozilla-embed-shell.cpp:121: error: ‘NS_JVMMANAGER_CID’ was not declared in this scope
mozilla-embed-shell.cpp: In function ‘void mozilla_embed_shell_init(MozillaEmbedShell*)’:
mozilla-embed-shell.cpp:331: warning: unused variable ‘rv’
mozilla-embed-shell.cpp: In function ‘void impl_show_java_console(GaleonEmbedShell*)’:
mozilla-embed-shell.cpp:519: error: ‘nsIJVMManager’ was not declared in this scope
mozilla-embed-shell.cpp:519: error: template argument 1 is invalid
mozilla-embed-shell.cpp:519: error: invalid type in declaration before ‘=’ token
mozilla-embed-shell.cpp:519: error: cannot convert ‘const nsGetServiceByCID’ to ‘int’ in initialization
mozilla-embed-shell.cpp:522: error: base operand of ‘->’ is not a pointer
make[3]: *** [mozilla-embed-shell.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-client/galeon-2.0.7-r2/work/galeon-2.0.7/mozilla'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-client/galeon-2.0.7-r2/work/galeon-2.0.7/mozilla'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-client/galeon-2.0.7-r2/work/galeon-2.0.7'
make: *** [all] Error 2
 * ERROR: www-client/galeon-2.0.7-r2 failed:
 *   compile failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3099:  Called die
 * The specific snippet of code:
 *       emake MOZILLA_HOME="$(pkg-config libxul --variable=sdkdir)"/bin || die "compile failed"


In a follow-up to bug #302552, I am reporting another issue on ~x86.
Comment 1 Martin Mokrejš 2010-03-20 17:40:12 UTC
Created attachment 224415 [details]
build.log
Comment 2 Martin Mokrejš 2010-03-20 17:40:32 UTC
# emerge --info
Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33.1 i686)
=================================================================
System uname: Linux-2.6.33.1-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 05 Mar 2010 18:45:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.5.4-r4, 2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       3.3.6-r1, 4.2.4-r1, 4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Nero-EULA-US skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
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="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
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/sunrise /usr/local/portage/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo caps cblas cddb cdparanoia cdr clamav cli colordiff compress consolekit cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug modules motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3support qt4 quicktime rar raw readline recode reflection reiserfs romio rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads thunar tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Hicham HAOUARI 2010-03-20 17:40:58 UTC
you are probably missing the nojavaconsole patch
Comment 4 Hicham HAOUARI 2010-03-20 17:42:25 UTC
Created attachment 224417 [details, diff]
galeon-2.0.7-nojavaconsole.patch
Comment 5 Martin Mokrejš 2010-03-20 17:47:33 UTC
Based on a comment in bug #59419#c38 maybe USE=java should be respected (I do
have it enabled, as you see in "emerge --info". However, probably a switch to
configure should be used?

# find /usr/include -name nsIJVMManager.h
# ls -la /usr/include/xulrunner-1.9.2/java
ls: cannot access /usr/include/xulrunner-1.9.2/java: No such file or directory
# ls -la /usr/include/xulrunner-1.9.2/
Display all 1882 possibilities? (y or n)
Allocator.h                           nsIAnnotationService.h               
nsIDOMNSHTMLTextAreaElement.h         nsILoginMetaInfo.h                   
nsIUrlClassifierDBService.h
[cut]

So, maybe an issue with xulrunner?


# emerge -pv xulrunner galeon

[ebuild     U ] net-libs/xulrunner-1.9.2-r4 [1.9.2-r2] USE="alsa dbus java
libnotify startup-notification wifi -custom-optimization -debug -gnome
-system-sqlite%" 0 kB
[ebuild  N    ] www-client/galeon-2.0.7-r2  USE="-debug" 0 kB
#
Comment 6 Hicham HAOUARI 2010-03-20 17:51:09 UTC
IIRC, nsIJVMManager.h no longer exists in xulrunner-1.9.2
Comment 7 Martin Mokrejš 2010-03-20 17:54:26 UTC
(In reply to comment #4)
> Created an attachment (id=224417) [details]
> galeon-2.0.7-nojavaconsole.patch
> 

galeon-2.0.7 # patch -p1 < /tmp/galeon-2.0.7-nojavaconsole.patch
patching file mozilla/mozilla-embed-shell.cpp
Hunk #3 succeeded at 513 (offset 2 lines).
patching file ui/galeon-egg-ui.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file ui/galeon-egg-ui.xml.rej
galeon-2.0.7 #

I ignored this and just tried to compile. It went a bit ahead, but stopped here:

libtool: compile:  i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../utils -I../utils -I../embed -I../bookmarks -I../libegg -I.. -fshort-wchar -I/usr/include/xulrunner-1.9.2 -I/usr/include/nspr -I/usr/include/xulrunner-1.9.2/ -I/usr/include/xulrunner-1.9.2//caps -I/usr/include/xulrunner-1.9.2//chardet -I/usr/include/xulrunner-1.9.2//chrome -I/usr/include/xulrunner-1.9.2//content -I/usr/include/xulrunner-1.9.2//cookie -I/usr/include/xulrunner-1.9.2//docshell -I/usr/include/xulrunner-1.9.2//dom -I/usr/include/xulrunner-1.9.2//exthandler -I/usr/include/xulrunner-1.9.2//find -I/usr/include/xulrunner-1.9.2//fastfind -I/usr/include/xulrunner-1.9.2//gfx -I/usr/include/xulrunner-1.9.2//helperAppDlg -I/usr/include/xulrunner-1.9.2//history -I/usr/include/xulrunner-1.9.2//htmlparser -I/usr/include/xulrunner-1.9.2//java -I/usr/include/xulrunner-1.9.2//js -I/usr/include/xulrunner-1.9.2//jsconsole -I/usr/include/xulrunner-1.9.2//layout -I/usr/include/xulrunner-1.9.2//locale -I/usr/include/xulrunner-1.9.2//loginmgr -I/usr/include/xulrunner-1.9.2//mimetype -I/usr/include/xulrunner-1.9.2//mozxfer -I/usr/include/xulrunner-1.9.2//necko -I/usr/include/xulrunner-1.9.2//necko2 -I/usr/include/xulrunner-1.9.2//nkcache -I/usr/include/xulrunner-1.9.2//nspr -I/usr/include/xulrunner-1.9.2//oji -I/usr/include/xulrunner-1.9.2//passwordmgr -I/usr/include/xulrunner-1.9.2//pipnss -I/usr/include/xulrunner-1.9.2//pipboot -I/usr/include/xulrunner-1.9.2//pref -I/usr/include/xulrunner-1.9.2//progressDlg -I/usr/include/xulrunner-1.9.2//sidebar -I/usr/include/xulrunner-1.9.2//shistory -I/usr/include/xulrunner-1.9.2//string -I/usr/include/xulrunner-1.9.2//uconv -I/usr/include/xulrunner-1.9.2//uriloader -I/usr/include/xulrunner-1.9.2//unicharutil -I/usr/include/xulrunner-1.9.2//wallet -I/usr/include/xulrunner-1.9.2//webbrowserpersist -I/usr/include/xulrunner-1.9.2//webbrwsr -I/usr/include/xulrunner-1.9.2//webshell -I/usr/include/xulrunner-1.9.2//widget -I/usr/include/xulrunner-1.9.2//windowwatcher -I/usr/include/xulrunner-1.9.2//xpcom -I/usr/include/xulrunner-1.9.2//xpconnect -I/usr/include/xulrunner-1.9.2//xulapp -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -DLIB_DIR=\"/usr/lib/galeon\" -DSHARE_DIR=\"/usr/share/galeon\" -D_GNU_SOURCE=1 -include mozilla-config.h -DGALEON_MOZILLA_HOME=\"\" -fno-rtti -O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb -fshort-wchar -Wall -Wsign-compare -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -MT ContentHandler.lo -MD -MP -MF .deps/ContentHandler.Tpo -c ContentHandler.cpp  -fPIC -DPIC -o .libs/ContentHandler.o
distcc[4324] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from ContentHandler.cpp:156:
ProgressListener.h:66: warning: ‘GProgressListener’ declared with greater visibility than the type of its field ‘GProgressListener::<anonymous>’
ProgressListener.h:66: warning: ‘GProgressListener’ declared with greater visibility than its base ‘nsSupportsWeakReference’
ContentHandler.cpp:281: error: prototype for ‘nsresult GContentHandler::PromptForSaveToFile(nsIHelperAppLauncher*, nsISupports*, const PRUnichar*, const PRUnichar*, nsILocalFile**)’ does not match any in class ‘GContentHandler’
ContentHandler.h:49: error: candidate is: virtual nsresult GContentHandler::PromptForSaveToFile(nsIHelperAppLauncher*, nsISupports*, const PRUnichar*, const PRUnichar*, PRBool, nsILocalFile**)
distcc[4324] ERROR: compile ContentHandler.cpp on localhost failed
make[3]: *** [ContentHandler.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-client/galeon-2.0.7-r2/work/galeon-2.0.7/mozilla'
Comment 8 Hicham HAOUARI 2010-03-20 17:56:22 UTC
ok, here is the ebuild together with the tarball of patches to use
Comment 9 Hicham HAOUARI 2010-03-20 18:06:45 UTC
Created attachment 224421 [details]
galeon-2.0.7-r2.ebuild
Comment 10 Hicham HAOUARI 2010-03-20 18:09:21 UTC
Created attachment 224423 [details]
tarball of patches
Comment 11 Martin Mokrejš 2010-03-20 22:13:50 UTC
(In reply to comment #9)
> Created an attachment (id=224421) [details]
> galeon-2.0.7-r2.ebuild
> 

Hmm, there is no closing "fi" in the ebuild (there is "else" left in, accidentally). After fixing that, the patches do not apply:

>>> Preparing source in /var/tmp/portage/www-client/galeon-2.0.7-r2/work/galeon-2.0.7 ...
 * Applying galeon-2.0.7-build-with-xulrunner-1.9.1.patch ...                                                                                                                                                                 [ ok ]
 * Applying galeon-2.0.7-confignspr.patch ...                                                                                                                                                                                 [ ok ]
 * Applying galeon-2.0.7-dfltfont.patch ...                                                                                                                                                                                   [ ok ]
 * Applying galeon-2.0.7-dockcrash.patch ...                                                                                                                                                                                  [ ok ]
 * Applying galeon-2.0.7-fix-str-fmt.patch ...                                                                                                                                                                                [ ok ]
 * Applying galeon-2.0.7-gtkprint.patch ...                                                                                                                                                                                   [ ok ]
 * Applying galeon-2.0.7-jsconsole.patch ...                                                                                                                                                                                  [ ok ]
 * Applying galeon-2.0.7-libX11.patch ...                                                                                                                                                                                     [ ok ]
 * Applying galeon-2.0.7-misc.patch ...

 * Failed Patch: galeon-2.0.7-misc.patch !
 *  ( /usr/portage/www-client/galeon/files/galeon-2.0.7-misc.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/www-client/galeon-2.0.7-r2/temp/galeon-2.0.7-misc.patch.out

 * ERROR: www-client/galeon-2.0.7-r2 failed:



patching file mozilla/MozRegisterComponents.cpp
Hunk #1 succeeded at 268 (offset 1 line).
patching file mozilla/EventContext.cpp
Hunk #1 FAILED at 525.
1 out of 1 hunk FAILED -- saving rejects to file mozilla/EventContext.cpp.rej


The other files to path using galeon-2.0.7-misc.patch.out cannot be found:
# find /var/tmp/portage/www-client/ -name MozRegisterComponents.cpp
/var/tmp/portage/www-client/galeon-2.0.7-r2/work/galeon-2.0.7/mozilla/MozRegisterComponents.cpp
#

Maybe because of the galeon-2.0.7-r2 vs. galeon-2.0.7 in the path?
Comment 12 Hicham HAOUARI 2010-03-21 17:10:14 UTC
Created attachment 224565 [details]
galeon-2.0.7-r2.ebuild
Comment 13 Hicham HAOUARI 2010-03-21 17:12:04 UTC
Created attachment 224569 [details]
galeon-2.0.7-patches.tar.bz2
Comment 14 Hicham HAOUARI 2010-03-21 17:12:45 UTC
I have just done a successful build with these
Comment 15 Hicham HAOUARI 2010-03-21 17:18:05 UTC
don't forget to clear the the files directory before copying the patches to it
Comment 16 Martin Mokrejš 2010-03-22 22:38:46 UTC
>>> Emerging (1 of 1) www-client/galeon-2.0.7-r2
 * galeon-2.0.7.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                  [ ok ]
 * CPV:  www-client/galeon-2.0.7-r2
 * REPO: gentoo
 * USE:  elibc_glibc fullzoom kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking galeon-2.0.7.tar.bz2 to /var/tmp/portage/www-client/galeon-2.0.7-r2/work
>>> Source unpacked in /var/tmp/portage/www-client/galeon-2.0.7-r2/work
>>> Preparing source in /var/tmp/portage/www-client/galeon-2.0.7-r2/work/galeon-2.0.7 ...
 * Applying galeon-2.0.7-build-with-xulrunner-1.9.1.patch ...                                                                                            [ ok ]
 * Applying galeon-2.0.7-confignspr.patch ...                                                                                                            [ ok ]
 * Applying galeon-2.0.7-dfltfont.patch ...                                                                                                              [ ok ]
 * Applying galeon-2.0.7-dockcrash.patch ...                                                                                                             [ ok ]
 * Applying galeon-2.0.7-fix-str-fmt.patch ...                                                                                                           [ ok ]
 * Applying galeon-2.0.7-gtkprint.patch ...                                                                                                              [ ok ]
 * Applying galeon-2.0.7-jsconsole.patch ...                                                                                                             [ ok ]
 * Applying galeon-2.0.7-libX11.patch ...                                                                                                                [ ok ]
 * Applying galeon-2.0.7-misc.patch ...

 * Failed Patch: galeon-2.0.7-misc.patch !
 *  ( /usr/portage/www-client/galeon/files/galeon-2.0.7-misc.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/www-client/galeon-2.0.7-r2/temp/galeon-2.0.7-misc.patch.out

 * ERROR: www-client/galeon-2.0.7-r2 failed:
 *   Failed Patch: galeon-2.0.7-misc.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_prepare
 *   environment, line 3112:  Called epatch '/usr/portage/www-client/galeon/files/galeon-2.0.7-build-with-xulrunner-1.9.1.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-confignspr.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-dfltfont.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-dockcrash.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-fix-str-fmt.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-gtkprint.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-jsconsole.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-libX11.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-misc.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-moz192.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-nojavaconsole.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-notebook-fix.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-plugins.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-progressbar-height.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-spinnericon.patch' '/usr/portage/www-client/galeon/files/galeon-2.0.7-warnings.patch'
 *   environment, line 1619:  Called epatch '/usr/portage/www-client/galeon/files/galeon-2.0.7-misc.patch'
 *   environment, line 1755:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
Comment 17 Martin Mokrejš 2010-03-22 22:39:18 UTC
Created attachment 224783 [details]
galeon-2.0.7-misc.patch.out
Comment 18 Martin Mokrejš 2010-03-22 23:05:00 UTC
(In reply to comment #15)
> don't forget to clear the the files directory before copying the patches to it
> 

Indeed I did not, sorry for the above two comments. ;-)



Shouldn't there be some USE flags introduced for this below? Or is that just a spurious, general warning which does not apply on Gentoo? 

<quote>
Note that Galeon has a runtime dependency on the 'cookie' and 'permission'
mozilla extensions. These are not built as part of the default xulrunner
build, and must be added explicitly at xulrunner configure-time.
</quote>

# emerge -pv =www-client/galeon-2.0.7-r2 xulrunner

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] www-client/galeon-2.0.7-r2  USE="fullzoom -debug" 0 kB
[ebuild     U ] net-libs/xulrunner-1.9.2-r5 [1.9.2-r2] USE="alsa dbus java libnotify startup-notification wifi -custom-optimization -debug -gnome -system-sqlite%" 0 kB
Comment 19 Martin Mokrejš 2010-03-22 23:11:52 UTC
Have successfully built on ~x86, thanks.
Comment 20 Hicham HAOUARI 2010-03-22 23:13:12 UTC
it seems to be an old message to my knowledge, xulrunner includes this stuff now with no configure stuff
Comment 21 Hicham HAOUARI 2010-03-22 23:14:33 UTC
does the fullzoom feature works ok ?
Comment 22 Srini 2010-03-30 08:31:13 UTC
(In reply to comment #6)
> IIRC, nsIJVMManager.h no longer exists in xulrunner-1.9.2
> 

I am using mozilla 1.9.2 SDK, in my previous version of my application I used nsiJVMmanager.h to find out whether already there is JVM instance running or not? But now this is removed from SDK 1.9.2, is there any alternative interface available for this? Or can achieve the same functionality using different APIs, please let me know.
Comment 23 Hicham HAOUARI 2010-03-30 14:10:09 UTC
(In reply to comment #22)
> (In reply to comment #6)
> > IIRC, nsIJVMManager.h no longer exists in xulrunner-1.9.2
> > 
> 
> I am using mozilla 1.9.2 SDK, in my previous version of my application I used
> nsiJVMmanager.h to find out whether already there is JVM instance running or
> not? But now this is removed from SDK 1.9.2, is there any alternative interface
> available for this? Or can achieve the same functionality using different APIs,
> please let me know.
> 

I don't think this is the right place to ask such a question. Probably, you would better ask it on mozilla development list or irc.
Comment 24 Dustin Polke 2010-05-02 18:59:50 UTC
Thanks Hicham for the ebuild and patches.
Got galeon compiled and it works quite okay.

I had to remove ~/.galeon/mozilla/galeon/compreg.dat to get it started the first time after upgrading.

However, I see as well the issue described in Debian bug #577629 [1].

Here is a backtrace:

(gdb) bt
#0  0x000000000046ffc9 in galeon_embed_can_view_source (embed=0x0) at galeon-embed.c:693
#1  0x000000000044cc55 in sync_tab_location (tab=0x12bcbb0, pspec=<value optimized out>, window=0xe4e260) at galeon-window.c:2788
#2  0x000000000044d6a0 in galeon_window_notebook_switch_page_cb (notebook=<value optimized out>, page=<value optimized out>, page_num=<value optimized out>, window=0xe4e260)
    at galeon-window.c:3154
#3  0x00007ffff33974af in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4  0x00007ffff33ad22b in ?? () from /usr/lib/libgobject-2.0.so.0
#5  0x00007ffff33ae239 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#6  0x00007ffff33ae713 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#7  0x00007ffff4397a2b in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#8  0x00000000004e3ea6 in gul_notebook_insert_page (nb=0xf86c00, child=0x12bcbb0, position=-1, jump_to=1) at gul-notebook.c:904
#9  0x00000000004e429b in gul_notebook_move_page (src=0xb1ed30, dest=0xf86c00, src_page=0x12bcbb0, dest_page=-1) at gul-notebook.c:391
#10 0x000000000044c8f0 in galeon_window_tab_detached_cb (notebook=<value optimized out>, page=<value optimized out>, x=<value optimized out>, y=<value optimized out>, window=0xe4e050)
        at galeon-window.c:3818
#11 0x00007ffff33974af in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff33accba in ?? () from /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff33ae239 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff33ae713 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0x00000000004e48ca in button_release_cb (notebook=0xb1ed30, event=<value optimized out>, data=<value optimized out>) at gul-notebook.c:518
#16 0x00007ffff4379f08 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007ffff33974af in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff33accba in ?? () from /usr/lib/libgobject-2.0.so.0
#19 0x00007ffff33ae0c7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff33ae713 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#21 0x00007ffff4482ffe in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x00007ffff43724d3 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x00007ffff43735a3 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x00007ffff3fe9adc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#25 0x00007ffff2edcd99 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x00007ffff2ee05e8 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x00007ffff2ee0abd in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#28 0x00007ffff5724545 in bonobo_main () from /usr/lib/libbonobo-2.so.0
#29 0x000000000043eca4 in main (argc=<value optimized out>, argv=<value optimized out>) at galeon-main.c:284

BR,
Dustin

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577629
Comment 25 Hicham HAOUARI 2010-05-02 21:38:31 UTC
Thanks for reporting that issue, however, I don't think this is the right place to do so.

Upstream galeon is dead, an no one is willing to revive the project.

This issue is present in Fedora build also.

I think it is gecko related, but I am not ready to invest more time into this.

Feel free to submit any patches to workaround this issue.
Comment 26 Pacho Ramos gentoo-dev 2010-05-06 21:32:05 UTC
Fixed in galeon-2.0.7-r2
Comment 27 Pacho Ramos gentoo-dev 2010-05-06 21:38:45 UTC
(In reply to comment #24)
> However, I see as well the issue described in Debian bug #577629 [1].
> 
> Here is a backtrace:
...
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577629
> 

This is the upstream bug report:
https://bugzilla.gnome.org/show_bug.cgi?id=363071
Comment 28 Dustin Polke 2010-05-07 08:14:59 UTC
(In reply to comment #27)
> (In reply to comment #24)
> > However, I see as well the issue described in Debian bug #577629 [1].
> > 
> > Here is a backtrace:
> ...
> > [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577629
> > 
> 
> This is the upstream bug report:
> https://bugzilla.gnome.org/show_bug.cgi?id=363071
> 
Are you sure that this is the same issue? I had no problems with galeon-2.0.7-r1 and xulrunner-1.9.1.8.
Comment 29 Pacho Ramos gentoo-dev 2010-05-07 08:23:16 UTC
I found yesterday an upstream bug report related with crashing when detaching tabs that was duped to that one upstream but, if you find a better upstream bug (with a proper backtrace) fine to me ;-)
https://bugzilla.gnome.org/show_bug.cgi?id=433243
Comment 30 Dustin Polke 2010-05-07 08:48:30 UTC
(In reply to comment #29)
> I found yesterday an upstream bug report related with crashing when detaching
> tabs that was duped to that one upstream but, if you find a better upstream bug
> (with a proper backtrace) fine to me ;-)
> https://bugzilla.gnome.org/show_bug.cgi?id=433243
> 
That bugs looks okay and if upstream decides to mark it as dupe of the former one, okay with. I doubt that anything will happen regarding that matter as...