[kaffe] kaffe on oskit

Martin Pohlack mp26@os.inf.tu-dresden.de
Mon May 26 09:35:02 2003


> Just to keep you up to date ...
> 
> I just found a short workaround be modifying one line in 
> kaffe/replace/Makefile:
> 
> LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
> 
> to
> 
> LINK = $(LIBTOOL) --tag CCLD --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
> 
>                   ^^^^^^^^^^
> 
> according to http://gcc.gnu.org/ml/libstdc++/2000-10/msg00130.html.
> 
> Now the "make all" gets until the next usage of "libtool --mode=link" in 
> kaffe/libraries/clib/native.
> 
> I'll dive into that tomorrow ...
> 
> Martin Pohlack

I got somewhat further with the attempt to build kaffe for (a specific) 
oskit.

Therefor I had to accomplish the following steps:

1.) in kaffe/ configuring for oskit with my paths:

config/i386/oskit/oskit-configure --srcdir=/home/mp26/tmp/kaffe 
--oskitdir=/home/mp26/soft --localkaffeh=`which kaffeh` 
--prefix=/home/mp26/soft_l4


2.) patch the Makefiles somewhat to circumvent some problems with 
libtool (in kaffe/):

find . -name Makefile | xargs -n 1 perl -p -i -e 's/LINK =
\$\(LIBTOOL\) --mode=link/LINK = \$(LIBTOOL) --tag CCLD --mode=link/g'


3.) adapt paths in soft/lib/oskit/specs to point to the real install dir 
(these pointed to the source dir before)


4.) manually install 'liboskit_svm.a' to soft/lib to get configure 
working again


5.) in soft/include/*/socket.h: comment out all definitions of 'AF_INET6'


However, now I'm stuck with the following error:

make[2]: Entering directory `/home/mp26/tmp/kaffe/kaffe/kaffeh'
source='support.c' object='support.o' libtool=no \
depfile='.deps/support.Po' tmpdepfile='.deps/support.TPo' \
depmode=gcc /bin/sh /home/mp26/tmp/kaffe/depcomp \
/home/mp26/soft/bin/x86-oskit-gcc -posix-oskit -pthread -nostdinc 
-DHAVE_CONFIG_H -I. -I/home/mp26/tmp/kaffe/kaffe/kaffeh -I../../config 
-I../../include  -I../kaffevm 
-I/home/mp26/tmp/kaffe/kaffe/kaffeh/../kaffevm -DKAFFEH 
-DKVER='"1.1.x-cvs"' -I/home/mp26/tmp/kaffe/kaffe/kaffevm 
-I/home/mp26/tmp/kaffe/kaffe/kaffevm/systems/oskit-pthreads 
-I/home/mp26/tmp/kaffe/config -I/home/mp26/tmp/kaffe/include   -g -O2 
-Wall -Wstrict-prototypes -c `test -f 'support.c' || echo 
'/home/mp26/tmp/kaffe/kaffe/kaffeh/'`support.c
In file included from ../kaffevm/thread.h:17,
                  from 
/home/mp26/tmp/kaffe/kaffe/kaffevm/systems/oskit-pthreads/jthread.h:33,
                  from ../kaffevm/classMethod.h:21,
                  from support.c:23:
../../include/native.h:49: redefinition of `Hjava_lang_Object'
java_lang_Object.h:19: `Hjava_lang_Object' previously declared here
make[2]: *** [support.o] Error 1
make[2]: Leaving directory `/home/mp26/tmp/kaffe/kaffe/kaffeh'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mp26/tmp/kaffe/kaffe'
make: *** [all-recursive] Error 1


I found somewhat related problems here:
http://www.kaffe.org/pipermail/kaffe/2001-April/007247.html

but this doesn't help me.


Any suggestions???


greetings,
Martin Pohlack