Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 115077

Summary: www-client/mozilla-firefox-1.5-r2 fails to build
Product: Gentoo Linux Reporter: Thomas Schlesinger <schlesix>
Component: New packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Schlesinger 2005-12-10 04:21:06 UTC
After a while of emerging firefox, I get this error message:  
[..]  
i686-pc-linux-gnu-g++ -o nsDirectoryViewer.o -c  -DMOZILLA_INTERNAL_API  
-DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2005121012   
-I../../../dist/include/xpcom -I../../../dist/include/string  
-I../../../dist/include/necko -I../../../dist/include/rdf  
-I../../../dist/include/content -I../../../dist/include/js  
-I../../../dist/include/xpconnect -I../../../dist/include/docshell  
-I../../../dist/include/widget -I../../../dist/include/dom  
-I../../../dist/include/webshell -I../../../dist/include/uconv  
-I../../../dist/include/pref -I../../../dist/include/uriloader  
-I../../../dist/include/windowwatcher -I../../../dist/include/appcomps  
-I../../../dist/include -I../../../dist/include/nspr     
-I../../../dist/sdk/include    -fPIC   
-DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\"  
-DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti  
-fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align  
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor  
-Wno-long-long -march=pentium-m -pipe -Wno-deprecated -Wno-return-type -w  
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2   
-DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\"  
-DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"   
-DMOZILLA_CLIENT -include ../../../mozilla-config.h  
-Wp,-MD,.deps/nsDirectoryViewer.pp nsDirectoryViewer.cpp  
nsIHTTPIndex.idl  
../../../dist/bin/xpidl -m typelib -w -I ../../../dist/idl -I. -o  
_xpidlgen/nsIHTTPIndex nsIHTTPIndex.idl  
../../../dist/bin/xpt_link _xpidlgen/directory.xpt _xpidlgen/nsIHTTPIndex.xpt  
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' undeclared (first use this  
function)  
nsDirectoryViewer.cpp:113: error: (Each undeclared identifier is reported only  
once for each function it appears in.)  
nsDirectoryViewer.cpp:113: error: template argument 1 is invalid  
nsDirectoryViewer.cpp:113: error: `GetIID' is not a member of `<declaration  
error>'  
nsDirectoryViewer.cpp:113: error: `nsIHTTPIndex' has not been declared  
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' has not been declared  
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' undeclared (first use this  
function)  
nsDirectoryViewer.cpp:282: error: template argument 1 is invalid  
nsDirectoryViewer.cpp:282: error: `GetIID' is not a member of `<declaration  
error>'  
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-r2/work/mozilla/xpfe/components/directory'  
gmake[3]: *** [libs] Error 2  
gmake[3]: Leaving directory  
`/var/tmp/portage/mozilla-firefox-1.5-r2/work/mozilla/xpfe/components'  
gmake[2]: *** [libs] Error 2  
gmake[2]: Leaving directory  
`/var/tmp/portage/mozilla-firefox-1.5-r2/work/mozilla/xpfe'  
gmake[1]: *** [tier_50] Error 2  
gmake[1]: Leaving directory  
`/var/tmp/portage/mozilla-firefox-1.5-r2/work/mozilla'  
make: *** [default] Error 2  
  

Reproducible: Always
Steps to Reproduce:
emerge mozilla-firefox 
Actual Results:  
see Details 

Expected Results:  
firefox should emerge without errors 

SchlesisNB thomas # emerge info 
Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 
2.6.14-gentoo i686) 
================================================================= 
System uname: 2.6.14-gentoo i686 Intel(R) Pentium(R) M processor 1.73GHz 
Gentoo Base System version 1.12.0_pre11 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.3.5, 2.4.2 
sys-apps/sandbox:    1.2.15 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 
sys-devel/binutils:  2.16.1-r1 
sys-devel/libtool:   1.5.20-r1 
virtual/os-headers:  2.6.11-r3 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache distlocks prelink sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo" 
LANG="de_DE" 
LC_ALL="en_US" 
LINGUAS="de" 
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 X a52 acl acpi alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 
cdr crypt cups curl divx4linux dri dts dv dvb dvd dvdread eds emboss encode 
esd exif expat fam fame ffmpeg flac foomaticdb fortran gdbm gif glut gmp gpm 
gstreamer gtk2 guile idn imagemagick imlib ipv6 irmc java jpeg junit kde 
kdepim kdexdeltas lcms libg++ libwww mad matroska mikmod mmx mmxext mng motif 
mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pda pdflib perl 
png python qt quicktime readline recode samba scanner sdl speex spell sqlite 
sse ssl subtitles svg svga tcltk tcpd tetex tiff truetype truetype-fonts 
type1-fonts udev unicode usb uselocales visualization vorbis xine xml2 xmms xv 
xvid zeroconf zlib linguas_de userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Jory A. Pratt 2005-12-10 07:45:35 UTC
emerge again and you will have success. I am still tracking down why it fails
like it does, but very difficult to track down.

*** This bug has been marked as a duplicate of 114025 ***
Comment 2 Thomas Schlesinger 2005-12-10 09:33:17 UTC
Yes, that resolved the problem for me, thanks.