Kaffe having trouble with gnujsp.jar
Mo DeJong
mdejong at cygnus.com
Sat Apr 22 22:00:29 PDT 2000
How about this as a solution to your problem?
Index: configure.in
===================================================================
RCS file: /cvs/kaffe/kaffe/configure.in,v
retrieving revision 1.144
diff -u -r1.144 configure.in
--- configure.in 1999/12/10 01:05:47 1.144
+++ configure.in 2000/04/23 04:58:15
@@ -551,11 +551,6 @@
fi
AC_SUBST(NET_LIBS)
-dnl Check for libraries for zip library.
-AC_CHECK_LIBRARY(z,deflate,ZIP_LIBS)
-ZIP_LIBS="$CTLIBS $ZIP_LIBS"
-AC_SUBST(ZIP_LIBS)
-
dnl Check for libraries for math library.
AC_CHECK_LIBRARY(gmp,mpz_get_d,MATH_LIBS)
MATH_LIBS="$CTLIBS $MATH_LIBS"
Index: libraries/clib/zip/Inflater.c
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/clib/zip/Inflater.c,v
retrieving revision 1.10
diff -u -r1.10 Inflater.c
--- libraries/clib/zip/Inflater.c 1999/12/28 09:57:28 1.10
+++ libraries/clib/zip/Inflater.c 2000/04/23 04:58:15
@@ -157,4 +157,6 @@
GET_STREAM(this) = dstream;
}
+#else
+# error YOU_NEED_TO_INSTALL_ZLIB
#endif
Of course, it would be even better to put this check into
configure.in so that the user can not even finish a configure
if they are lacking a critical feature like zlib.
Mo Dejong
Red Hat Inc.
On Tue, 4 Apr 2000, Stuart Ballard wrote:
>
> Timothy Stack wrote:
> >
> > from kaffe/clib/zip/Inflater.c, line 17:
> >
> > #if defined(HAVE_LIBZ) && defined(HAVE_ZLIB_H)
> >
> > Are you sure you have zlib installed when you configure? Since the `init'
> > function exists in this file, i can only imagine that the reason its
> > failing is because of this ifdef.
>
> That was it - thanks! I have a pretty bare-bones development environment
> because I very rarely install stuff from source.
>
> Would it perhaps be a good idea for configure to print some warnings at
> the end of the process if "important" stuff like zlib is missing? That
> would have given me a hint... (and since I probably still have some
> things missing, it'd be nice to know what they are :) )
>
> Thanks,
> Stuart.
>
> PS That solved the Jar problem but not the ClassNotFoundException... so
> that's my next task when I get a chance :)
>
More information about the kaffe
mailing list