From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: complex support on solaris? Date: Mon, 14 Jan 2008 07:21:35 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200313310 19304 80.91.229.12 (14 Jan 2008 12:21:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 12:21:50 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 14 13:22:13 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JEOKL-0004cG-RU for guile-devel@m.gmane.org; Mon, 14 Jan 2008 13:22:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEOJx-0002Yh-EZ for guile-devel@m.gmane.org; Mon, 14 Jan 2008 07:21:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEOJu-0002VW-1O for guile-devel@gnu.org; Mon, 14 Jan 2008 07:21:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEOJs-0002Tw-Lp for guile-devel@gnu.org; Mon, 14 Jan 2008 07:21:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEOJs-0002Td-Ct for guile-devel@gnu.org; Mon, 14 Jan 2008 07:21:36 -0500 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JEOJs-00012S-2j for guile-devel@gnu.org; Mon, 14 Jan 2008 07:21:36 -0500 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id 0FA8C52EC; Mon, 14 Jan 2008 07:21:35 -0500 (EST) X-Hashcash: 1:20:080114:guile-devel@gnu.org::lKfEpLQ6Cf24SQcK:0000000000000000000000000000000000000000002r8h User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (berkeley-unix) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6962 Archived-At: As pkgsrc maintainer of the guile package, I got a bug report about not building on Solaris. The submitter doesn't have enough time for guile any more, but the problem seems to be that Solaris's /usr/include/complex.h expects the "compilation environment" to provide _Complex_I. Adding this line to numbers.c allowed it to build: #define _Complex_I 1.0fi The full PR is at: http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=37556 So this seems to be a gcc/Solaris interaction where they don't jointly meet C99. On NetBSD-current, _Complex_I is provided in complex.h (gcc 4.1.3). On NetBSD-4, complex.h is not provided at all (gcc 4.1.2). So I wonder if guile should test for _Complex_I as well in the complex.h case, and ignore complex.h if _Complex_I isn't defined. (Separately gcc on Solaris should define it, probably, but I don't fully understand the standard here.)