Manfred Antar wrote:

[begin (sic)]
> /usr/ports/astro/xtide doesn't complie on amd64 or i386 current for me
> It uses /usr/local/bin/gcc48 for compiler.
[snip]
> If  you:
> vi ./work/xtide-2.13.2/xxGlobal.cc
> 
> and add to top of file:
> extern "C" int isnan (double);
> 
> It will compile.
[end (sic)]

Update:

I checked this port on Redports with the X11 option enabled for releases
8.4 to 9.3 with gcc48, both amd64 and i386. I also checked it locally on
9.3/amd64 with Clang. In all of those instances the port builds fine both
with and without your suggested fix(*).

You might want to ask whether someone can test it on 10.X and/or
11-CURRENT, possibly using Poudriere (which seems to be the only thing
that's reliably working at the moment, quelle surprise). I'm including a
patch that does what you suggest and can be used for testing. If it turns
out to be the correct fix, you can attach it to a Bugzilla report if you
choose to submit one.

HTH,

AvW

Ad (*): Except for the /usr/local leftovers that come with the current
Tinderbox breakage and do not otherwise indicate a problem.

-- 
Imbibo, ergo sum.
diff -ruN xtide.orig/files/patch-xxGlobal.cc xtide/files/patch-xxGlobal.cc
--- xtide.orig/files/patch-xxGlobal.cc	1970-01-01 01:00:00.000000000 +0100
+++ xtide/files/patch-xxGlobal.cc	2014-10-02 22:55:37.000000000 +0200
@@ -0,0 +1,11 @@
+--- xxGlobal.cc.orig	2014-10-02 22:35:14.000000000 +0200
++++ xxGlobal.cc	2014-10-02 22:34:57.000000000 +0200
+@@ -18,6 +18,8 @@
+     along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+ 
++extern "C" int isnan (double);
++
+ #include "xtide.hh"
+ 
+ #ifdef GPS_GOOD

Attachment: pgpr1kCOM469H.pgp
Description: PGP signature

Reply via email to