View previous topic :: View next topic |
Author |
Message |
MdaG l33t
Joined: 09 Nov 2004 Posts: 945 Location: Stockholm, Sverige
|
Posted: Sat Jul 08, 2006 10:22 pm Post subject: Trouble compiling latest stable firefox [solved] |
|
|
When I try to compile firefox it ends up with the following message:
Quote: | .
.
.
In file included from nsDirectoryViewer.cpp:54:
nsDirectoryViewer.h:47:26: nsIHTTPIndex.h: No such file or directory
In file included from nsDirectoryViewer.cpp:54:
nsDirectoryViewer.h:70: error: expected class-name before ',' token
nsDirectoryViewer.h:131: error: `nsIHTTPIndex' has not been declared
nsDirectoryViewer.h:131: error: ISO C++ forbids declaration of `aResult' with no type
nsDirectoryViewer.h:137: error: ISO C++ forbids declaration of `NS_DECL_NSIHTTPINDEX' with no type
nsDirectoryViewer.h:137: error: expected `;' before "virtual"
nsDirectoryViewer.cpp: In member function `virtual nsresult nsHTTPIndex::QueryInterface(const nsIID&, void**)':
nsDirectoryViewer.cpp:113: error: `nsIHTTPIndex' was not declared in this scope
nsDirectoryViewer.cpp:113: error: template argument 1 is invalid
nsDirectoryViewer.cpp:113: error: `nsIHTTPIndex' is not a type
nsDirectoryViewer.cpp:113: error: expected `>' before '*' token
nsDirectoryViewer.cpp:113: error: expected `(' before '*' token
nsDirectoryViewer.cpp:113: error: expected primary-expression before '>' token
nsDirectoryViewer.cpp:113: error: expected `)' before ';' token
nsDirectoryViewer.cpp:113: error: `nsIHTTPIndex' is not a type
nsDirectoryViewer.cpp:113: error: expected `>' before '*' token
nsDirectoryViewer.cpp:113: error: expected `(' before '*' token
nsDirectoryViewer.cpp:113: error: expected primary-expression before '>' token
nsDirectoryViewer.cpp:113: error: expected `)' before ';' token
nsDirectoryViewer.cpp: At global scope:
nsDirectoryViewer.cpp:220: error: no `nsresult nsHTTPIndex::SetEncoding(const char*)' member function declared in class `nsHTTPIndex'
nsDirectoryViewer.cpp:227: error: no `nsresult nsHTTPIndex::GetEncoding(char**)' member function declared in class `nsHTTPIndex'
nsDirectoryViewer.cpp: In member function `virtual nsresult nsHTTPIndex::OnStartRequest(nsIRequest*, nsISupports*)':
nsDirectoryViewer.cpp:281: error: `nsIHTTPIndex' has not been declared
nsDirectoryViewer.cpp:281: error: expected `>' before '*' token
nsDirectoryViewer.cpp:281: error: expected `(' before '*' token
nsDirectoryViewer.cpp:281: error: expected primary-expression before '>' token
nsDirectoryViewer.cpp:282: error: `nsIHTTPIndex' was not declared in this scope
nsDirectoryViewer.cpp:282: error: template argument 1 is invalid
nsDirectoryViewer.cpp: At global scope:
nsDirectoryViewer.cpp:701: error: `nsIHTTPIndex' has not been declared
nsDirectoryViewer.cpp:702: error: ISO C++ forbids declaration of `aResult' with no type
nsDirectoryViewer.cpp: In static member function `static nsresult nsHTTPIndex::Create(nsIURI*, nsIInterfaceRequestor*, int**)':
nsDirectoryViewer.cpp:705: error: cannot allocate an object of type `nsHTTPIndex'
nsDirectoryViewer.cpp:705: error: because the following virtual functions are abstract:
../../../dist/include/rdf/nsIRDFDataSource.h:55: error: virtual nsresult nsIRDFDataSource::GetURI(char**)
nsDirectoryViewer.cpp:713: error: cannot convert `nsHTTPIndex*' to `int*' in assignment
nsDirectoryViewer.cpp:717: confused by earlier errors, bailing out
gmake[4]: *** [nsDirectoryViewer.o] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/xpfe/components/directory'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/xpfe/components'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/xpfe'
gmake[1]: *** [tier_50] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla'
make: *** [default] Error 2
!!! ERROR: www-client/mozilla-firefox-1.5.0.4 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
mozilla-firefox-1.5.0.4.ebuild, line 178: Called die
!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant. |
I don't understand this error, how do I fix it and why is it there?
I recently migrated to modular X and added the USE-flags firefox -mozilla in my make.conf so it might have something to do with that...
Last edited by MdaG on Sun Jul 09, 2006 8:08 am; edited 1 time in total |
|
Back to top |
|
|
Spherical Tux's lil' helper
Joined: 06 Jul 2006 Posts: 99 Location: Enschede - Netherlands
|
Posted: Sat Jul 08, 2006 10:26 pm Post subject: |
|
|
Have you tried removing the ebuild file from /usr/portage/distfiles
and then re-emerge it?
looks like the code is buggy, not really an error on your side, on a quick look that is |
|
Back to top |
|
|
masterdriverz Retired Dev
Joined: 28 Mar 2006 Posts: 391 Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the galaxy
|
Posted: Sun Jul 09, 2006 3:51 pm Post subject: |
|
|
Looks like it can't find nsIHTTPIndex.h, and thats what's causing all the problems. |
|
Back to top |
|
|
josed n00b
Joined: 30 Jun 2006 Posts: 24 Location: chile
|
Posted: Mon Jul 10, 2006 2:05 pm Post subject: Re: Trouble compiling latest stable firefox [solved] |
|
|
MdaG wrote: | When I try to compile firefox it ends up with the following message:
Quote: | .
.
.
In file included from nsDirectoryViewer.cpp:54:
nsDirectoryViewer.h:47:26: nsIHTTPIndex.h: No such file or directory
In file included from nsDirectoryViewer.cpp:54:
nsDirectoryViewer.h:70: error: expected class-name before ',' token
nsDirectoryViewer.h:131: error: `nsIHTTPIndex' has not been declared
nsDirectoryViewer.h:131: error: ISO C++ forbids declaration of `aResult' with no type
nsDirectoryViewer.h:137: error: ISO C++ forbids declaration of `NS_DECL_NSIHTTPINDEX' with no type
nsDirectoryViewer.h:137: error: expected `;' before "virtual"
nsDirectoryViewer.cpp: In member function `virtual nsresult nsHTTPIndex::QueryInterface(const nsIID&, void**)':
nsDirectoryViewer.cpp:113: error: `nsIHTTPIndex' was not declared in this scope
nsDirectoryViewer.cpp:113: error: template argument 1 is invalid
nsDirectoryViewer.cpp:113: error: `nsIHTTPIndex' is not a type
nsDirectoryViewer.cpp:113: error: expected `>' before '*' token
nsDirectoryViewer.cpp:113: error: expected `(' before '*' token
nsDirectoryViewer.cpp:113: error: expected primary-expression before '>' token
nsDirectoryViewer.cpp:113: error: expected `)' before ';' token
nsDirectoryViewer.cpp:113: error: `nsIHTTPIndex' is not a type
nsDirectoryViewer.cpp:113: error: expected `>' before '*' token
nsDirectoryViewer.cpp:113: error: expected `(' before '*' token
nsDirectoryViewer.cpp:113: error: expected primary-expression before '>' token
nsDirectoryViewer.cpp:113: error: expected `)' before ';' token
nsDirectoryViewer.cpp: At global scope:
nsDirectoryViewer.cpp:220: error: no `nsresult nsHTTPIndex::SetEncoding(const char*)' member function declared in class `nsHTTPIndex'
nsDirectoryViewer.cpp:227: error: no `nsresult nsHTTPIndex::GetEncoding(char**)' member function declared in class `nsHTTPIndex'
nsDirectoryViewer.cpp: In member function `virtual nsresult nsHTTPIndex::OnStartRequest(nsIRequest*, nsISupports*)':
nsDirectoryViewer.cpp:281: error: `nsIHTTPIndex' has not been declared
nsDirectoryViewer.cpp:281: error: expected `>' before '*' token
nsDirectoryViewer.cpp:281: error: expected `(' before '*' token
nsDirectoryViewer.cpp:281: error: expected primary-expression before '>' token
nsDirectoryViewer.cpp:282: error: `nsIHTTPIndex' was not declared in this scope
nsDirectoryViewer.cpp:282: error: template argument 1 is invalid
nsDirectoryViewer.cpp: At global scope:
nsDirectoryViewer.cpp:701: error: `nsIHTTPIndex' has not been declared
nsDirectoryViewer.cpp:702: error: ISO C++ forbids declaration of `aResult' with no type
nsDirectoryViewer.cpp: In static member function `static nsresult nsHTTPIndex::Create(nsIURI*, nsIInterfaceRequestor*, int**)':
nsDirectoryViewer.cpp:705: error: cannot allocate an object of type `nsHTTPIndex'
nsDirectoryViewer.cpp:705: error: because the following virtual functions are abstract:
../../../dist/include/rdf/nsIRDFDataSource.h:55: error: virtual nsresult nsIRDFDataSource::GetURI(char**)
nsDirectoryViewer.cpp:713: error: cannot convert `nsHTTPIndex*' to `int*' in assignment
nsDirectoryViewer.cpp:717: confused by earlier errors, bailing out
gmake[4]: *** [nsDirectoryViewer.o] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/xpfe/components/directory'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/xpfe/components'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/xpfe'
gmake[1]: *** [tier_50] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla'
make: *** [default] Error 2
!!! ERROR: www-client/mozilla-firefox-1.5.0.4 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
mozilla-firefox-1.5.0.4.ebuild, line 178: Called die
!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant. |
I don't understand this error, how do I fix it and why is it there?
I recently migrated to modular X and added the USE-flags firefox -mozilla in my make.conf so it might have something to do with that... |
I have the same problem, which was your solution? please'? _________________ Portage 2.1.3.9 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64)
Gentoo Base System version 1.12.9 |
|
Back to top |
|
|
josed n00b
Joined: 30 Jun 2006 Posts: 24 Location: chile
|
Posted: Wed Jul 12, 2006 10:14 am Post subject: |
|
|
how did you solved it pleaseee? _________________ Portage 2.1.3.9 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64)
Gentoo Base System version 1.12.9 |
|
Back to top |
|
|
theluckyone17 n00b
Joined: 03 Dec 2005 Posts: 54
|
Posted: Sun Sep 10, 2006 2:56 pm Post subject: |
|
|
I ran into this same problem in the midst of switching over to GCC 4.1.1. I solved it by unmerging firefox, then removing the source files from /usr/portage/distfiles (forcing a redownload). After that, it recompiled without an issue. Why? I have no clue. But it worked for me. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|