problem compiling kaffe beta3 on Solaris
Godmar Back
gback at cs.utah.edu
Fri Dec 11 15:30:24 PST 1998
These errors come about because we currently re#define symbols such
as malloc, free, or open in kaffe header files. If standard system
headers are included after such redefinitions, bad things happen.
For the specific Solaris failure, Alexandre already put a fix in
the CVS (I think it's to include <stdlib.h> *before* we include the
other headers.)
While these redefinitions were well-intentioned, we're now constantly
getting screwed by them, and it is high time to scrap them.
As for the problem with double align[0], that's a gcc extension.
I don't think the Solaris port of kaffe will compile with any compiler
but gcc.
- Godmar
>
> Moses DeJong wrote:
>
> > I just attempted to compile kaffe beta3 on Solaris 5.6 sparc and I got
> > this error message.
> >
> > mo(/tmp/mo/kaffe-1.0.b3)% make
> > make[1]: Entering directory `/tmp/mo/kaffe-1.0.b3/config'
> > make[1]: Nothing to be done for `all'.
> > make[1]: Leaving directory `/tmp/mo/kaffe-1.0.b3/config'
> > make[1]: Entering directory `/tmp/mo/kaffe-1.0.b3/include'
> > make[1]: Nothing to be done for `all'.
> > make[1]: Leaving directory `/tmp/mo/kaffe-1.0.b3/include'
> > make[1]: Entering directory `/tmp/mo/kaffe-1.0.b3/libraries'
> > make[2]: Entering directory `/tmp/mo/kaffe-1.0.b3/libraries/clib'
> > make[3]: Entering directory `/tmp/mo/kaffe-1.0.b3/libraries/clib/native'
> > make[3]: Nothing to be done for `all'.
> > make[3]: Leaving directory `/tmp/mo/kaffe-1.0.b3/libraries/clib/native'
> > make[3]: Entering directory `/tmp/mo/kaffe-1.0.b3/libraries/clib/io'
> > gcc -g -O2 -Wall -Wstrict-prototypes -I. -I../../../include -I./../../../include -I../../../config -I./../../../config -c -fPIC AudioPlayer.c -o AudioPlayer.o
> > In file included from ../../../config/config-std.h:15,
> > from ../../../include/files.h:15,
> > from AudioPlayer.c:12:
> > /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/include/stdlib.h:112: parse error before `('
> > make[3]: *** [AudioPlayer.o] Error 1
> > make[3]: Leaving directory `/tmp/mo/kaffe-1.0.b3/libraries/clib/io'
> > make[2]: *** [all] Error 1
> > make[2]: Leaving directory `/tmp/mo/kaffe-1.0.b3/libraries/clib'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/tmp/mo/kaffe-1.0.b3/libraries'
> > make: *** [all] Error 1
> >
> > Has anyone else run into this?
> >
> > Mo DeJong
> > dejong at cs.umn.edu
> > gimme multimedia group
>
> I got the same one when compiling on Win NT with sygwin. I just commented out the "faulty" line and everything went fine ( i could not figure out what was wrong
> with this line ).
>
>
>
More information about the kaffe
mailing list