Hello,
I have been doing some work to get japhar 0.6 to compile with cc
on a solaris box. I have included the patches in this email. I also
noticed that the options to japhar still use --. I thought it was
going to be changed so that one could pass --classpath or -classpath.
later
Mo DeJong
dejong at cs.umn.edu
*** japhar-0.06/configure.in Tue Sep 29 16:49:59 1998
--- mod2_japhar/configure.in Sat Oct 17 05:49:27 1998
***************
*** 355,364 ****
# Check for the zlib library
AC_CHECK_LIB(z, adler32, ZLIB="-lz", ,)
! if test x"$ZLIB" = "x" || test x"$ac_cv_header_zlib_h" = "x"; then
AC_MSG_RESULT(Using included zlib)
fi
! AM_CONDITIONAL(NEED_ZLIB, test x"$ZLIB" = "x")
AC_SUBST(ZLIB)
AC_SUBST(OS_DEFINE)
--- 355,364 ----
# Check for the zlib library
AC_CHECK_LIB(z, adler32, ZLIB="-lz", ,)
! if test x"$ZLIB" = "x" || test x"$ac_cv_header_zlib_h" = "xno"; then
AC_MSG_RESULT(Using included zlib)
fi
! AM_CONDITIONAL(NEED_ZLIB, test x"$ZLIB" = "x" || test x"$ac_cv_header_zlib_h" =
"xno")
AC_SUBST(ZLIB)
AC_SUBST(OS_DEFINE)
*** japhar-0.06/include/op_stack.h Mon Aug 24 06:27:03 1998
--- mod2_japhar/include/op_stack.h Sat Oct 17 05:16:14 1998
***************
*** 515,521 ****
op_stack_pop_long(env, s, &value->j);
}
else
! (void*)value->i = *(--s->stack_top);
}
#ifdef __cplusplus
--- 515,521 ----
op_stack_pop_long(env, s, &value->j);
}
else
! value->i = (jint) *(--s->stack_top);
}
#ifdef __cplusplus
*** japhar-0.06/lib/libjni/include/jni.h Thu Jul 16 20:31:12 1998
--- mod2_japhar/lib/libjni/include/jni.h Sat Oct 17 05:16:37 1998
***************
*** 29,34 ****
--- 29,35 ----
#include <sys/types.h>
#include <stdarg.h>
+ #include "config.h"
#include "jnitypes.h"
#ifdef __cplusplus
*** japhar-0.06/lib/libruntime/opstack_test.c Wed Aug 19 00:53:30 1998
--- mod2_japhar/lib/libruntime/opstack_test.c Sat Oct 17 05:17:06 1998
***************
*** 1,6 ****
--- 1,7 ----
/* test out the opstack stuff. */
+ #include "config.h"
#include "interp.h"
#include "log.h"
#include "exceptions.h"