Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132726 - hydrogen fails to build with gcc 4.1.0
Summary: hydrogen fails to build with gcc 4.1.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Eldad Zack (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482 132522
  Show dependency tree
 
Reported: 2006-05-08 14:30 UTC by Matheus Izvekov
Modified: 2006-05-12 15:01 UTC (History)
2 users (show)

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 Matheus Izvekov 2006-05-08 14:30:31 UTC
This is the error:
i686-pc-linux-gnu-g++ -c -pipe -I/usr/include -g -w -O3 -march=athlon-xp -pipe -fno-strict-aliasing -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I. -Isrc -I/usr/qt/3/include -o src/tinystr.o src/lib/xml/tinystr.cpp
src/lib/xml/tinyxml.h:828: error: extra qualification 
Comment 1 Matheus Izvekov 2006-05-08 14:30:31 UTC
This is the error:
i686-pc-linux-gnu-g++ -c -pipe -I/usr/include -g -w -O3 -march=athlon-xp -pipe -fno-strict-aliasing -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I. -Isrc -I/usr/qt/3/include -o src/tinystr.o src/lib/xml/tinystr.cpp
src/lib/xml/tinyxml.h:828: error: extra qualification TiXmlDeclaration:: on member TiXmlDeclaration

To fix it, here is the patch:

diff -ur a/src/lib/xml/tinyxml.h b/src/lib/xml/tinyxml.h
--- a/src/lib/xml/tinyxml.h     2005-10-17 20:32:04.000000000 -0200
+++ b/src/lib/xml/tinyxml.h     2006-05-08 18:31:27.000000000 -0300
@@ -823,7 +823,7 @@
 #endif
 
        /// Construct.
-       TiXmlDeclaration::TiXmlDeclaration( const char * _version,
+       TiXmlDeclaration( const char * _version,
                                                                               const char * _encoding,
                                                                               const char * _standalone );
Comment 2 Matteo Azzali (RETIRED) gentoo-dev 2006-05-08 14:51:51 UTC
You just need to remove "TiXmlDeclaration::" from the file src/lib/xml/tinyxml.h ,
line 828.
I would do myself but it asks for 16 dependancies here (I have an almost 
gnome-free system), so it would be nice if some hydrogen or gnome user would provide a patch....
Comment 3 Matheus Izvekov 2006-05-08 14:58:26 UTC
I did provide a patch, isnt it good?
Comment 4 Eldad Zack (RETIRED) gentoo-dev 2006-05-09 08:23:26 UTC
Looks good to me, I'll test it out as soon as I can.
Comment 5 Eldad Zack (RETIRED) gentoo-dev 2006-05-12 15:01:26 UTC
in CVS, thanks for the patch.