Package: metacam
Version: 1.2-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 (20070326-1 or higher)
from unstable.
> Automatic build of metacam_1.2-2 on coconut0 by sbuild/ia64 0.49
...
> g++ -g -Wall -O2 -c -o metacam.o metacam.cc
> metacam.cc: In function 'int main(int, char**)':
> metacam.cc:334: error: 'exit' was not declared in this scope
> metacam.cc:335: error: 'exit' was not declared in this scope
> make[1]: *** [metacam.o] Error 1
--- metacam.cc~ 2007-04-02 18:49:33.000000000 +0000
+++ metacam.cc 2007-04-02 18:49:47.000000000 +0000
@@ -23,6 +23,7 @@
#include <iostream>
#include <fstream>
#include <cstdio>
+#include <cstdlib>
#include <errno.h>
#include <netinet/in.h>
#include <string.h>
--- datatiff.h~ 2007-04-02 18:51:37.000000000 +0000
+++ datatiff.h 2007-04-02 18:51:45.000000000 +0000
@@ -24,6 +24,7 @@
#define DATATIFF_H_INCLUDED
#include "metatiff.h"
+#include <cstdlib>
class _DataIFD;
class _DataIFDEntry;
--- edittiff.h~ 2007-04-02 18:52:04.000000000 +0000
+++ edittiff.h 2007-04-02 18:52:09.000000000 +0000
@@ -24,6 +24,7 @@
#define EDITTIFF_H_INCLUDED
#include "metatiff.h"
+#include <cstdlib>
class _EditIFD;
--- ocontext.cc~ 2007-04-02 18:52:34.000000000 +0000
+++ ocontext.cc 2007-04-02 18:52:40.000000000 +0000
@@ -25,6 +25,7 @@
#include "odrivers.h"
#include <ctype.h>
+#include <cstdlib>
OutputContext::~OutputContext()
{
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]