> When linking libruntime, during the build process, I get the following
> message:
>
> libtool: link: error: cannot link shared libraries into libtool libraries
>
> and the command executed is:
>
> /bin/sh ../../libtool --mode=link gcc -g -O2 -o libruntime.la -rpath
> /usr/local/japhar/lib -version-info 1:0:0 ../../lib/zlib/libzlib.la abort.lo
> alloc.lo arrays.lo array-class.lo class-repository.lo classpath.lo clparse.lo
> exceptions.lo gc.lo init.lo interploop.lo log.lo method.lo nativeglue.lo
> objects.lo primitive-class.lo printf.lo resolve.lo sig.lo stubgc.lo thread.lo
> zextract.lo
>
> The Configure script was run with "--enable-classpath" only.
>
> I'm far from an expert on shared libs and such, so I'm not sure
> what exactly the problem is (other than libtool not being able to link the
> shared libraries into the libtool libraries :). Am I doing something wrong?
>
> Could it be that I am missing a required library? If so, how do I find out
> which one?
>
> I'm on a Debian 2.0:ish system, and the japhar verison is 0.08.
I think this problem occurs when zlib is not already installed
on the system, so the interval version shipped with japhar is used.
As a workaround, you can remove the dependency between libruntime
and zlib by applying the following patch:
diff -u lib/libruntime/Makefile.am.ini lib/libruntime/Makefile.am
--- lib/libruntime/Makefile.am.ini Fri Mar 19 18:15:49 1999
+++ lib/libruntime/Makefile.am Fri Mar 19 18:24:18 1999
@@ -48,7 +48,7 @@
EXTRA_DIST= interpfunc.c
-libruntime_la_LDFLAGS = -version-info 1:0:0 $(ZLIB)
+libruntime_la_LDFLAGS = -version-info 1:0:0
if USING_GCC
INLINE_FUNCTIONS=-finline-functions
Then run automake and config.status (as stated in the HACKING file)
Hope that helps,
--Christophe