[Gmsh] Fwd: [Pkg-scicomp-devel] Bug#525733: FTBFS with GCC 4.4: missing #include

Christophe Prud'homme prudhomm at debian.org
Sat May 2 08:54:54 CEST 2009


Christophe and the other gmsh devs

here is a patch for gmsh. Gmsh fails to build with gcc 4.4 at the
moment (the fix are rather trivial ;) )

Also I think it would be nice that this list receives the notification
of gmsh bugs found by debian and its community.
It would allow a more direct communication between debian and gmsh.
To do that just subscribe gmsh at geuz.org to the Pts on the right box
form of the  page
http://packages.qa.debian.org/g/gmsh.html

what do you all think ?

Best regards
C.


---------- Forwarded message ----------
From: Martin Michlmayr <tbm at cyrius.com>
Date: Sun, Apr 26, 2009 at 10:34 PM
Subject: [Pkg-scicomp-devel] Bug#525733: FTBFS with GCC 4.4: missing #include
To: submit at bugs.debian.org


Package: gmsh
Version: 2.3.1.dfsg-2
User: debian-gcc at lists.debian.org
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-snapshot from unstable or
gcc-4.4 from experimental.

> Automatic build of gmsh_2.3.1.dfsg-2 on em64t by sbuild/amd64 0.53
...
> g++ -O3 -I/usr/include/opencascade -DHAVE_NO_OCC_CONFIG_H -I/usr/include/mpi -DOMPI_SKIP_MPICXX -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -D_OCC64 -I../Common -I../Geo -I../Mesh -I../Post -I../Graphics -I../Numeric -I../Parser -I../Plugin -I../Fltk -I../contrib/MathEval -I../contrib/ANN/include  -c StringUtils.cpp
> StringUtils.cpp: In function 'std::string ExtractDoubleQuotedString(const char*, int)':
> StringUtils.cpp:31: error: 'EOF' was not declared in this scope
> make[2]: *** [StringUtils.o] Error 1
...
> g++ -O3 -I/usr/include/opencascade -DHAVE_NO_OCC_CONFIG_H -I/usr/include/mpi -DOMPI_SKIP_MPICXX -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -D_OCC64 -I../Common -I../Geo -I../Mesh -I../Post -I../Graphics -I../Numeric -I../Parser -I../Plugin -I../Fltk -I../contrib/MathEval -I../contrib/ANN/include  -c PViewDataIO.cpp
> PViewDataIO.cpp: In member function 'virtual bool PViewData::writeSTL(std::string)':
> PViewDataIO.cpp:13: error: 'fopen' was not declared in this scope
> PViewDataIO.cpp:26: error: 'fprintf' was not declared in this scope
> PViewDataIO.cpp:65: error: 'fclose' was not declared in this scope
> PViewDataIO.cpp: In member function 'virtual bool PViewData::writeTXT(std::string)':
> PViewDataIO.cpp:71: error: 'fopen' was not declared in this scope
> PViewDataIO.cpp:83: error: 'fprintf' was not declared in this scope
> PViewDataIO.cpp:90: error: 'fprintf' was not declared in this scope
> PViewDataIO.cpp:92: error: 'fprintf' was not declared in this scope
> PViewDataIO.cpp:94: error: 'fprintf' was not declared in this scope
> PViewDataIO.cpp:97: error: 'fclose' was not declared in this scope
> make[2]: *** [PViewDataIO.o] Error 1
> make[2]: Leaving directory `/build/tbm/gmsh-2.3.1.dfsg/Post'
etc

--- contrib/Chaco/main/Gmsh_printf.cpp~ 2009-04-26 20:29:45.000000000 +0000
+++ contrib/Chaco/main/Gmsh_printf.cpp  2009-04-26 20:29:53.000000000 +0000
@@ -3,6 +3,7 @@
 // See the LICENSE.txt file for license information. Please report all
 // bugs and problems to <gmsh at geuz.org>.

+#include <cstdio>
 #include <cstring>
 #include "GmshMessage.h"

--- Common/StringUtils.cpp~     2009-04-26 20:28:33.000000000 +0000
+++ Common/StringUtils.cpp      2009-04-26 20:29:11.000000000 +0000
@@ -7,6 +7,7 @@
 #include <sys/cygwin.h>
 #endif

+#include <stdio.h>
 #include "StringUtils.h"
 #include "GmshMessage.h"

--- Post/PViewDataIO.cpp~       2009-04-26 20:28:52.000000000 +0000
+++ Post/PViewDataIO.cpp        2009-04-26 20:28:58.000000000 +0000
@@ -3,6 +3,7 @@
 // See the LICENSE.txt file for license information. Please report all
 // bugs and problems to <gmsh at geuz.org>.

+#include <stdio.h>
 #include <string.h>
 #include "GmshMessage.h"
 #include "Numeric.h"
--- Fltk/messageWindow.cpp~     2009-04-26 20:29:27.000000000 +0000
+++ Fltk/messageWindow.cpp      2009-04-26 20:29:34.000000000 +0000
@@ -3,6 +3,7 @@
 // See the LICENSE.txt file for license information. Please report all
 // bugs and problems to <gmsh at geuz.org>.

+#include <stdio.h>
 #include <string.h>
 #include <FL/Fl_Box.H>
 #include <FL/Fl_Return_Button.H>
--- Fltk/aboutWindow.cpp~       2009-04-26 20:31:20.000000000 +0000
+++ Fltk/aboutWindow.cpp        2009-04-26 20:31:28.000000000 +0000
@@ -3,6 +3,7 @@
 // See the LICENSE.txt file for license information. Please report all
 // bugs and problems to <gmsh at geuz.org>.

+#include <stdio.h>
 #include <FL/Fl_Browser.H>
 #include <FL/Fl_Box.H>
 #include <FL/Fl_Button.H>

--
Martin Michlmayr
http://www.cyrius.com/



_______________________________________________
Pkg-scicomp-devel mailing list
Pkg-scicomp-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-scicomp-devel