Package: libterralib
Version: 3.0.3b2-3.1
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 (20070326-1 or higher)
from unstable.

> Automatic build of libterralib_3.0.3b2-3.1 on coconut0 by sbuild/ia64 0.49
...
> g++ -c -pipe -Wall -W -g -D_REENTRANT -fPIC  -DQT_THREAD_SUPPORT -DQT_SHARED 
> -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. 
> -I../../src/terralib/kernel -I../../src/terralib/functions -I../../src/tiff 
> -I../../src/zlib -I/usr/include/qt3 -o .obj/TeAsciiFile.o 
> ../../src/terralib/kernel/TeAsciiFile.cpp
> ../../src/terralib/kernel/TeAsciiFile.cpp: In member function 'int 
> TeAsciiFile::readIntCSV(char)':
> ../../src/terralib/kernel/TeAsciiFile.cpp:284: error: 'atoi' was not declared 
> in this scope
> ../../src/terralib/kernel/TeAsciiFile.cpp: In member function 'double 
> TeAsciiFile::readFloatCSV(char)':
> ../../src/terralib/kernel/TeAsciiFile.cpp:293: error: 'atof' was not declared 
> in this scope
> make[2]: *** [.obj/TeAsciiFile.o] Error 1

--- src/terralib/kernel/TeAsciiFile.h~  2007-04-02 12:43:58.000000000 +0000
+++ src/terralib/kernel/TeAsciiFile.h   2007-04-02 12:44:08.000000000 +0000
@@ -32,6 +32,7 @@
 
 #include <stdio.h>
 
+#include <cstdlib>
 #include <vector> 
 #include <string>
 using namespace std;
--- src/terralib/kernel/TeCoord2D.h~    2007-04-02 12:44:18.000000000 +0000
+++ src/terralib/kernel/TeCoord2D.h     2007-04-02 12:44:27.000000000 +0000
@@ -31,6 +31,7 @@
 #include "TeDefines.h"
 #include "TePrecision.h"
 
+#include <string>
 #include <vector>
 
 using namespace std;
--- src/terralib/kernel/TeDatum.h~      2007-04-02 12:45:10.000000000 +0000
+++ src/terralib/kernel/TeDatum.h       2007-04-02 12:45:18.000000000 +0000
@@ -24,6 +24,7 @@
 #ifndef  __TERRALIB_INTERNAL_DATUM_H
 #define  __TERRALIB_INTERNAL_DATUM_H
 
+#include <cstdlib>
 #include <string>
 #include <cmath>
 using namespace std;
--- src/terralib/kernel/TeGraph.cpp~    2007-04-02 12:46:33.000000000 +0000
+++ src/terralib/kernel/TeGraph.cpp     2007-04-02 12:47:26.000000000 +0000
@@ -31,6 +31,7 @@
 #include <float.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 
 int set_font(int font_number);
--- src/terralib/kernel/TeTime.cpp~     2007-04-02 12:49:53.000000000 +0000
+++ src/terralib/kernel/TeTime.cpp      2007-04-02 12:50:00.000000000 +0000
@@ -24,6 +24,7 @@
 #include <TeTime.h>
 #include <memory.h>
 #include <TeUtils.h>
+#include <cstdlib>
 #include <iostream>
 
 //return the number of the month
--- src/terralib/kernel/TeUtils.cpp~    2007-04-02 12:50:19.000000000 +0000
+++ src/terralib/kernel/TeUtils.cpp     2007-04-02 12:50:28.000000000 +0000
@@ -25,6 +25,7 @@
 #include "TeUtils.h"
 #include "TeDefines.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 
 string

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


_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to