After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 433856 - Fails to build with GCC 4.3
Fails to build with GCC 4.3
Status: RESOLVED FIXED
Product: dasher
Classification: Applications
Component: core
4.4.x
Other All
: Normal normal
: ---
Assigned To: Phil Cowans
Phil Cowans
Depends on:
Blocks:
 
 
Reported: 2007-04-27 12:50 UTC by Josselin Mouette
Modified: 2007-04-30 15:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
include cstdlib before the namespace'd #include (1.73 KB, patch)
2007-04-27 12:51 UTC, Josselin Mouette
none Details | Review

Description Josselin Mouette 2007-04-27 12:50:04 UTC
[ Context: Martin Milchmayr is currently testing compilation of the whole Debian system with GCC 4.3. This bug was initially reported as http://bugs.debian.org/421229 ]

There are some new failures in the new upstream version you uploaded [this is 4.1.1]. In fact, dasher does something really evil.  WordLanguageModel.cpp fails to build because it uses atoi without including cstdlib. However, when I added the #include we started failing in an even worse way.  I found out that essentially (through local includes, in the end of AlphIO.h) dasher does:

namespace expat {
#include <cstdlib>
}
#include <cstdlib>

and this horribly fails.  I "fixed" this by including cstdlib in AlphIO.h and ColourIO.h before the horrible namespace'd #include.
Comment 1 Josselin Mouette 2007-04-27 12:51:18 UTC
Created attachment 87141 [details] [review]
include cstdlib before the namespace'd #include
Comment 2 Phil Cowans 2007-04-30 15:21:35 UTC
Hopefully now fixed in SVN.