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

olivier kaffe@rufus.w3.org
Mon, 26 Jun 2000 12:09:08 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_00B2_01BFDF67.54C2EEB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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'
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin =
shared libraries
../kaffevm/.libs/libkaffevm.a(sha-1.o): In function `SHA1Update':
/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:163: undefined reference to =
`_lrotl'
/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:163: undefined reference to =
`_lrotl'
/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:164: undefined reference to =
`_lrotl'
/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:164: undefined reference to =
`_lrotl'
/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:165: undefined reference to =
`_lrotl'
../kaffevm/.libs/libkaffevm.a(sha-1.o):/cygdrive/c/kaffe/kaffe/kaffevm/sh=
a-1.c:165: more undefined references to `_lrotl' follow
../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'
../kaffevm/.libs/libkaffevm.a(syscalls.o): In function =
`jthreadedGetHostByAddr':
/cygdrive/c/kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:268: =
undefined reference to `h_errno'

Thank you, thank you, thank you...
Olivier Lombart


------=_NextPart_000_00B2_01BFDF67.54C2EEB0
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>Help ! :-0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to compile Kaffe under =
Windows=20
2000.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- Kaffe version is 1.0.5.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- gcc version is 2.95.2</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here are the errors I get:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>sha-1.c: In function =
`SHA1Update':<BR>sha-1.c:163:=20
warning: implicit declaration of function `_lrotl'<BR>libtool: link: =
warning:=20
undefined symbols not allowed in i686-pc-cygwin shared=20
libraries<BR>../kaffevm/.libs/libkaffevm.a(sha-1.o): In function=20
`SHA1Update':<BR>/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:163: undefined=20
reference to `_lrotl'<BR>/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:163: =
undefined=20
reference to `_lrotl'<BR>/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:164: =
undefined=20
reference to `_lrotl'<BR>/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:164: =
undefined=20
reference to `_lrotl'<BR>/cygdrive/c/kaffe/kaffe/kaffevm/sha-1.c:165: =
undefined=20
reference to=20
`_lrotl'<BR>../kaffevm/.libs/libkaffevm.a(sha-1.o):/cygdrive/c/kaffe/kaff=
e/kaffevm/sha-1.c:165:=20
more undefined references to `_lrotl'=20
follow<BR>../kaffevm/.libs/libkaffevm.a(syscalls.o): In function=20
`jthreadedGetHostByName':<BR>/cygdrive/c/kaffe/kaffe/kaffevm/systems/unix=
-jthreads/syscalls.c:253:=20
undefined reference to =
`h_errno'<BR>../kaffevm/.libs/libkaffevm.a(syscalls.o):=20
In function=20
`jthreadedGetHostByAddr':<BR>/cygdrive/c/kaffe/kaffe/kaffevm/systems/unix=
-jthreads/syscalls.c:268:=20
undefined reference to `h_errno'<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Thank you, thank you, thank =
you...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Olivier Lombart</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_00B2_01BFDF67.54C2EEB0--