Package: pion-net
Version: 2.1.8+dfsg-1
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 pion-net_2.1.8+dfsg-1 on em64t by sbuild/amd64 0.53
...
>  g++ -DHAVE_CONFIG_H -I. -I. -I../../common/include/pion 
> -I/build/tbm/pion-net-2.1.8+dfsg/common/include -I../include -pthread 
> -D_REENTRANT -I/usr/include -DPION_NETWORK_LIBRARY -O2 -ggdb -Wall 
> -Wno-strict-aliasing -DNDEBUG -MT HTTPTypes.lo -MD -MP -MF 
> .deps/HTTPTypes.Tpo -c HTTPTypes.cpp  -fPIC -DPIC -o .libs/HTTPTypes.o
> HTTPTypes.cpp: In static member function 'static std::string 
> pion::net::HTTPTypes::url_encode(const std::string&)':
> HTTPTypes.cpp:275: error: 'sprintf' was not declared in this scope
> make[3]: *** [HTTPTypes.lo] Error 1
> make[3]: Leaving directory `/build/tbm/pion-net-2.1.8+dfsg/net/src'

--- net/src/HTTPTypes.cpp~      2009-10-05 12:51:13.000000000 +0000
+++ net/src/HTTPTypes.cpp       2009-10-05 12:51:24.000000000 +0000
@@ -10,6 +10,7 @@
 #include <boost/lexical_cast.hpp>
 #include <boost/thread/mutex.hpp>
 #include <pion/net/HTTPTypes.hpp>
+#include <cstdio>
 #include <ctime>
 
 

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