[kaffe] errors on MacosX 10.1

Dalibor Topic robilad at kaffe.org
Thu Jul 15 15:08:13 PDT 2004


Riccardo wrote:
> Hello,
> 
> I get these errors on macosX 10.1 (darwin 5.5)

Ciao Riccardo,

thanks for the bug report.

> ./../../../../kaffe/kaffe/kaffevm/systems/unix-jthreads/../../support.h:
> 128: illegal function definition, found `__attribute__'

Ah, a gcc bug ;) You gcc version doesn't like functions that have 
multiple attributes, apparently. You could try shuffling the attributes 
around.

> /Users/multix/kaffe-cvs/darwin5/../kaffe/kaffe/kaffevm/intrp/../
> exception.h:116: illegal function definition, found `__attribute__'

Same as above.

> ./../../../../kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h:356: 
> illegal function prototype, found `__attribute__'

I assume that gcc 2.9x preferred to see variable attributes behind the 
variable declaration, so you could try shuffling the UNUSED to the back 
of the parameter list.

cheers,
dalibor topic




More information about the kaffe mailing list