Package: genparse
Version: 0.5.2-11
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of genparse_0.5.2-11 on coconut0 by sbuild/ia64 0.49
...
> c++ -DHAVE_CONFIG_H -I. -I. -I..    -Wstrict-prototypes  -g -O2 -c eh.cc
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> eh.cc: In member function 'void EH::action(std::string, std::string, int)':
> eh.cc:67: error: 'abort' was not declared in this scope
> make[3]: *** [eh.o] Error 1
> make[3]: Leaving directory `/build/tbm/genparse-0.5.2/src'

--- src/eh.cc~  2007-04-01 19:21:56.000000000 +0000
+++ src/eh.cc   2007-04-01 19:22:01.000000000 +0000
@@ -7,6 +7,7 @@
 **
 ****************************************************************************/
 
+#include <cstdlib>
 #include <iostream>
 #include <sstream>
 #include "eh.h"
--- test/mycopy4.cc~    2007-04-01 19:23:45.000000000 +0000
+++ test/mycopy4.cc     2007-04-01 19:23:50.000000000 +0000
@@ -1,5 +1,6 @@
 /* mycopy4.cc */
 
+#include <cstdlib>
 #include <iostream>
 #include <fstream>
 #include "mycopy4_clp.h"

Note that the program still doesn't compile for me because of this:

mycopy4.cc:6:25: error: mycopy4_clp.h: No such file or directory
mycopy4.cc: In function 'int main(int, char**)':
mycopy4.cc:18: error: 'Cmdline' was not declared in this scope

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to