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

Greg Wooledge greg at wooledge.org
Sun Aug 25 07:26:07 PDT 2002


Platform: OpenBSD 3.1 (i386)

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

gcc -g -O2 -Wall -Wstrict-prototypes -o .libs/kaffe-bin main.o version.o .libs/kaffe-binS.o  -L../kaffevm/.libs -lkaffevm -L/usr/local/lib -lm -Wl,-rpath,/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


From the kaffe/kaffe directory:

# ls -la ../kaffevm/.libs                                                      
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 -> ../libkaffevm.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, respec-
             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 -> libkaffevm-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.

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20020825/f5a92b45/attachment-0003.pgp 


More information about the kaffe mailing list