Hello all.

I have been trying to get japhar to compile on a solaris 2.6 box.
I am working off of the code in the CVS and I ran into some problems.
The first set of problems seem to be related to libtool and arguments
that were getting passed to if from configure (The details about this
problem are attached in the text file called note1). I could not get
the source to compile with cc (see note1 for problems) but it did work
with gcc so I used that and installed it. Now I have another problem.
When I run japhar on a simple "hello world" program it gives me a warning
message about "You are using a bad classes.zip" and then dumps core.
I was using the classes.zip from a JDK1.1.6 install (refrence release,
not the production release) when I got this message. Then I switched to
a classes.jar file that I know worked on japhar version 5 but it still
crashed and gave me the same error message. I have included the detailed
output from running japhar in the file note2. Is there a newer classes.zip
file that you guys are using? Where can I download it. I also noticed
that after I installed japhar there was no bin/java executable. I know
you want people to use bin/japhar but why not put in bin/java as a symlink
to bin/japhar. You already have programs named javac and jdb so program
name conflicts are not an issue.

Mo DeJong
[EMAIL PROTECTED]
gimme multimedia group
Using a freshly installed versions of:
autoconf-2.12
automake-1.3
libtool-1.2b


(from instructions in HACKING)

mo(/tmp/mo/japhar)% aclocal; autoheader; automake; autoconf
aclocal: configure.in: 16: macro `AM_PROG_LIBTOOL' not found in library
configure.in:97: warning: AC_TRY_RUN called without default to allow cross compiling
configure.in: 10: required file `include/config.h.in' not found
configure.in:97: warning: AC_TRY_RUN called without default to allow cross compiling
autoconf: Undefined macros:
configure.in:367:  AC_PATH_MOTIF



(after makeing symlink : ln -s /tmp/mo/libtool/share/aclocal/libtool.m4
in /tmp/mo/autoconf/share/aclocal aclocal was able to fin a def
of the AM_PROG_LIBTOOL macro)


...
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking host system type... sparc-sun-solaris2.6
...
ltconfig: unrecognized option `--no-reexec'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed



(removed the option from configure)


*** copy_configure      Wed Oct 28 17:48:02 1998
--- configure   Wed Oct 28 17:48:10 1998
***************
*** 1267,1269 ****
  LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
! ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
--- 1267,1269 ----
  LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
! ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
  $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \





./configure --prefix=/tmp/mo/install_japhar --with-sun-jdk=/soft/java/JDK-1.1.6 
--enable-debugging --enable-logging

configure: warning: not using libffi.  stubs are necessary and will be created for 
native methods.
...
install:  /soft/java/JDK-1.1.6/lib/font.properties.zh_GB2312 does not exist
install:  /soft/java/JDK-1.1.6/lib/font.properties.zh_TW_CNS11643 does not exist
..


make

make[1]: Entering directory `/tmp/mo/japhar/arch'
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../include 
-I/usr/dt/include -DWITH_MOTIF_AWT  -I/soft/X11R6.3/include -I../lib/libjni/include 
-I../lib/libjni/include -I../include -DLIBDIR=\"/tmp/mo/install_japhar/lib\"  -DDEBUG 
-DLOG  -g -c threads.c
cc -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/dt/include -DWITH_MOTIF_AWT 
-I/soft/X11R6.3/include -I../lib/libjni/include -I../lib/libjni/include -I../include 
-DLIBDIR=\"/tmp/mo/install_japhar/lib\" -DDEBUG -DLOG -g -Wp,-MD,.deps/threads.p -c 
threads.c
command line: fatal: invalid arg for option M  D: No such file or directory
cc: acomp failed for threads.c
make[1]: *** [threads.lo] Error 1


This -Wp,-MD,.deps/threads.p thing seems to work just find when compiling with
gcc but it crashes on sun cc.








(try again but this time use gcc not cc)


./configure --prefix=/tmp/mo/install_japhar --with-sun-jdk=/soft/java/JDK-1.1.6 
--enable-debugging --enable-logging

checking if symbol names need leading underscore (may take some time)... 
conftestl.c:1: warning: function declaration isn't a prototype
no



(everything worked that time and I installed it)
mo(/tmp/mo/install_japhar)% bin/japhar hello
mmap: Invalid argument
mmap: Invalid argument
You are using a classes.zip containing a version of java.lang.System
that is different than those that the japhar developers use.  It
could quite possibly be a pre-1.1.5 classes.zip file, but given Sun's
recent shoddy release practices, it may actually be a valid
classes.zip file in every other respect.  Your mileage may vary.
Attempting to limp along.
mmap: Invalid argument
mmap: Invalid argument
mmap: Invalid argument
mmap: Invalid argument
Fatal Java VM Error: Unresolved Function: 
Java_java_lang_System_setIn0__java_io_InputStream_2_stub
Bus error (core dumped)



Reply via email to