Compile Kaffe in win32; _lrotl and h_errno undefined (link errors)
Edouard G. Parmelan
kaffe@rufus.w3.org
Tue, 27 Jun 2000 12:48:25 +0200
olivier wrote:
> Help ! :-0
>
> I am trying to compile Kaffe under Windows 2000.
> - Kaffe version is 1.0.5.
> - gcc version is 2.95.2
>
> Here are the errors I get:
>
> sha-1.c: In function `SHA1Update':
> sha-1.c:163: warning: implicit declaration of function `_lrotl'
I thinks this is a MSVC specific function.
Simply changes in file sha-1.h near lines 114 and 121 #if defined(WIN32)
by #if defined(WIN32) && !defined(__GNUC__).
> ../kaffevm/.libs/libkaffevm.a(syscalls.o): In function `jthreadedGetHostByName':
> /cygdrive/c/kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:253: undefined reference to `h_errno'
h_errno is a define in winsock2.h, try add #include "config-hack.h" in
file syscalls.c just after #include "config.h".
Hope this helps.
--
Edouard G. Parmelan
http://egp.free.fr