Package: cyphesis-cpp
Verson: 0.5.8-2
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 cyphesis-cpp_0.5.8-2 on coconut0 by sbuild/ia64 0.49
...
> g++ -DHAVE_CONFIG_H  -I.. -DDATADIR=\"/usr/share\" -DSYSCONFDIR=\"/etc\" 
> -DLOCALSTATEDIR=\"/var\"  -I/usr/include/python2.4    
> -I/usr/include/Atlas-C++-0.6 -I/usr/include/varconf-1.0 
> -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include   
> -I/usr/include/Mercator-0.2 -I/usr/include/wfmath-0.3   
> -I/usr/include/skstream-0.3 -I/usr/lib/skstream-0.3/include   -D_REENTRANT   
> -I/usr/include/postgresql  -g -Wall -O2 -fno-strict-aliasing -Wall -DNDEBUG 
> -pthread -c -o id.o id.cpp
> id.cpp: In function 'long int integerId(const std::string&)':
> id.cpp:26: error: 'strtol' was not declared in this scope
> id.cpp: In function 'long int forceIntegerId(const std::string&)':
> id.cpp:36: error: 'strtol' was not declared in this scope
> id.cpp:39: error: 'abort' was not declared in this scope
> id.cpp: In function 'int integerIdCheck(const std::string&)':
> id.cpp:47: error: 'strtol' was not declared in this scope
> make[3]: *** [id.o] Error 1
> make[3]: Leaving directory `/build/tbm/cyphesis-cpp-0.5.8/common'
> make[2]: *** [all-recursive] Error 1

(Unfortunately there are some other errors later on, but let's fix the
missing #includes now)

--- common/id.h~        2007-04-01 16:55:19.000000000 +0000
+++ common/id.h 2007-04-01 16:55:25.000000000 +0000
@@ -18,6 +18,7 @@
 #ifndef COMMON_ID_H
 #define COMMON_ID_H
 
+#include <cstdlib>
 #include <string>
 
 long newId(std::string & id);
--- common/globals.h~   2007-04-01 16:55:45.000000000 +0000
+++ common/globals.h    2007-04-01 16:55:54.000000000 +0000
@@ -18,6 +18,7 @@
 #ifndef COMMON_GLOBALS_H
 #define COMMON_GLOBALS_H
 
+#include <cstdlib>
 #include <string>
 #include <vector>
 
--- common/types.h~     2007-04-01 17:01:56.000000000 +0000
+++ common/types.h      2007-04-01 17:02:01.000000000 +0000
@@ -20,6 +20,7 @@
 
 #include <Atlas/Objects/ObjectsFwd.h>
 
+#include <string>
 #include <set>
 #include <map>
 #include <vector>
--- rulesets/Container.h~       2007-04-01 17:07:12.000000000 +0000
+++ rulesets/Container.h        2007-04-01 17:07:17.000000000 +0000
@@ -20,6 +20,7 @@
 
 #include <Atlas/Objects/ObjectsFwd.h>
 
+#include <string>
 #include <set>
 #include <map>
 #include <vector>
--- modules/DateTime.h~ 2007-04-01 17:11:26.000000000 +0000
+++ modules/DateTime.h  2007-04-01 17:11:31.000000000 +0000
@@ -18,6 +18,7 @@
 #ifndef COMMON_DATE_TIME_H
 #define COMMON_DATE_TIME_H
 
+#include <cstdlib>
 #include <string>
 #include <iostream>
 

-- 
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