Compile fails with syntax error in source code. Fix: Don't know, that line looks pretty innocuous: double INFINITY = 1.79769313486231570815E308; /* 2**1024*(1-MACHEP) */ And I don't see any "float" nearby. :-( How-To-Repeat: cd /usr/ports/math/guppi/ make ===> Extracting for guppi-0.40.3_2
Responsible Changed From-To: freebsd-ports-bugs->gnome Over to Maintainers
I ran into the exact same problem. It looks like this problem is caused because INFINITY is defined in /usr/include/math.h. It looks like it was added in rev 1.21 (about a month ago). I just commented out the block with the following patch: --- src/libguppispecfns/const.c.orig Tue Mar 11 23:33:38 2003 +++ src/libguppispecfns/const.c Tue Mar 11 23:34:02 2003 @@ -93,10 +93,12 @@ double LOGSQ2 = 3.46573590279972654709E-1; /* log(2)/2 */ double THPIO4 = 2.35619449019234492885; /* 3*pi/4 */ double TWOOPI = 6.36619772367581343075535E-1; /* 2/pi */ +#if 0 #ifdef INFINITIES double INFINITY = 1.0 / 0.0; /* 99e999; */ #else double INFINITY = 1.79769313486231570815E308; /* 2**1024*(1-MACHEP) */ +#endif #endif #ifdef MINUSZERO I don't know if using the #defined value in math.h will break Guppi or not, but at least it now compiles :). This problem only occurs CURRENT because STABLE's math.h doesn't define INFINITY. Heath
State Changed From-To: open->closed This should now be fixed.