Package: libdap
Version: 3.9.3-2
User: [email protected]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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-4.4/g++-4.4 from unstable.

> Automatic build of libdap_3.9.3-2 on em64t by sbuild/amd64 0.53
...
>  g++ -DHAVE_CONFIG_H -I. -I./gl -I./GNU -I/usr/include/libxml2 -Wall -W 
> -Wcast-align -g -O2 -c util_mit.cc  -fPIC -DPIC -o 
> .libs/libdapclient_la-util_mit.o
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:65: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:71: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:71: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:71: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:71: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:71: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:71: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc:71: warning: deprecated conversion from string constant to 'char*'
> util_mit.cc: In function 'std::string libdap::date_time_str(time_t*, bool)':
> util_mit.cc:336: error: 'sprintf' was not declared in this scope
> util_mit.cc:360: error: 'sprintf' was not declared in this scope
> make[3]: *** [libdapclient_la-util_mit.lo] Error 1
> make[3]: Leaving directory `/build/tbm/libdap-3.9.3'
> make[2]: *** [all-recursive] Error 1

--- util_mit.cc~        2009-09-17 13:14:45.000000000 +0000
+++ util_mit.cc 2009-09-17 13:14:54.000000000 +0000
@@ -34,6 +34,7 @@
     };
 
 #include <cstring>
+#include <cstdio>
 #include <cstdlib>
 #include <string>
 #include <ctype.h>

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