From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@chbouib.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: build fail with sun cc Date: Sat, 31 Mar 2007 20:36:22 +0200 Message-ID: <87648hclax.fsf@chbouib.org> References: <1175011015.14536.2.camel@localhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175367581 13631 80.91.229.12 (31 Mar 2007 18:59:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2007 18:59:41 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Mar 31 20:59:35 2007 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HXinV-0000Dq-Qa for guile-bugs@m.gmane.org; Sat, 31 Mar 2007 20:59:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXiqL-0000XG-3Y for guile-bugs@m.gmane.org; Sat, 31 Mar 2007 14:02:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HXiqG-0000Wn-Pf for bug-guile@gnu.org; Sat, 31 Mar 2007 15:02:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HXiqF-0000WM-7P for bug-guile@gnu.org; Sat, 31 Mar 2007 15:02:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXiqF-0000WJ-2H for bug-guile@gnu.org; Sat, 31 Mar 2007 14:02:23 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HXinO-0008GF-MU for bug-guile@gnu.org; Sat, 31 Mar 2007 14:59:26 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HXij8-00029U-UT for bug-guile@gnu.org; Sat, 31 Mar 2007 20:55:03 +0200 Original-Received: from adh419.fdn.fr ([80.67.176.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2007 20:55:02 +0200 Original-Received: from ludo by adh419.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2007 20:55:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adh419.fdn.fr X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 11 Germinal an 215 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i486-pc-linux-gnu User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:e9/Du5oCBsmXkuEzMbeL232JYOo= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3487 Archived-At: Hi, Halton Huo writes: > sun cc will build fail, just offer two patches to let sun cc build pass. Can you be more specific as to what goes wrong? Perhaps you could post the error messages here? > --- guile-1.8.1/libguile/numbers.c.orig 2007-03-22 17:46:53.913105000 +0800 > +++ guile-1.8.1/libguile/numbers.c 2007-03-22 17:47:09.790497000 +0800 > @@ -183,7 +183,11 @@ > > > > +#ifdef __GNUC__ > SCM_C_INLINE_KEYWORD SCM > +#else > +SCM > +#endif This should not be needed. Normally, what happens is that `configure' detects whether the C compiler supports the `inline' keyword (or something like `__inline__'). If it does, then it defines `SCM_C_INLINE' to be that keyword; if it doesn't, it simply `#define SCM_C_INLINE' (see `scmconfig.h'). `SCM_C_INLINE_KEYWORD', in turn, is defined to be either `SCM_C_INLINE' or nothing (see `__scm.h'). Thus, if your compiler does not support `inline' (which your patch seems to imply), the definition of `SCM_C_INLINE' and `SCM_C_INLINE_KEYWORD' should yield exactly the same effect as the `#ifdef __GNUC__' you propose to add. So I think you should check whether your compiler supports `inline' and look what value `configure' assigned to `SCM_C_INLINE' in `scmconfig.h'. Thanks, Ludovic. _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile