Debian Bug report logs - #417363
FTBFS with GCC 4.3: missing #includes

version graph

Package: libterralib; Maintainer for libterralib is Debian GIS Team <pkg-grass-devel@lists.alioth.debian.org>; Source for libterralib is src:libterralib.

Reported by: Martin Michlmayr <tbm@cyrius.com>

Date: Mon, 2 Apr 2007 13:00:06 UTC

Severity: serious

Tags: lenny, patch, sid

Found in version 3.0.3b2-3.1

Fixed in version 3.0.3b2-3.1+rm

Done: Lucas Nussbaum <lucas@lucas-nussbaum.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GIS Team <pkg-grass-devel@lists.alioth.debian.org>:
Bug#417363; Package libterralib. Full text and rfc822 format available.

Acknowledgement sent to Martin Michlmayr <tbm@cyrius.com>:
New Bug report received and forwarded. Copy sent to Debian GIS Team <pkg-grass-devel@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Martin Michlmayr <tbm@cyrius.com>
To: submit@bugs.debian.org
Subject: FTBFS with GCC 4.3: missing #includes
Date: Mon, 2 Apr 2007 13:58:33 +0100
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/



Severity set to `important' from `normal' Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org. (Tue, 29 May 2007 09:32:58 GMT) Full text and rfc822 format available.

Severity set to `serious' from `important' Request was from Marc Brockschmidt <marc@marcbrockschmidt.de> to control@bugs.debian.org. (Sat, 05 Apr 2008 12:45:10 GMT) Full text and rfc822 format available.

Reply sent to Lucas Nussbaum <lucas@lucas-nussbaum.net>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Martin Michlmayr <tbm@cyrius.com>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #14 received at 417363-done@bugs.debian.org (full text, mbox):

From: Lucas Nussbaum <lucas@lucas-nussbaum.net>
To: 417363-done@bugs.debian.org
Subject: libterralib has been removed from Debian, closing #417363
Date: Mon, 14 Apr 2008 15:48:35 +0200
Version: 3.0.3b2-3.1+rm

The libterralib package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.

For more information about this package's removal, read
http://bugs.debian.org/474439 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.
-- 
Lucas




Tags added: lenny, sid Request was from Frank Lichtenheld <djpig@debian.org> to control@bugs.debian.org. (Sat, 16 Aug 2008 02:48:17 GMT) Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 16 Feb 2009 08:22:47 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 25 07:50:55 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.