This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63650] conflicting type attributes specified for âvirtual..'
- From: "richard at netbsd dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 26 Oct 2014 18:36:40 +0000
- Subject: [Bug c++/63650] conflicting type attributes specified for âvirtual..'
- Auto-submitted: auto-generated
- References: <bug-63650-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63650
--- Comment #2 from Richard PALO <richard at netbsd dot org> ---
Created attachment 33812
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33812&action=edit
nsFastLoadFile.ii
this is the original error:
> gmake[4]: Entering directory '/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/xpcom/io'
> nsFastLoadFile.cpp
> g++ -o nsFastLoadFile.o -c -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS -D_IMPL_NS_COM -I.. -I. -I. -I../../dist/include -I../../dist/include/nsprpub -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nspr -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nss -I/opt/local/include -fPIC -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -fno-rtti -fno-exceptions -Wno-long-long -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -fno-strict-aliasing -fshort-wchar -pthread -DNDEBUG -DTRIMMED -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsFastLoadFile.pp nsFastLoadFile.cpp
> nsFastLoadService.cpp
> g++ -o nsFastLoadService.o -c -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS -D_IMPL_NS_COM -I.. -I. -I. -I../../dist/include -I../../dist/include/nsprpub -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nspr -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nss -I/opt/local/include -fPIC -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -fno-rtti -fno-exceptions -Wno-long-long -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -fno-strict-aliasing -fshort-wchar -pthread -DNDEBUG -DTRIMMED -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsFastLoadService.pp nsFastLoadService.cpp
> In file included from nsFastLoadService.cpp:47:0:
> nsFastLoadFile.h:298:19: error: conflicting type attributes specified for 'virtual nsresult nsFastLoadFileReader::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)'
> NS_IMETHODIMP ReadSegments(nsWriteSegmentFun aWriter, void* aClosure,
> ^
> In file included from ../../dist/include/nsIBinaryInputStream.h:10:0,
> from ../../dist/include/nsIObjectInputStream.h:10,
> from nsBinaryStream.h:44,
> from nsFastLoadFile.h:49,
> from nsFastLoadService.cpp:47:
> nsBinaryStream.h:113:5: error: overriding 'virtual nsresult nsBinaryInputStream::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)'
> NS_DECL_NSIINPUTSTREAM
> ^
> In file included from nsFastLoadFile.cpp:58:0:
> nsFastLoadFile.h:298:19: error: conflicting type attributes specified for 'virtual nsresult nsFastLoadFileReader::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)'
> NS_IMETHODIMP ReadSegments(nsWriteSegmentFun aWriter, void* aClosure,
> ^
> In file included from ../../dist/include/nsIBinaryInputStream.h:10:0,
> from ../../dist/include/nsIObjectInputStream.h:10,
> from nsBinaryStream.h:44,
> from nsFastLoadFile.cpp:57:
> nsBinaryStream.h:113:5: error: overriding 'virtual nsresult nsBinaryInputStream::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)'
> NS_DECL_NSIINPUTSTREAM
> ^
> ../../config/rules.mk:1408: recipe for target 'nsFastLoadService.o' failed
> gmake[4]: *** [nsFastLoadService.o] Error 1
> gmake[4]: *** Waiting for unfinished jobs....
> ../../config/rules.mk:1408: recipe for target 'nsFastLoadFile.o' failed