Compile Kaffe in win32; _lrotl and h_errno undefined (link errors)

Edouard G. Parmelan Edouard.Parmelan at quadratec.fr
Tue Jun 27 03:48:25 PDT 2000


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


More information about the kaffe mailing list