[kaffe] OpenBSD 3.1 i386 build fails (libtool bug?)

Greg Wooledge greg@wooledge.org
Sun, 25 Aug 2002 10:26:07 -0400


--wrNCEKhXQ1Rm601q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Platform: OpenBSD 3.1 (i386)

I downloaded kaffe 1.0.7 source and tried to build it by running
=2E/configure and make.  This is the result:

gcc -g -O2 -Wall -Wstrict-prototypes -o .libs/kaffe-bin main.o version.o .l=
ibs/kaffe-binS.o  -L../kaffevm/.libs -lkaffevm -L/usr/local/lib -lm -Wl,-rp=
ath,/usr/local/kaffe/jre/lib/i386 -Wl,-rpath,/usr/local/lib
ld: -lkaffevm: no match
collect2: ld returned 1 exit status
*** Error code 1

Stop in /usr/local/src/kaffe-1.0.7/kaffe/kaffe (line 261 of Makefile).
*** Error code 1


=46rom the kaffe/kaffe directory:

# ls -la ../kaffevm/.libs                                                  =
   =20
total 4250
drwxr-xr-x  2 root  wheel      512 Aug 25 09:56 .
drwxr-xr-x  9 root  wheel     3072 Aug 25 09:56 ..
-rwxr-xr-x  1 root  wheel  2161046 Aug 25 09:56 libkaffevm-1.0.7.so
lrwxr-xr-x  1 root  wheel       16 Aug 25 09:56 libkaffevm.la -> ../libkaff=
evm.la
-rw-r--r--  1 root  wheel      756 Aug 25 09:56 libkaffevm.lai
lrwxr-xr-x  1 root  wheel       19 Aug 25 09:56 libkaffevm.so -> libkaffevm=
-1.0.7.so


The ld(1) man page on OpenBSD 3.1 says:

     -lspec  This option specifies a library to be considered for inclusion=
 in
             the output. If the -Bdynamic option is in effect, a shared li-
             brary of the form lib<spec>.so.<m>.<n> is searched for first
             (where m is the major, and n is the minor version number, resp=
ec-
             tively.)  The library with the highest version found in the
             search path is selected.  If no shared library is found or the
             -Bstatic option is in effect, an archive of the form lib<spec>=
.a
             is looked for in the library search path.


So, the *.so symlink is not used.  (This sounds like a libtool bug, since
I'd expect libtool to know about this.)  If I make a symlink like this:

lrwxr-xr-x  1 root  wheel       19 Aug 25 10:15 libkaffevm.so.1.0 -> libkaf=
fevm-1.0.7.so

then the build completes successfully.  (But I don't know whether "1.0"
is an appropriate version number to use here.)  After installation, I
have to make the same symbolic link in the /usr/local/kaffe/jre/lib/i386
directory.

--=20
Greg Wooledge                  |   "Truth belongs to everybody."
greg@wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |

--wrNCEKhXQ1Rm601q
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (OpenBSD)

iD8DBQE9aOj/kAkqAYpL9t8RAn5AAKC9MyXnyuUtLcPOLqfAfYWO42It7gCgv1qJ
HuRY0qv5omqHcF8wgZxAOIE=
=j+GR
-----END PGP SIGNATURE-----

--wrNCEKhXQ1Rm601q--