GNOME Bugzilla – Bug 520241
Cannot build 2.0.5 with firefox-2.0.0.11
Last modified: 2014-08-26 19:51:15 UTC
Please describe the problem: While building galeon 2.0.5 with firefox-2.0.0.11, the error occures: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../utils -I../utils -I../embed -I../bookmarks -I../libegg -I.. -I/usr/include/firefox/gtkembedmoz -I/usr/include/firefox -I/usr/include/firefox/xpcom -I/usr/include/firefox/string -I/usr/include/nspr -I/usr/include/firefox -I/usr/include/firefox/caps -I/usr/include/firefox/chardet -I/usr/include/firefox/chrome -I/usr/include/firefox/content -I/usr/include/firefox/cookie -I/usr/include/firefox/docshell -I/usr/include/firefox/dom -I/usr/include/firefox/exthandler -I/usr/include/firefox/find -I/usr/include/firefox/fastfind -I/usr/include/firefox/gfx -I/usr/include/firefox/helperAppDlg -I/usr/include/firefox/history -I/usr/include/firefox/htmlparser -I/usr/include/firefox/java -I/usr/include/firefox/js -I/usr/include/firefox/jsconsole -I/usr/include/firefox/layout -I/usr/include/firefox/locale -I/usr/include/firefox/mimetype -I/usr/include/firefox/mozxfer -I/usr/include/firefox/necko -I/usr/include/firefox/necko2 -I/usr/include/firefox/nkcache -I/usr/include/firefox/nspr -I/usr/include/firefox/oji -I/usr/include/firefox/passwordmgr -I/usr/include/firefox/pipnss -I/usr/include/firefox/pipboot -I/usr/include/firefox/pref -I/usr/include/firefox/progressDlg -I/usr/include/firefox/sidebar -I/usr/include/firefox/shistory -I/usr/include/firefox/string -I/usr/include/firefox/uconv -I/usr/include/firefox/uriloader -I/usr/include/firefox/unicharutil -I/usr/include/firefox/wallet -I/usr/include/firefox/webbrowserpersist -I/usr/include/firefox/webbrwsr -I/usr/include/firefox/webshell -I/usr/include/firefox/widget -I/usr/include/firefox/windowwatcher -I/usr/include/firefox/xpcom -I/usr/include/firefox/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/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -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/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.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\" -DGALEON_MOZILLA_HOME=\"/usr/lib/firefox\" -D_GNU_SOURCE=1 -include /usr/include/firefox/mozilla-config.h -fno-rtti -pipe -Wall -O2 -march=i686 -mtune=i686 -fshort-wchar -Wall -Wsign-compare -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -c MozillaPrivate.cpp -fPIC -DPIC -o .libs/MozillaPrivate.o In file included from /usr/include/firefox/string/nsAString.h:68, from /usr/include/firefox/string/nsSubstring.h:43, from /usr/include/firefox/string/nsString.h:44, from /usr/include/firefox/gfx/nsFont.h:43, from /usr/include/firefox/gfx/nsIPrintOptions.h:21, from MozillaPrivate.cpp:35: /usr/include/firefox/string/nsTAString.h:41:2: error: #error Cannot use internal string classes without MOZILLA_INTERNAL_API defined. Use the frozen header nsStringAPI.h instead. In file included from /usr/include/firefox/string/nsAString.h:74, from /usr/include/firefox/string/nsSubstring.h:43, from /usr/include/firefox/string/nsString.h:44, from /usr/include/firefox/gfx/nsFont.h:43, from /usr/include/firefox/gfx/nsIPrintOptions.h:21, from MozillaPrivate.cpp:35: /usr/include/firefox/string/nsTAString.h:41:2: error: #error Cannot use internal string classes without MOZILLA_INTERNAL_API defined. Use the frozen header nsStringAPI.h instead. /usr/include/firefox/nsStringAPI.h:831: error: redefinition of 'class nsAString' /usr/include/firefox/string/nsTAString.h:107: error: previous definition of 'class nsAString' /usr/include/firefox/nsStringAPI.h:948: error: redefinition of 'class nsACString' /usr/include/firefox/string/nsTAString.h:107: error: previous definition of 'class nsACString' /usr/include/firefox/nsStringAPI.h: In constructor 'nsStringContainer::nsStringContainer()': /usr/include/firefox/nsStringAPI.h:1082: error: no matching function for call to 'nsAString::nsAString()' /usr/include/firefox/string/nsTAString.h:598: note: candidates are: nsAString::nsAString(const nsAString&) /usr/include/firefox/string/nsTAString.h:538: note: nsAString::nsAString(PRUint32) /usr/include/firefox/string/nsTAString.h:525: note: nsAString::nsAString(PRUnichar*, PRUint32, PRUint32) /usr/include/firefox/string/nsTAString.h:488: note: nsAString::nsAString(const nsSubstringTuple&) /usr/include/firefox/nsStringAPI.h: In constructor 'nsCStringContainer::nsCStringContainer()': /usr/include/firefox/nsStringAPI.h:1093: error: no matching function for call to 'nsACString::nsACString()' /usr/include/firefox/string/nsTAString.h:598: note: candidates are: nsACString::nsACString(const nsACString&) /usr/include/firefox/string/nsTAString.h:538: note: nsACString::nsACString(PRUint32) /usr/include/firefox/string/nsTAString.h:525: note: nsACString::nsACString(char*, PRUint32, PRUint32) /usr/include/firefox/string/nsTAString.h:488: note: nsACString::nsACString(const nsCSubstringTuple&) /usr/include/firefox/nsStringAPI.h: At global scope: /usr/include/firefox/nsStringAPI.h:1409: error: conflicting declaration 'typedef class nsDependentString_external nsLiteralString' /usr/include/firefox/string/nsLiteralString.h:86: error: 'nsLiteralString' has a previous declaration as 'typedef class nsDependentString nsLiteralString' /usr/include/firefox/nsStringAPI.h:1437: error: conflicting declaration 'typedef class nsDependentCString_external nsLiteralCString' /usr/include/firefox/string/nsLiteralString.h:114: error: 'nsLiteralCString' has a previous declaration as 'typedef class nsDependentCString nsLiteralCString' /usr/include/firefox/string/nsTAString.h: In copy constructor 'nsStringContainer::nsStringContainer(const nsStringContainer&)': /usr/include/firefox/string/nsTAString.h:598: error: 'nsAString::nsAString(const nsAString&)' is private /usr/include/firefox/nsStringAPI.h:1075: error: within this context /usr/include/firefox/nsStringAPI.h: In copy constructor 'nsDependentSubstring_external::nsDependentSubstring_external(const nsDependentSubstring_external&)': /usr/include/firefox/nsStringAPI.h:1519: note: synthesized method 'nsStringContainer::nsStringContainer(const nsStringContainer&)' first required here /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentSubstring_external Substring(const nsAString&, PRUint32)': /usr/include/firefox/nsStringAPI.h:1646: note: synthesized method 'nsDependentSubstring_external::nsDependentSubstring_external(const nsDependentSubstring_external&)' first required here /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentSubstring_external Substring(const nsAString&, PRUint32, PRUint32)': /usr/include/firefox/nsStringAPI.h:1651: error: new declaration 'const nsDependentSubstring_external Substring(const nsAString&, PRUint32, PRUint32)' /usr/include/firefox/string/nsTDependentSubstring.h:93: error: ambiguates old declaration 'const nsDependentSubstring Substring(const nsAString&, PRUint32, PRUint32)' /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentSubstring_external Substring(const PRUnichar*, const PRUnichar*)': /usr/include/firefox/nsStringAPI.h:1658: error: new declaration 'const nsDependentSubstring_external Substring(const PRUnichar*, const PRUnichar*)' /usr/include/firefox/string/nsTDependentSubstring.h:115: error: ambiguates old declaration 'const nsDependentSubstring Substring(const PRUnichar*, const PRUnichar*)' /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentSubstring_external StringHead(const nsAString&, PRUint32)': /usr/include/firefox/nsStringAPI.h:1672: error: new declaration 'const nsDependentSubstring_external StringHead(const nsAString&, PRUint32)' /usr/include/firefox/string/nsTDependentSubstring.h:123: error: ambiguates old declaration 'const nsDependentSubstring StringHead(const nsAString&, PRUint32)' /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentSubstring_external StringTail(const nsAString&, PRUint32)': /usr/include/firefox/nsStringAPI.h:1679: error: new declaration 'const nsDependentSubstring_external StringTail(const nsAString&, PRUint32)' /usr/include/firefox/string/nsTDependentSubstring.h:139: error: ambiguates old declaration 'const nsDependentSubstring StringTail(const nsAString&, PRUint32)' /usr/include/firefox/string/nsTAString.h: In copy constructor 'nsCStringContainer::nsCStringContainer(const nsCStringContainer&)': /usr/include/firefox/string/nsTAString.h:598: error: 'nsACString::nsACString(const nsACString&)' is private /usr/include/firefox/nsStringAPI.h:1086: error: within this context /usr/include/firefox/nsStringAPI.h: In copy constructor 'nsDependentCSubstring_external::nsDependentCSubstring_external(const nsDependentCSubstring_external&)': /usr/include/firefox/nsStringAPI.h:1578: note: synthesized method 'nsCStringContainer::nsCStringContainer(const nsCStringContainer&)' first required here /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentCSubstring_external Substring(const nsACString&, PRUint32)': /usr/include/firefox/nsStringAPI.h:1689: note: synthesized method 'nsDependentCSubstring_external::nsDependentCSubstring_external(const nsDependentCSubstring_external&)' first required here /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentCSubstring_external Substring(const nsACString&, PRUint32, PRUint32)': /usr/include/firefox/nsStringAPI.h:1694: error: new declaration 'const nsDependentCSubstring_external Substring(const nsACString&, PRUint32, PRUint32)' /usr/include/firefox/string/nsTDependentSubstring.h:93: error: ambiguates old declaration 'const nsDependentCSubstring Substring(const nsACString&, PRUint32, PRUint32)' /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentCSubstring_external Substring(const char*, const char*)': /usr/include/firefox/nsStringAPI.h:1701: error: new declaration 'const nsDependentCSubstring_external Substring(const char*, const char*)' /usr/include/firefox/string/nsTDependentSubstring.h:115: error: ambiguates old declaration 'const nsDependentCSubstring Substring(const char*, const char*)' /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentCSubstring_external StringHead(const nsACString&, PRUint32)': /usr/include/firefox/nsStringAPI.h:1715: error: new declaration 'const nsDependentCSubstring_external StringHead(const nsACString&, PRUint32)' /usr/include/firefox/string/nsTDependentSubstring.h:123: error: ambiguates old declaration 'const nsDependentCSubstring StringHead(const nsACString&, PRUint32)' /usr/include/firefox/nsStringAPI.h: In function 'const nsDependentCSubstring_external StringTail(const nsACString&, PRUint32)': /usr/include/firefox/nsStringAPI.h:1722: error: new declaration 'const nsDependentCSubstring_external StringTail(const nsACString&, PRUint32)' /usr/include/firefox/string/nsTDependentSubstring.h:139: error: ambiguates old declaration 'const nsDependentCSubstring StringTail(const nsACString&, PRUint32)' /usr/include/firefox/content/nsIDocument.h: In member function 'const nsAFlatString& nsIDocument::GetDocumentTitle() const': /usr/include/firefox/content/nsIDocument.h:141: error: invalid initialization of reference of type 'const nsAFlatString&' from expression of type 'const nsString_external' /usr/include/firefox/content/nsIDocument.h: In member function 'const nsAFlatCString& nsIDocument::GetDocumentCharacterSet() const': /usr/include/firefox/content/nsIDocument.h:202: error: invalid initialization of reference of type 'const nsAFlatCString&' from expression of type 'const nsCString_external' /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../utils -I../utils -I../embed -I../bookmarks -I../libegg -I.. -I/usr/include/firefox/gtkembedmoz -I/usr/include/firefox -I/usr/include/firefox/xpcom -I/usr/include/firefox/string -I/usr/include/nspr -I/usr/include/firefox -I/usr/include/firefox/caps -I/usr/include/firefox/chardet -I/usr/include/firefox/chrome -I/usr/include/firefox/content -I/usr/include/firefox/cookie -I/usr/include/firefox/docshell -I/usr/include/firefox/dom -I/usr/include/firefox/exthandler -I/usr/include/firefox/find -I/usr/include/firefox/fastfind -I/usr/include/firefox/gfx -I/usr/include/firefox/helperAppDlg -I/usr/include/firefox/history -I/usr/include/firefox/htmlparser -I/usr/include/firefox/java -I/usr/include/firefox/js -I/usr/include/firefox/jsconsole -I/usr/include/firefox/layout -I/usr/include/firefox/locale -I/usr/include/firefox/mimetype -I/usr/include/firefox/mozxfer -I/usr/include/firefox/necko -I/usr/include/firefox/necko2 -I/usr/include/firefox/nkcache -I/usr/include/firefox/nspr -I/usr/include/firefox/oji -I/usr/include/firefox/passwordmgr -I/usr/include/firefox/pipnss -I/usr/include/firefox/pipboot -I/usr/include/firefox/pref -I/usr/include/firefox/progressDlg -I/usr/include/firefox/sidebar -I/usr/include/firefox/shistory -I/usr/include/firefox/string -I/usr/include/firefox/uconv -I/usr/include/firefox/uriloader -I/usr/include/firefox/unicharutil -I/usr/include/firefox/wallet -I/usr/include/firefox/webbrowserpersist -I/usr/include/firefox/webbrwsr -I/usr/include/firefox/webshell -I/usr/include/firefox/widget -I/usr/include/firefox/windowwatcher -I/usr/include/firefox/xpcom -I/usr/include/firefox/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/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -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/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.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\" -DGALEON_MOZILLA_HOME=\"/usr/lib/firefox\" -D_GNU_SOURCE=1 -include /usr/include/firefox/mozilla-config.h -fno-rtti -pipe -Wall -O2 -march=i686 -mtune=i686 -fshort-wchar -Wall -Wsign-compare -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -c -o MozRegisterComponents.lo `test -f 'MozRegisterComponents.cpp' || echo './'`MozRegisterComponents.cpp MozillaPrivate.cpp: In function 'nsresult MozillaPrivate::LoadOverrideStyleSheet(nsIDocShell*, nsIURI*, nsIStyleSheet**)': MozillaPrivate.cpp:156: warning: unused variable 'rv' MozillaPrivate.cpp: In function 'nsresult MozillaPrivate::GetCompatibilityMode(nsIDOMNSDocument*, EmbedPageRenderMode*)': MozillaPrivate.cpp:268: error: 'nsIHTMLDocument' was not declared in this scope MozillaPrivate.cpp:268: error: template argument 1 is invalid MozillaPrivate.cpp:268: error: invalid type in declaration before '=' token MozillaPrivate.cpp:268: error: cannot convert 'nsQueryInterface' to 'int' in initialization MozillaPrivate.cpp:272: error: base operand of '->' is not a pointer Steps to reproduce: Actual results: Expected results: Does this happen every time? Yes Other information:
I get the error when trying to build 2.0.5 or 2.0.6 against firefox 2.0.0.16
Galeon has not seen any code changes since May 2010: https://git.gnome.org/browse/archive/galeon/log This project is not under active development anymore and got recently archived in GNOME Git. It is currently unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again. If you are interested in maintainership, inform https://mail.gnome.org/mailman/listinfo/desktop-devel-list