Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32961 - galeon 1.3.9 and 1.3.10 fail to compile Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031105
Summary: galeon 1.3.9 and 1.3.10 fail to compile Mozilla/5.0 (X11; U; Linux i686; en-U...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 38943 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-07 11:36 UTC by Stefan Andersen
Modified: 2004-02-29 08:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Andersen 2003-11-07 11:36:16 UTC
When I emerged mozilla galeon stoped to work, when I emerge galeon 1.3.10 (and
1.3.9) I get a build problem 
GlobalHistory.cpp:104: error: no `nsresult 
   MozGlobalHistory::SetLastPageVisited(const char*)' member function declared 
   in class `MozGlobalHistory'


Reproducible: Always
Steps to Reproduce:
1. emerge galeon or emerge /usr/portage/net-www/galeon/galeon-1.3.9.ebuild

Actual Results:  
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../utils -I../utils -I../embed
-I../bookmarks -I.. -I/usr/lib/mozilla/include/gtkembedmoz
-I/usr/lib/mozilla/include/xpcom -I/usr/lib/mozilla/include/string
-I/usr/lib/mozilla/include/nspr -I/usr/lib/mozilla/include
-I/usr/lib/mozilla/include/appcomps -I/usr/lib/mozilla/include/caps
-I/usr/lib/mozilla/include/content -I/usr/lib/mozilla/include/cookie
-I/usr/lib/mozilla/include/docshell -I/usr/lib/mozilla/include/dom
-I/usr/lib/mozilla/include/exthandler -I/usr/lib/mozilla/include/find
-I/usr/lib/mozilla/include/gfx -I/usr/lib/mozilla/include/helperAppDlg
-I/usr/lib/mozilla/include/history -I/usr/lib/mozilla/include/java
-I/usr/lib/mozilla/include/js -I/usr/lib/mozilla/include/jsconsole
-I/usr/lib/mozilla/include/layout -I/usr/lib/mozilla/include/mimetype
-I/usr/lib/mozilla/include/mozxfer -I/usr/lib/mozilla/include/necko
-I/usr/lib/mozilla/include/necko2 -I/usr/lib/mozilla/include/nkcache
-I/usr/lib/mozilla/include/oji -I/usr/lib/mozilla/include/pref
-I/usr/lib/mozilla/include/progressDlg -I/usr/lib/mozilla/include/sidebar
-I/usr/lib/mozilla/include/shistory -I/usr/lib/mozilla/include/typeaheadfind
-I/usr/lib/mozilla/include/uconv -I/usr/lib/mozilla/include/uriloader
-I/usr/lib/mozilla/include/unicharutil -I/usr/lib/mozilla/include/wallet
-I/usr/lib/mozilla/include/webbrowserpersist -I/usr/lib/mozilla/include/webbrwsr
-I/usr/lib/mozilla/include/webshell -I/usr/lib/mozilla/include/widget
-I/usr/lib/mozilla/include/windowwatcher -I/usr/lib/mozilla/include/xpconnect
-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/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/orbit-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0
-I/usr/include/libglade-2.0 -I/usr/include/gnome-vfs-module-2.0
-I/usr/include/eel-2 -I/usr/include/gail-1.0 -DLIB_DIR=\"/usr/lib/galeon\"
-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED
-DSHARE_DIR=\"/usr/share/galeon\" -D_GNU_SOURCE=1 -include
/usr/lib/mozilla/include/mozilla-config.h -fno-rtti -O3 -march=pentium3 -pipe
-funroll-loops -fforce-addr -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -g -g -g -Wall -Wmissing-prototypes -Wsign-compare
-Wno-deprecated -fshort-wchar -MT GlobalHistory.lo -MD -MP -MF
.deps/GlobalHistory.Tpo -c GlobalHistory.cpp  -fPIC -DPIC -o .libs/GlobalHistory.o
In file included from ../utils/galeon-config.h:1,
                 from GlobalHistory.cpp:19:
../config.h:74:1: warning: "MOZILLA_VERSION" redefined
In file included from <command line>:18:
/usr/lib/mozilla/include/mozilla-config.h:52:1: warning: this is the location of
the previous definition
GlobalHistory.cpp:104: error: no `nsresult 
   MozGlobalHistory::SetLastPageVisited(const char*)' member function declared 
   in class `MozGlobalHistory'
make[2]: *** [GlobalHistory.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/galeon-1.3.9/work/galeon-1.3.9/mozilla'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/galeon-1.3.9/work/galeon-1.3.9'
make: *** [all] Error 2

!!! ERROR: net-www/galeon-1.3.9 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! compile failed



Expected Results:  
build ok

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops
-fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops
-fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 "
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/
http://mirrors.sunsite.dk/gentoo/ ftp://sunsite.dk/mirrors/gentoo/
http://distro.ibiblio.org/gentoo "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode foomaticdb gif jpeg libg++ libwww mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
gtkhtml gdbm berkdb slang readline aalib nas bonobo svga ggi tcltk java guile X
sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl
cdr cups usb -arts dga dvd evo fbcon flash gphoto2 gtk2 imap ldap mozilla samba
sse tiff wmf xml kde alsa mysql"
Comment 1 foser (RETIRED) gentoo-dev 2003-11-11 05:04:29 UTC
what mozilla do you have exactly (ebuild)

don't you have 2 versions installed by any chance ?

I can compile 1.3.10 just fine vs 1.5

Oh and the first step of gentoo bugreporting is : lower your CFLAGS and try
again.
Comment 2 Frank Schafer 2003-11-20 06:14:13 UTC
Hi, I ran into the problems with galeon too. After the dayly ``emerge sync'' and ``emerge -u portage'' - ``emerge -u world'' galeon stopped working.

IMHO this is a bug of the upgrade system. Emerge decided to upgrade to (the broken) mozilla-1.4 and then to mozilla-1.5 yesterday.
Dunno why it didn't see the dependency of galeon.

O.K. I know the solution. Set the "gtk2" USE-flag, rebuild mozilla and then rebuild galeon. This is a much time consuming task.
Comment 3 Stefan Andersen 2003-11-20 12:20:41 UTC
Rebuilding mozilla and galeon didn't solve my problem.
Using nice USE flags also dont change a thing for me.
I found an old galeon-cvs-20020908 that I unmerged but this did not solve it.

Now i have:
root@b1 zingo # qpkg --installed --verbose | grep mozilla
net-www/mozilla-1.5-r1 *
root@b1 zingo # qpkg --installed --verbose | grep galeon
net-www/galeon-1.3.9 *
root@b1 zingo # emerge -vp mozilla galeon

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/mozilla-1.5-r1  +java +crypt -ipv6 +gtk2 +ssl +ldap +gnome -debug -mozcalendar -mozaccess -mozxmlterm -moznoirc -moznomail -moznocompose -moznoxft 
[ebuild     U ] net-www/galeon-1.3.10 [1.3.9] 

And:
CFLAGS="-march=pentium3 "

Still the same problem for me.
Comment 4 foser (RETIRED) gentoo-dev 2003-11-20 14:19:13 UTC
and what does 'pkg-config --modversion mozilla-xpcom' give ?
Comment 5 Stefan Andersen 2003-11-20 22:10:00 UTC
root@b1 zingo # pkg-config --modversion mozilla-xpcom
1.5
root@b1 zingo # 
Comment 6 Stefan Andersen 2003-11-20 23:03:54 UTC
The prbolem is here
GlobalHistory.cpp
NS_IMETHODIMP MozGlobalHistory::SetLastPageVisited(const char *aLastPageVisited)
{
	mLastPageVisited.Assign(aLastPageVisited);
	return NS_OK;
}
the GlobalHistory.h file have this class

class MozGlobalHistory: public nsIGlobalHistory,
			public nsIBrowserHistory
{
	public:
		MozGlobalHistory ();
  		virtual ~MozGlobalHistory();

		NS_DECL_ISUPPORTS
		NS_DECL_NSIGLOBALHISTORY
		NS_DECL_NSIBROWSERHISTORY

	private:
		GlobalHistory *mGlobalHistory;
		nsCString mLastPageVisited;
};

So the method is not at the lowerst level (I have no time to dig more now I have to go to work... but If I #if 0 the method this file compiles for me.

I have not looked in nsIGlobalHistory and nsIBrowserHistory definitions yet.
Comment 7 Stefan Andersen 2003-11-25 15:48:46 UTC
Here is one workaround, Im not a patch "hacker" so I did this by hand.

emerge galeon
build build ...
build error 
gedit /var/tmp/portage/galeon-1.3.10/work/galeon-1.3.10/mozilla/GlobalHistory.cpp
change version check from 8 to 18 (vill make the method go away :)
#if MOZILLA_SNAPSHOT > 8
NS_IMETHODIMP MozGlobalHistory::SetLastPageVisited(const char *aLastPageVisited)
{
	mLastPageVisited.Assign(aLastPageVisited);
	return NS_OK;
}
#endif
to
#if MOZILLA_SNAPSHOT > 18
NS_IMETHODIMP MozGlobalHistory::SetLastPageVisited(const char *aLastPageVisited)
{
	mLastPageVisited.Assign(aLastPageVisited);
	return NS_OK;
}
#endif
then reemerge and save the file in the editor just when it configure:ing
emerge galeon
wait little time, to after it has been unpacked (or when it's configure)
save file in editor
build build ...

Here everything goes fine for me... (well I dont know if my patch will give me any problem but now I can start galeon again)
Comment 8 Stefan Andersen 2003-12-27 23:36:35 UTC
Im getting this bug when compiling epiphany also.

rm: cannot remove `': Invalid argument
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib -I../../embed -I../.. -O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -Wall -Wno-unused -I/usr/lib/mozilla/include/gtkembedmoz -I/usr/lib/mozilla/include/xpcom -I/usr/lib/mozilla/include/string -I/usr/lib/mozilla/include/nspr -I/usr/lib/mozilla/include/appcomps -I/usr/lib/mozilla/include/chrome -I/usr/lib/mozilla/include/content -I/usr/lib/mozilla/include/cookie -I/usr/lib/mozilla/include/docshell -I/usr/lib/mozilla/include/dom -I/usr/lib/mozilla/include/exthandler -I/usr/lib/mozilla/include/find -I/usr/lib/mozilla/include/gfx -I/usr/lib/mozilla/include/helperAppDlg -I/usr/lib/mozilla/include/history -I/usr/lib/mozilla/include/layout -I/usr/lib/mozilla/include/locale -I/usr/lib/mozilla/include/mimetype -I/usr/lib/mozilla/include/necko -I/usr/lib/mozilla/include/nkcache -I/usr/lib/mozilla/include/pref -I/usr/lib/mozilla/include/progressDlg -I/usr/lib/mozilla/include/shistory -I/usr/lib/mozilla/include/unicharutil -I/usr/lib/mozilla/include/uriloader -I/usr/lib/mozilla/include/wallet -I/usr/lib/mozilla/include/webbrowserpersist -I/usr/lib/mozilla/include/webbrwsr -I/usr/lib/mozilla/include/webshell -I/usr/lib/mozilla/include/widget -I/usr/lib/mozilla/include/windowwatcher -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/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libglade-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/eel-2 -I/usr/include/gail-1.0 -DSHARE_DIR=\"/usr/share/epiphany\" -include /usr/lib/mozilla/include/mozilla-config.h -fno-rtti -fshort-wchar -O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -MT GlobalHistory.lo -MD -MP -MF .deps/GlobalHistory.Tpo -c GlobalHistory.cpp  -fPIC -DPIC -o .libs/GlobalHistory.o
GlobalHistory.cpp:95: error: no `nsresult 
   MozGlobalHistory::SetLastPageVisited(const char*)' member function declared 
   in class `MozGlobalHistory'
make[3]: *** [GlobalHistory.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/epiphany-1.0.6/work/epiphany-1.0.6/embed/mozilla'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/epiphany-1.0.6/work/epiphany-1.0.6/embed'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/epiphany-1.0.6/work/epiphany-1.0.6'
make: *** [all] Error 2

!!! ERROR: net-www/epiphany-1.0.6 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure
Comment 9 Stefan Andersen 2004-02-03 14:06:48 UTC
I upgraded to mozilla 1.6 and have the same problem as bofore now with galeon 1.3.12. I tryed some different emerging's and now I seems to have found the real problem for some reason my /usr/lib/mozilla/include migth not have been cleaned corectly I found this message when emergin mozilla 1.6

 * Please unmerge old versions of mozilla, as the header
 * layout in /usr/lib/mozilla/include have changed and will
 * result in compile errors when compiling programs that need
 * mozilla headers and libs (galeon, nautilus, ...)

so I did a 
mv /usr/lib/mozilla /usr/lib/mozilla.copy
and then a 
emerge mozilla galeon
And it now works....

Comment 10 Stefan Andersen 2004-02-03 22:38:55 UTC
*** Bug 38943 has been marked as a duplicate of this bug. ***
Comment 11 foser (RETIRED) gentoo-dev 2004-02-29 08:26:29 UTC
Ok, going to close this INVALID, since it seemed to be a problem on the user side. If it is consistently reproducable at a later time please reopen, but at this point I don't see what we can do with this report.