Help! Can't install kaffe in the Cygnus Win32 environment!
matt pyne
matt.pyne at dial.pipex.com
Fri Jul 17 01:44:46 PDT 1998
I *finally* got it installed and compiling - but I haven't got a working
version yet.
I forgot to write down all the steps as I went along (lots of hacking)
and I used WinDiff to work out
the changes I made - I apologize if any of these steps are wrong....
Here are my steps (so far)
1. Copy the files from config/i386/win32/cygnus into
config/i386/win32
2. Change line 726 in ./config
FROM if $ac_config_sub sun4 >....
TO if sh $ac_config_sub sun4 > ...
Change line 745
FROM host=`$ac_config_sub ...
TO host='sh $ac_config_sub ...
Now you can run install using this command:
sh ./configure pentium-win32
It *should* now create the installation. But this won't compile
correctly, so...
1. Change line 31 in libraries/clib/native/system.c
FROM #include "system.h"
TO #include "../../../include/system.h"
Do the same for line 22 in libraries/clib/native/file.c
Do the same for line 22 in
libraries/clib/native/objectinputstream.c
2. Comment out line 36 in system.c too
3. Comment out line 16 in libraries/clib/net/plainsocketimpl.c
4. Change line 12 in libraries/clib/makefile
FROM subdirs= native net zip math management awt
TO subdirs= native net zip math management
5. Change line 25 in kaffe/kaffe/makefile (i'd copy and paste from
this message if I were you...)
FROM: LIBS= ../kaffevm/libkaffevm.a
../../libraries/clib/native/libnative.a
../../libraries/clib/net/libnet.a ../../libraries/clib/zip/libzip.a
../../libraries/clib/math/libmath.a
../../libraries/clib/math/libmanagement.a -lm
TO: LIBS= ../kaffevm/libkaffevm.a
../../libraries/clib/native/libnative.a
../../libraries/clib/net/libnet.a ../../libraries/clib/zip/libzip.a
../../libraries/clib/math/libmath.a
../../libraries/clib/management/libmanagement.a -lm
6. Change line 26 in kaffe/kaffe/makefile
FROM: LIBS= ../kaffevm/libkaffevm.a
../../libraries/clib/native/libnative.a
../../libraries/clib/net/libnet.a ../../libraries/clib/zip/libzip.a
../../libraries/clib/math/libmath.a
../../libraries/clib/math/libmanagement.a -lm
TO: Kaffe$(EXEEXT): $(OBJECT) ../kaffevm/libkaffevm.a
../../libraries/clib/native/libnative.a
../../libraries/clib/net/libnet.a ../../libraries/clib/zip/libzip.a
../../libraries/clib/math/libmath.a
../../libraries/clib/management/libmanagement.a
7. Copy the file libraries/clib/math/libmath.def into
libraries/clib/management and rename it to libmanagement.def
It *should* now compile but not link, I haven't found the correct
solution to this,
however this will make it link.
1. Comment out the following lines in
libraries/clib/native/external_wrappers.h
27, 48, 49, 58, 137, 191, 204, 205, 206, 207
I *know* this is wrong - but at least it will get you going, I doubt
that it will run correctly. Can somebody tell me the solution to this
last problem?
This still won't install as the makefile tries to use a directory call
.bat which is illegal in win32. Oh well, but at least I got some some
way...
I haven't tested it yet - I leave that to somebody else, as this took
pretty much all day to get so far...
Matt Pyne.
Bernard Michael Hurley wrote:
> Has anyone managed to install kaffe1.0.b1 in the Cygnus Win32
> environment
> running under Win95? If I do what it says in the README file I get the
>
> message "configure: error: can not guess host type; you must supply
> one".
> If I try something like:
>
> ./configure --prefix=c:/kaffe i386
>
> I get "configure: error: Configuration i386-none not supported". I
> can't
> get any joy using i386-win32, i386-cygnus, i386-win32-cygnus etc.
>
> As far as I can tell I have installed the Cygnus bash shell and all
> the
> tools correctly. At least they do more or less what I expect which may
> or
> may not be the same as them doing the correct thing! What am I
> missing?
>
> Bernard.
>
> Unite for Java: http://www.javalobby.org
> Learn Java :
> http://www.westherts.nildram.co.uk/JavaCourse.htm
>
> Bernard Michael Hurley e-mail:
> bernard at cafe.nildram.co.uk
> Faculty of Technology and Computing or: bernardh at westherts.ac.uk
> West Herts College
> Dacorum Campus http://www.cafe.nildram.co.uk
> Marlowes http://www.westherts.ac.uk
> Hemel Hempstead U.K. PGP key: MGET 1FF5237D
More information about the kaffe
mailing list