Problems when building Kaffe on WINNT
Congchun He
kaffe@rufus.w3.org
Wed, 27 Jun 2001 16:41:49 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_012C_01C0FF28.0F974340
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Dear Sir,
I tried to build Kaffe-1.0.6 on WINNT 4.0.
According to the instruction, I installed CYGWIN firstly, and then ran =
configure for kaffe. So far, it
worked well.=20
But when I tried to compile the source codes using command "make", it =
invokes a lot of errores which
were caused by the absent header file "windows.h". =20
So, I added a line in config-std.h to include "windows.h" and =
re-compiled the codes. Well, this time, it=20
could compile most of modulars but still failed at the directory =
Kaffe-1.0.6\kaffe\kaffe which would build=20
kaffe.exe. The failure was caused by "undefined reference" to those =
function defined in "zlib.h".
The error message looked as:
"gcc -g -O2 -Wall -Wstrict-prototypes -o Kaffe.exe main.o version.o =
.libs/Kaffe.e
xeS.o -Wl,--export-dynamic -L/usr/local/lib =
../../libraries/extensions/microsof
t/clib/.libs/libmicrosoft.a =
../../libraries/clib/security/.libs/libsecurity.a ..
/../libraries/clib/management/.libs/libmanagement.a =
../../libraries/clib/math/.l
ibs/libmath.a -lz ../../libraries/clib/zip/.libs/libzip.a =
../../libraries/clib/i
o/.libs/libio.a ../../libraries/clib/net/.libs/libnet.a =
../../libraries/clib/nat
ive/.libs/libnative.a ../kaffevm/.libs/libkaffevm.a =
../xprof/.libs/libkaffexprof
.a -Wl,--rpath -Wl,/usr/local/lib
../../libraries/clib/zip/.libs/libzip.a(Adler32.o): In function =
`java_util_zip_A
dler32_update':
file://f/temp/kaffe-1.0.6/libraries/clib/zip/Adler32.c:24: undefined =
reference to `ad
ler32'
../../libraries/clib/zip/.libs/libzip.a(Adler32.o): In function =
`java_util_zip_A
dler32_update1':
file://f/temp/kaffe-1.0.6/libraries/clib/zip/Adler32.c:33: undefined =
reference to `ad
ler32'"
Would you mind telling what can be done to fix such a problem?
Thanks a lot.
congchun
------=_NextPart_000_012C_01C0FF28.0F974340
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear Sir,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I tried to build Kaffe-1.0.6 on WINNT=20
4.0.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>According to the instruction, I =
installed CYGWIN=20
firstly, and then ran configure for kaffe. So far, it</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>worked well. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But when I </FONT><FONT face=3DArial =
size=3D2>tried to=20
compile the source codes using command "make", it invokes a lot=20
</FONT><FONT face=3DArial size=3D2>of errores which</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>were caused by the absent header file=20
"windows.h". </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>So, I added a line in config-std.h to =
</FONT><FONT=20
face=3DArial size=3D2>include "windows.h" </FONT><FONT face=3DArial =
size=3D2>and=20
re-compiled the codes. Well, this time, it </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>could compile most of modulars but =
</FONT><FONT=20
face=3DArial size=3D2>still failed at the directory =
Kaffe-1.0.6\kaffe\kaffe which=20
would build </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>kaffe.exe. The failure was caused =
</FONT><FONT=20
face=3DArial size=3D2>by "undefined reference" to those function defined =
in=20
"zlib.h".</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The error message looked =
as:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"gcc -g -O2 -Wall -Wstrict-prototypes =
-o Kaffe.exe=20
main.o version.o .libs/Kaffe.e<BR>xeS.o -Wl,--export-dynamic =20
-L/usr/local/lib=20
../../libraries/extensions/microsof<BR>t/clib/.libs/libmicrosoft.a=20
../../libraries/clib/security/.libs/libsecurity.a=20
..<BR>/../libraries/clib/management/.libs/libmanagement.a=20
../../libraries/clib/math/.l<BR>ibs/libmath.a -lz=20
../../libraries/clib/zip/.libs/libzip.a=20
../../libraries/clib/i<BR>o/.libs/libio.a=20
../../libraries/clib/net/.libs/libnet.a=20
../../libraries/clib/nat<BR>ive/.libs/libnative.a =
../kaffevm/.libs/libkaffevm.a=20
../xprof/.libs/libkaffexprof<BR>.a -Wl,--rpath=20
-Wl,/usr/local/lib<BR>../../libraries/clib/zip/.libs/libzip.a(Adler32.o):=
In=20
function `java_util_zip_A<BR>dler32_update':<BR><A=20
href=3D"file://f/temp/kaffe-1.0.6/libraries/clib/zip/Adler32.c:24:">file:=
//f/temp/kaffe-1.0.6/libraries/clib/zip/Adler32.c:24:</A>=20
undefined reference to=20
`ad<BR>ler32'<BR>../../libraries/clib/zip/.libs/libzip.a(Adler32.o): In =
function=20
`java_util_zip_A<BR>dler32_update1':<BR><A=20
href=3D"file://f/temp/kaffe-1.0.6/libraries/clib/zip/Adler32.c:33:">file:=
//f/temp/kaffe-1.0.6/libraries/clib/zip/Adler32.c:33:</A>=20
undefined reference to `ad<BR>ler32'"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Would you mind telling what can be done =
to fix such=20
a problem?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>congchun</FONT></DIV></BODY></HTML>
------=_NextPart_000_012C_01C0FF28.0F974340--