[Prev][Next][Index][Thread]

[Q] Kaffe/OSKit configuration



oskit-users,

    I'm trying oskit-990722 and kaffe-990723+ running on Linux RedHat
6.0.
    I got problem in installing OSKit when using ./configure
--enable-unixexamples, may i ask what should be changed in order to make
it work?

    I can install OSKit (by ./configure, then make, and make install)
and install Kaffe without problem. The hello kernel can boot
successfully. However, i got problem when i try to configure Kaffe to
run on OSKit.

    I have tried to use the config-oskit.sh in config/i386/oskit after
reading the README in there. After the configuration, i try to make but
get the following error:

Making all in.
make[1]: Entering directory '/usr/local/lib/kaffe\
make top_srcdir='cd /root/kaffe >/dev/null; pwd' \
       top_builddir='cd . >/dev/null; pwd' \
       "DEBUG_ENV=" BUILD_ENVIRONMENT-make
make[2]: Entering directory '/usr/local/lib/kaffe'
echo
CLASSPATH=\${CLASSPATH-.}\'';'\'/root/kaffe/libraries/javalib/Klasses.jar\'';'\;/root/kaffe/libraries/javalib/pizza.jar\;
export CLASSPATH > BUILD_ENVIRONMENT; \
echo
KAFFELIBRARYPATH=\${KAFFELIBRARYPATH+\"\$KAFFELIBRARYPATH\"\'';'\'}for f
in /usr/local/lib/kaffe/libraries/clib/native/libnative.la
/usr/local/lib/kaffe/libraries/clib/net/libnet.la
/usr/local/lib/kaffe/libraries/clib/io/libio.la
/usr/local/lib/kaffe/libraries/clib/zip/libzip.la
/usr/local/lib/kaffe/libraries/clib/math/libmath.la
/usr/local/lib/kaffe/libraries/clib/management/libmanagement.la
/usr/local/lib/kaffe/libraries/clib/security/libsecurity.la
/usr/local/lib/kaffe/libraries/extensions/microsoft/clib/libmicrosoft.la
; do echo "$f" | sed 's%/[^/]*$%%'; done | (tr '\012' ' '; echo) | sed
-e 's/ $//' -e "s/ /\':\'/g"'\; export KAFFELIBRARYPATH >>
BUILD_ENVIRONMENT; \
echo JAVA=/usr/local/lib/kaffe/kaffe/kaffe/Kaffe\; export JAVA >>
BUILD_ENVIRONMENT
make[2]: Leaving directory '/usr/local/lib/kaffe'
make[1]: Leaving directory '/usr/local/lib/kaffe'
Making all in config
make[1]: Entering directory '/usr/local/lib/kaffe/config'
/bin/sh /root/kaffe/config/regen-forward
/root/kaffe/config/i386/oskit/md.h md.h stamp-h02
/bin/sh /root/kaffe/config/regen-forward
/root/kaffe/config/i386/oskit/jit-md.h jit-md.h stamp-h01
make[1]: Leaving directory '/usr/local/lib/kaffe/config'
Making all in include
make[1]: Entering directory '/usr/local/lib/kaffe/include'
make[2]: Entering directory '/usr/local/lib/kaffe/kaffe/kaffeh'
/bin/sh /root/kaffe/config/regen-forward
/root/kaffe/kaffe/kaffeh/../kaffevm/inflate.c inflate.c
source='inflate.c' object='inflate.o' \
depfile='.deps/inflate.Po' tmpdepfile='.deps/inflate.TPo' \
depmode=gcc /bin/sh /root/kaffe/depcomp \
/usr/local/bin/i586-oskit-gcc -posix-oskit -pthread -DHAVE_CONFIG_H -I.
-I/root/kaffe/kaffe/kaffeh -I../../config -I../../include -I../kaffevm
-I/root/kaffe/kaffe/kaffeh/../kaffevm -DKAFFEH -DKVER='"1.0.b4"'
-I/root/kaffe/config -I/root/kaffe/include -I/usr/local/include -02
-Wall -Wstrict-prototypes -c inflate.c
gcc: unrecognized option '-posix-oskit'
/bin/sh /root/kaffe/conifg/regen-forward
/root/kaffe/kaffe/kaffeh/../kaffevm/jar.c jar.c
source='jar.c' object='jar.o' \
depfile='.deps/jar.Po' tmpdepfile='.deps/jar.TPo' \
depmode=gcc /bin/sh /root/kaffe/depcomp \
/usr/local/bin/i586-oskit-gcc -posix-oskit -pthread -DHAVE_CONFIG_H -I.
-I/root/kaffe/kaffe/kaffeh -I../../config -I../../include -I../kaffevm
-I/root/kaffe/kaffe/kaffeh/../kaffevm -DKAFFEH -DKVER='"1.0.b4"'
-I/root/kaffe/config -I/root/kaffe/include -I/usr/local/include -02
-Wall -Wstrict-prototypes -c jar.c
gcc: unrecognized option '-posix-oskit'
/root/kaffe/kaffe/kaffeh/../kaffevm/jar.c: In function 'jar_read':
In file included from jar.c:1:
/root/kaffe/kaffe/kaffeh/../kaffevm/jar.c:45: warning: implicit
declaration of function 'strerror'
/root/kaffe/kaffe/kaffeh/../kaffevm/jar.c: In function 'openJarFile':
/root/kaffe/kaffe/kaffeh/../kaffevm/jar.c:222: 'O_RDONLY' undeclared
(first use in this function)
/root/kaffe/kaffe/kaffeh/../kaffevm/jar.c:222: (Each undeclared
identifier is reported only once
/root/kaffe/kaffe/kaffeh/../kaffevm/jar.c:222: for each function it
appears in.)
make[2]: *** [jar.o] Error 1
make[2]: Leaving directory '/usr/local/lib/kaffe/kaffe/kaffeh'
make[1]: *** [stamp-h0all] Error 2
make[1]: Leaving directory '/usr/local/lib/kaffe/include'
make: *** [all-recursive] Error 1

    May i ask how to correct the problem or can anyone teach me how to
configure Kaffe to run on OSKit step by step?

    Thank you for your attention.

Best Regards,
Keith


Follow-Ups: