Package: tclap
Version: 1.1.0-1
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

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

> Automatic build of tclap_1.1.0-1 on em64t by sbuild/amd64 0.53
...
> Making all in examples
> make[2]: Entering directory `/build/tbm/tclap-1.1.0/examples'
> if g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include   -Wall -g -O2 -MT 
> test1.o -MD -MP -MF ".deps/test1.Tpo" \
>         -c -o test1.o `test -f 'test1.cpp' || echo './'`test1.cpp; \
>       then mv -f ".deps/test1.Tpo" ".deps/test1.Po"; \
>       else rm -f ".deps/test1.Tpo"; exit 1; \
>       fi
> In file included from ../include/tclap/UnlabeledValueArg.h:30,
>                  from ../include/tclap/CmdLine.h:28,
>                  from test1.cpp:4:
> ../include/tclap/ValueArg.h: In member function 'int 
> TCLAP::VALUE_ARG_HELPER::ValueExtractor<T>::extractValue(const std::string&)':
> ../include/tclap/ValueArg.h:103: error: 'EOF' was not declared in this scope
> In file included from ../include/tclap/UnlabeledMultiArg.h:29,
>                  from ../include/tclap/CmdLine.h:29,
>                  from test1.cpp:4:
> ../include/tclap/MultiArg.h: In member function 'int 
> TCLAP::MULTI_ARG_HELPER::ValueExtractor<T>::extractValue(const std::string&)':
> ../include/tclap/MultiArg.h:103: error: 'EOF' was not declared in this scope
> make[2]: *** [test1.o] Error 1

--- include/tclap/MultiArg.h~   2008-11-07 16:59:23.000000000 +0000
+++ include/tclap/MultiArg.h    2008-11-07 16:59:34.000000000 +0000
@@ -23,6 +23,7 @@
 #ifndef TCLAP_MULTIPLE_ARGUMENT_H
 #define TCLAP_MULTIPLE_ARGUMENT_H
 
+#include <cstdio>
 #include <string>
 #include <vector>
 
--- include/tclap/ValueArg.h~   2008-11-07 16:59:36.000000000 +0000
+++ include/tclap/ValueArg.h    2008-11-07 16:59:42.000000000 +0000
@@ -23,6 +23,7 @@
 #ifndef TCLAP_VALUE_ARGUMENT_H
 #define TCLAP_VALUE_ARGUMENT_H
 
+#include <cstdio>
 #include <string>
 #include <vector>
 

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