From marco.scutari at gmail.com  Thu Oct  4 21:47:26 2007
From: marco.scutari at gmail.com (Marco Scutari)
Date: Thu, 4 Oct 2007 21:47:26 +0200
Subject: [Rd] bnlearn package compilation failure on MacOSX
In-Reply-To: <Pine.LNX.4.64.0710041945010.5059@gannet.stats.ox.ac.uk>
References: <20071004180536.GA2993@elhalyn>
	<Pine.LNX.4.64.0710041945010.5059@gannet.stats.ox.ac.uk>
Message-ID: <20071004194726.GB2993@elhalyn>


On Thu 04/10/07, Prof Brian Ripley wrote:
> You've got more serious problems than that: you cannot assume gcc.
> For example on the SunPro compiler I got
>
[snip]
>
> Note that is in C99 mode, and under Linux.

Hmm. I'm able to reproduce at least some of these errors using
gcc in ansi mode:

[fizban@~/bnlearn/src]:gcc-4.2 -std=gnu99 -I/usr/share/R/include 
-I/usr/share/R/include -ansi -Wall -pedantic -std=c99 -fpic -g 
-O2 -c mutual.information.c -o mutual.information.o
mutual.information.c: In function 'mi': 
mutual.information.c:34: warning: a member of a structure or union
  cannot have a variably modified type
mutual.information.c:35: warning: a member of a structure or union
  cannot have a variably modified type

I'll work on that. On the other hand I'm still curious: why
r-patched-macosx-ix86 uses -std=gnu99 for the ppc arch but not 
for i386 one?

-- 
Marco Scutari                               
Linux Registered User #341807                  http://counter.li.org
powered by : 
Debian Sid GNU/Linux (SGI-XFS)                       Kernel 2.6.21.3



[Rd] bnlearn package compilation failure on MacOSX
Marco Scutari