Bug 48839 - math/guppi 0.40.3_2 compile fails, syntax error
Summary: math/guppi 0.40.3_2 compile fails, syntax error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-02 15:00 UTC by chris
Modified: 2003-04-02 04:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chris 2003-03-02 15:00:23 UTC
	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
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2003-03-03 23:20:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to Maintainers
Comment 2 heath 2003-03-12 07:08:07 UTC
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
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2003-04-02 04:33:37 UTC
State Changed
From-To: open->closed

This should now be fixed.