Compile Kaffe in win32 with CygWin; miscellaneous problems (& some solutions)
olivier
kaffe@rufus.w3.org
Mon, 26 Jun 2000 16:08:20 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_00F5_01BFDF88.BF68B580
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Here is a list of the problems I met; for some of them I found a =
solution by myself.
Comments and help is welcome about all this... :-)
Olivier Lombart
1- config\config-std.h:
replace
#include <winnt.h>
by
#include <windows.h>
2- cygwin\usr\include\winnt.h:
#pragma pack(push,n)
make compilation fail. non resolved (commented every #pragma pack in =
this file!)
I would like help about this... Is it a bug of the Gnu compiler ?
3- kaffe\kaffe\kaffe, make, libtool
problem=3D make must be made from sh (not windows command.com) AND path =
must have /usr/bin first; if not so, sort.exe of windows is used instead =
of sort.exe of cygwin. First error shown=3D +2The system cannot find the =
file specified.
4- kaffe\kaffe\kaffe\main.c: 69 undefined reference to `profFlag` (and =
other messages)
patch found on the net at =
http://www.rpmfind.net/tools/Kaffe/messages/att-5271/01-kaffe-intrp.diff
add #if defined(TRANSLATOR) in config\i386\common.h, line 65
and #endif in line 82
5- _lrotl and h_errno undefined (link error)
I am still searching for that one... (it's the subject of my previous =
message)
My config: I am trying to compile Kaffe under Windows 2000.
- Kaffe version is 1.0.5.
- gcc version is 2.95.2
------=_NextPart_000_00F5_01BFDF88.BF68B580
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.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#f0f5f5>
<DIV><FONT face=3DArial size=3D2>Here is a list of the problems I met; =
for some of=20
them I found a solution by myself.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Comments and help is welcome about all =
this...=20
:-)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Olivier Lombart</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>1-=20
config\config-std.h:<BR> replace<BR> #include=20
<winnt.h><BR> by<BR> #include =
<windows.h></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>2- =
cygwin\usr\include\winnt.h:<BR> #pragma=20
pack(push,n)<BR> make compilation fail. non resolved (commented =
every=20
#pragma pack in this file!)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I would like help about this... Is it a =
bug of the=20
Gnu compiler ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>3- kaffe\kaffe\kaffe, make,=20
libtool<BR> problem=3D make must be made from sh (not windows =
command.com)=20
AND path must have /usr/bin first; if not so, sort.exe of windows is =
used=20
instead of sort.exe of cygwin. First error shown=3D +2The system cannot =
find the=20
file specified.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>4- kaffe\kaffe\kaffe\main.c: 69 =
undefined reference=20
to `profFlag` (and other messages)<BR> patch found on the net at <A =
href=3D"http://www.rpmfind.net/tools/Kaffe/messages/att-5271/01-kaffe-int=
rp.diff">http://www.rpmfind.net/tools/Kaffe/messages/att-5271/01-kaffe-in=
trp.diff</A><BR> add=20
#if defined(TRANSLATOR) in config\i386\common.h, line 65<BR> and =
#endif in=20
line 82<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>5- _lrotl and h_errno undefined (link=20
error)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am still searching for that one... =
(it's the=20
subject of my previous message)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV align=3Dleft=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"><FONT=20
face=3DArial size=3D2>My config: I am trying to compile Kaffe under =
Windows=20
2000.</FONT></DIV>
<DIV align=3Dleft=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"><FONT=20
face=3DArial size=3D2>- Kaffe version is 1.0.5.</FONT></DIV>
<DIV align=3Dleft=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"><FONT=20
face=3DArial size=3D2>- gcc version is=20
2.95.2</FONT></DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_00F5_01BFDF88.BF68B580--