tag 541093 + confirmed pending
thanks

Hi Martin!

On Tue, Aug 11, 2009 at 07:18:42AM -1000, Martin Michlmayr wrote:
> Package: yapet
> Version: 0.4-1
> User: [email protected]
> Usertags: ftbfs-gcc-4.4
> 
> 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 yapet_0.4-1 on em64t by sbuild/amd64 0.53
> ....
> > Making all in csv2yapet
> > make[3]: Entering directory `/build/tbm/yapet-0.4/csv2yapet'
> > c++ -DHAVE_CONFIG_H -I. -I..  -I../yapet -I../crypt 
> > -DLOCALEDIR=\"/usr/share/locale\"    -g -O2 -c -o csv2yapet-main.o `test -f 
> > 'main.cc' || echo './'`main.cc
> > main.cc: In function 'int main(int, char**)':
> > main.cc:244: error: 'sscanf' was not declared in this scope
> > make[3]: *** [csv2yapet-main.o] Error 1
> > make[3]: Leaving directory `/build/tbm/yapet-0.4/csv2yapet'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/build/tbm/yapet-0.4'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/build/tbm/yapet-0.4'
> > dh_auto_build: make returned exit code 2
> > make: *** [build] Error 1

The following patch should fix the ftbfs with gcc-4.4/g++-4.4. Many
thanks, I will forward this also upstream.

--- a/csv2yapet/main.cc
+++ b/csv2yapet/main.cc
@@ -66,6 +66,8 @@
 
 #include "csvimport.h"
 
+#include <cstdio> 
+
 #if defined(HAVE_TERMIOS_H) && defined (HAVE_TCSETATTR) && defined 
(HAVE_TCGETATTR)
 #define CAN_DISABLE_ECHO 1
 #endif

Kind regards
Salvatore

Attachment: signature.asc
Description: Digital signature

Reply via email to