[Rd] bnlearn package compilation failure on MacOSX

Marco Scutari marco.scutari at gmail.com
Thu Oct 4 21:47:26 CEST 2007


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



More information about the R-devel mailing list