Date: Tue, 11 Mar 2003 23:10:07 -0800 (PST) From: Heath Nielson <heath@cs.byu.edu> To: gnome@FreeBSD.org Subject: Re: ports/48839: math/guppi 0.40.3_2 compile fails, syntax error Message-ID: <200303120710.h2C7A7Pi012331@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/48839; it has been noted by GNATS. From: Heath Nielson <heath@cs.byu.edu> To: freebsd-gnats-submit@FreeBSD.org, chris@Shenton.Org Cc: Subject: Re: ports/48839: math/guppi 0.40.3_2 compile fails, syntax error Date: Wed, 12 Mar 2003 00:08:07 -0700 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303120710.h2C7A7Pi012331>