[kaffe] kaffe compilation under cygwin
Yavor Georgiev
yavor.g.georgiev at gmail.com
Mon Sep 24 06:45:52 PDT 2007
Hi all,
I am new to kaffe, so excuse me if my question is too simple or already had
been answered. I tried to search a similar problem in the mail-archives, but
found nothing.
I am trying to compile Kaffe(release kaffe-1.1.8) under Cygwin(CYGWIN_NT-5.1
1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin) on MS Windows XP.
The C compiler I use is gcc version 3.4.4.
The linker is LD: GNU ld version 2.17.50 20060817
The make tool is: GNU Make 3.81
I want a very basic support with no gui or sound support for
sure, so I tried to remove everything that seemed unneeded. In result my
configure flags are:
$ ./../kaffe-1.1.8/configure --without-alsa --without-x --without-esd
--disable-sound --disable-xawt-xi18n --disable-gtk-peer --disable-native-awt
--disable-gconf-peer --with-engine=intrp --host=i386-cygwin32
--build=i386-cygwin32
First I had several problems with IPV6 support
functions/structures, it seems that flag USE_IPV6
were not set when compiling some part of the source, but was needed to
include needed structures/functions from header files.
I fixed this easily by adding some ifdefs in the source, since I did not
care about IPV6 support.
Current problem I have that I cannot resolve almost two days now is as
follows. During linking of libkaffevm I get the following errors:
=============================
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -W -Wextra
-fno-strict-aliasing -fno-omit-frame-pointer -g -O2 -module -no-undefined
-export-dynamic -release 1.1.8 -o libkaffevm.la -rpath
/usr/local/kaffe/jre/lib/i386 libkaffevm_la-InetAddressImpl.lolibkaffevm_la-
AccessController.lo libkaffevm_la-java_lang_ref_Reference.lo
libkaffevm_la-java_lang_reflect_VMArray.lo
libkaffevm_la-Constructor.lolibkaffevm_la-
Field.lo libkaffevm_la-Method.lo libkaffevm_la-TimeZone.lo libkaffevm_la-
Class.lo libkaffevm_la-ClassLoader.lo libkaffevm_la-java_lang_Object.lo
libkaffevm_la-Runtime.lo
libkaffevm_la-VMRuntime.lolibkaffevm_la-java_lang_String.lo
libkaffevm_la-
System.lo libkaffevm_la-java_lang_Thread.lo
libkaffevm_la-Throwable.lolibkaffevm_la-gnu_classpath_VMStackWalker.lo
libkaffevm_la-gnu_classpath_VMSystemProperties.lo
rm -fr .libs/libkaffevm.dll.a
gcc -shared .libs/libkaffevm_la-InetAddressImpl.o .libs/libkaffevm_la-
AccessController.o .libs/libkaffevm_la-java_lang_ref_Reference.o
.libs/libkaffevm_la-java_lang_reflect_VMArray.o .libs/libkaffevm_la-
Constructor.o .libs/libkaffevm_la-Field.o
.libs/libkaffevm_la-Method.o.libs/libkaffevm_la-
TimeZone.o .libs/libkaffevm_la-Class.o
.libs/libkaffevm_la-ClassLoader.o.libs/libkaffevm_la-java_lang_Object.o
.libs/libkaffevm_la-
Runtime.o .libs/libkaffevm_la-VMRuntime.o.libs/libkaffevm_la-java_lang_String.o
.libs/libkaffevm_la-
System.o .libs/libkaffevm_la-java_lang_Thread.o .libs/libkaffevm_la-
Throwable.o .libs/libkaffevm_la-gnu_classpath_VMStackWalker.o
.libs/libkaffevm_la-gnu_classpath_VMSystemProperties.o -o .libs/cygkaffevm-
1-1-8.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
.libs/libkaffevm.dll.a
.libs/libkaffevm_la-InetAddressImpl.o: In function
`gnu_java_net_SysInetAddressImpl_getHostByName':
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:240:
undefined reference to `_stringJava2CBuf'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:241:
undefined reference to `_Kaffe_SystemCallInterface'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:247:
undefined reference to `_ObjectClass'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:247:
undefined reference to `_newArrayChecked'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:261:
undefined reference to `_types'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:261:
undefined reference to `_newArrayChecked'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:288:
undefined reference to `_postExceptionMessage'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:298:
undefined reference to `_throwError'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:266:
undefined reference to `_postOutOfMemory'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:252:
undefined reference to `_postOutOfMemory'
.libs/libkaffevm_la-InetAddressImpl.o: In function
`gnu_java_net_SysInetAddressImpl_getHostByAddr':
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:466:
undefined reference to `_postExceptionMessage'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:502:
undefined reference to `_locks_internal_unlockMutex'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:502:
undefined reference to `_jthread_enable_stop'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:472:
undefined reference to `_jthread_disable_stop'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:472:
undefined reference to `_locks_internal_lockMutex'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:473:
undefined reference to `_Kaffe_SystemCallInterface'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:491:
undefined reference to `_postExceptionMessage'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:480:
undefined reference to `_stringC2Java'
/e/Tornado2.2/kaffehost/kaffe/kaffevm/../.././../kaffe-1.1.8/libraries/clib/net/InetAddressImpl.c:505:
undefined reference to `_throwError'
.libs/libkaffevm_la-InetAddressImpl.o: In function
`gnu_java_net_SysInetAddressImpl_getHostByAddr':
... (There is a lot more but I decided not to included all in the body of
the mail, the whole log is in the attachment)
=================================
Please advise what might be causing the problem.
--
Best regards,
yavor mailto:yavor.g.georgiev at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kaffe.org/pipermail/kaffe/attachments/20070924/9f8cee55/attachment-0004.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaffe-compilerror.log
Type: application/octet-stream
Size: 48684 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20070924/9f8cee55/attachment-0001.obj
More information about the kaffe
mailing list