Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2009 22:29:24 -0500 (CDT)
From:      Stephen Montgomery-Smith <stephen@missouri.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/136948: cad/gmsh ports doesn't build with gcc44
Message-ID:  <200907210329.n6L3TOAe046001@cauchy.math.missouri.edu>
Resent-Message-ID: <200907210350.n6L3o2bG084218@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136948
>Category:       ports
>Synopsis:       cad/gmsh ports doesn't build with gcc44
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 21 03:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
FreeBSD laptop3.gateway.2wire.net 8.0-BETA2 FreeBSD 8.0-BETA2 #0: Wed Jul 15 22:39:32 CDT 2009     stephen@laptop3.gateway.2wire.net:/usr/obj/usr/src/sys/LAPTOP3  amd64


	
>Description:
	
>How-To-Repeat:
Set the default to gfortran44 (I did it by editing Mk/bsd.gcc.mk, but I am sure there are better ways).

cd /usr/ports/cad/gmsh && make
>Fix:

As well as adding these files, bump the version number of gmsh.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	files/patch-contrib::Chaco::main::Gmsh_printf.cpp
#	files/patch-Post::PViewDataIO.cpp
#	files/patch-Common::StringUtils.cpp
#	files/patch-Fltk::messageWindow.cpp
#	files/patch-Fltk::aboutWindow.cpp
#	files/patch-Geo::GModelIO_CGNS.cpp
#
echo x - files/patch-contrib::Chaco::main::Gmsh_printf.cpp
sed 's/^X//' >files/patch-contrib::Chaco::main::Gmsh_printf.cpp << 'f325d8cce5ca5a8688cf906a2278ee65'
X--- contrib/Chaco/main/Gmsh_printf.cpp-xxx	2009-07-20 16:52:04.000000000 -0500
X+++ contrib/Chaco/main/Gmsh_printf.cpp	2009-07-20 16:52:15.000000000 -0500
X@@ -4,6 +4,7 @@
X // bugs and problems to <gmsh@geuz.org>.
X 
X #include <cstring>
X+#include <cstdio>
X #include "GmshMessage.h"
X 
X // Overload the printf statements in Chaco to write using Msg::Direct in gmsh
f325d8cce5ca5a8688cf906a2278ee65
echo x - files/patch-Post::PViewDataIO.cpp
sed 's/^X//' >files/patch-Post::PViewDataIO.cpp << '1da473a42e12ddfe650d6bfca209f9e0'
X--- Post/PViewDataIO.cpp-xxx	2009-07-20 16:53:25.000000000 -0500
X+++ Post/PViewDataIO.cpp	2009-07-20 16:53:37.000000000 -0500
X@@ -4,6 +4,7 @@
X // bugs and problems to <gmsh@geuz.org>.
X 
X #include <string.h>
X+#include <cstdio>
X #include "GmshMessage.h"
X #include "Numeric.h"
X #include "PViewData.h"
1da473a42e12ddfe650d6bfca209f9e0
echo x - files/patch-Common::StringUtils.cpp
sed 's/^X//' >files/patch-Common::StringUtils.cpp << 'a80d7698b704299dc7ffa2646f8b3bf0'
X--- Common/StringUtils.cpp-xxx	2009-07-20 16:49:34.000000000 -0500
X+++ Common/StringUtils.cpp	2009-07-20 16:49:53.000000000 -0500
X@@ -9,6 +9,7 @@
X 
X #include "StringUtils.h"
X #include "GmshMessage.h"
X+#include <cstdio>
X 
X void SwapBytes(char *array, int size, int n)
X {
a80d7698b704299dc7ffa2646f8b3bf0
echo x - files/patch-Fltk::messageWindow.cpp
sed 's/^X//' >files/patch-Fltk::messageWindow.cpp << '8bc279846ac922b879683a0a9f3b0d15'
X--- Fltk/messageWindow.cpp-xxx	2009-07-20 16:50:18.000000000 -0500
X+++ Fltk/messageWindow.cpp	2009-07-20 16:50:28.000000000 -0500
X@@ -4,6 +4,7 @@
X // bugs and problems to <gmsh@geuz.org>.
X 
X #include <string.h>
X+#include <cstdio>
X #include <FL/Fl_Box.H>
X #include <FL/Fl_Return_Button.H>
X #include <FL/fl_ask.H>
8bc279846ac922b879683a0a9f3b0d15
echo x - files/patch-Fltk::aboutWindow.cpp
sed 's/^X//' >files/patch-Fltk::aboutWindow.cpp << 'd3b17b08a86d32e72d030199c189dc08'
X--- Fltk/aboutWindow.cpp-xxx	2009-07-20 16:56:09.000000000 -0500
X+++ Fltk/aboutWindow.cpp	2009-07-20 16:56:21.000000000 -0500
X@@ -13,6 +13,7 @@
X #include "StringUtils.h"
X #include "OS.h"
X #include "Context.h"
X+#include <cstdio>
X 
X static void help_license_cb(Fl_Widget *w, void *data)
X {
d3b17b08a86d32e72d030199c189dc08
echo x - files/patch-Geo::GModelIO_CGNS.cpp
sed 's/^X//' >files/patch-Geo::GModelIO_CGNS.cpp << '5cc5da1019503b18a8722807aaf19f14'
X--- Geo/GModelIO_CGNS.cpp-xxx	2009-07-20 16:54:23.000000000 -0500
X+++ Geo/GModelIO_CGNS.cpp	2009-07-20 16:55:01.000000000 -0500
X@@ -24,6 +24,7 @@
X #define omp_destroy_lock(x)
X #endif
X 
X+#include <cstdio>
X #include <cstring>
X #include <iostream>  // DBG
X #include <map>
5cc5da1019503b18a8722807aaf19f14
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907210329.n6L3TOAe046001>