Bug#455621: FTBFS with GCC 4.3: missing #includes

2008-03-06 Thread Cyril Brulebois
tag 455621 patch
thanks

Martin Michlmayr [EMAIL PROTECTED] (11/12/2007):
 I'm afraid that GCC had some changes since #417428 was filed that will
 break more code.  There shouldn't be any other changes in GCC that
 will break code though before 4.3 is released.

Hi,

please find a patch to fix the current FTBFS.

Cheers,

-- 
Cyril Brulebois
--- a/dpyfuncs.cc
+++ b/dpyfuncs.cc
@@ -28,6 +28,8 @@
 #include metacam.h
 #include dpyfuncs.h
 
+#include cstring
+
 static const char *rcsid __attribute__((unused))=$Id: dpyfuncs.cc,v 1.14 2004/08/21 17:54:20 daniel Exp $;
 
 void
--- a/ocontext.cc
+++ b/ocontext.cc
@@ -26,6 +26,7 @@
 
 #include ctype.h
 #include cstdlib
+#include cstring
 
 OutputContext::~OutputContext()
 {


signature.asc
Description: Digital signature


Bug#455621: FTBFS with GCC 4.3: missing #includes

2007-12-11 Thread Juan Angulo Moreno
Hi,

It is very stranger because from 1.2-3 is fixed (look bug #417428),
You can see in
http://ftp.debian.org/debian/pool/main/m/metacam/metacam_1.2-4.diff.gz



Martin Michlmayr escribió:
 Package: metacam
 Version: 1.2-4
 Usertags: ftbfs-gcc-4.3

 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).  There's some more information about this at
 http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include

 You can reproduce this problem with gcc-snapshot from unstable.  Note
 that Red Hat, Novell and Ubuntu have done some work getting packages
 to build with GCC 4.3 so there might be patches floating around
 somewhere.  I suggest you talk to your upstream.

 Automatic build of metacam_1.2-4 on em64t by sbuild/amd64 0.53
 ...
 g++ -g -Wall -O2   -c -o canontags.o canontags.cc
 g++ -g -Wall -O2   -c -o casiotags.o casiotags.cc
 g++ -g -Wall -O2   -c -o dpyfuncs.o dpyfuncs.cc
 dpyfuncs.cc: In function 'void dpyCanonBlock1(OutputContext, const
char*, const IFDEntry, const void*)':
 dpyfuncs.cc:432: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:455: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:455: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:455: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:476: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:476: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:476: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant
to 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant
to 'char*'
 

Bug#455621: FTBFS with GCC 4.3: missing #includes

2007-12-11 Thread Martin Michlmayr

* Juan Angulo Moreno [EMAIL PROTECTED] [2007-12-11 12:51]:
 It is very stranger because from 1.2-3 is fixed (look bug #417428),

I'm afraid that GCC had some changes since #417428 was filed that will
break more code.  There shouldn't be any other changes in GCC that
will break code though before 4.3 is released.
-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#455621: FTBFS with GCC 4.3: missing #includes

2007-12-10 Thread Martin Michlmayr
Package: metacam
Version: 1.2-4
Usertags: ftbfs-gcc-4.3

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).  There's some more information about this at
http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

 Automatic build of metacam_1.2-4 on em64t by sbuild/amd64 0.53
...
 g++ -g -Wall -O2   -c -o canontags.o canontags.cc
 g++ -g -Wall -O2   -c -o casiotags.o casiotags.cc
 g++ -g -Wall -O2   -c -o dpyfuncs.o dpyfuncs.cc
 dpyfuncs.cc: In function 'void dpyCanonBlock1(OutputContext, const char*, 
 const IFDEntry, const void*)':
 dpyfuncs.cc:432: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:432: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:448: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:455: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:455: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:455: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:460: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:468: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:476: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:476: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:476: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:483: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:491: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:499: warning: deprecated conversion from string constant to 
 'char*'
 dpyfuncs.cc:499: warning: deprecated