From owner-freebsd-gnome Tue Mar 11 23:10:10 2003 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0161C37B401 for ; Tue, 11 Mar 2003 23:10:08 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2EEE43FB1 for ; Tue, 11 Mar 2003 23:10:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2C7A7NS012332 for ; Tue, 11 Mar 2003 23:10:07 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2C7A7Pi012331; Tue, 11 Mar 2003 23:10:07 -0800 (PST) Date: Tue, 11 Mar 2003 23:10:07 -0800 (PST) Message-Id: <200303120710.h2C7A7Pi012331@freefall.freebsd.org> To: gnome@FreeBSD.org Cc: From: Heath Nielson Subject: Re: ports/48839: math/guppi 0.40.3_2 compile fails, syntax error Reply-To: Heath Nielson Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR ports/48839; it has been noted by GNATS. From: Heath Nielson 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