Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Oct 2014 11:26:05 -0700
From:      Manfred Antar <null@pozo.com>
To:        ports@freebsd.org
Cc:        , brion@queeg.com, marino@freebsd.org
Subject:   Xtide Broken on X86 X64 current
Message-ID:  <201410021826.s92IQ52J017427@pozo.com>

next in thread | raw e-mail | index | archive | help
/usr/ports/astro/xtide doesn't complie on amd64 or i386 current for me
It uses /usr/local/bin/gcc48 for compiler.
System is current.
The error is :

xxGlobal.cc: In function 'void Global::PositioningSystem(Coordinates&)':
xxGlobal.cc:80:24: error: 'isnan' was not declared in this scope
         if (!(isnan(lat) || isnan(lng))) {
                        ^
xxGlobal.cc:80:24: note: suggested alternative:
In file included from /usr/local/lib/gcc48/include/c++/random:38:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:65,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from common.hh:135,
                 from xtide.hh:21,
                 from xxGlobal.cc:21:
/usr/local/lib/gcc48/include/c++/cmath:632:5: note:   'std::isnan'
     isnan(_Tp __x)
     ^
mv -f .deps/xxErrorBox.Tpo .deps/xxErrorBox.Po
gmake[3]: *** [xxGlobal.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
mv -f .deps/xxFilename.Tpo .deps/xxFilename.Po
mv -f .deps/xxGlobe.Tpo .deps/xxGlobe.Po
gmake[3]: Leaving directory `/usr/ports/astro/xtide/work/xtide-2.13.2'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/astro/xtide/work/xtide-2.13.2'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/astro/xtide
*** Error code 1

If  you:
vi ./work/xtide-2.13.2/xxGlobal.cc

and add to top of file:
extern "C" int isnan (double);

It will compile.
It's been this way awhile, I've had to add this to xxGlobal.cc for some time.
If you turn off the option X11 it will build. But then you just get command line tide program.


========================
||      null@pozo.com           ||
||                                      ||
======================== 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




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