Petter Reinholdtsen <[EMAIL PROTECTED]> writes:

> [Brian Jones]
> > That's pretty wild... that Java2 javah would break the build.
> > Haven't tried it though.  Could you send the errors from make when
> > using javah from 1.2.2?
> 
> I ran into similar problems.  I'm using JDK 1.2, and had to increase
> the max heap value to javac to get it to compile.  I then used javah
> to generate the header files, and it seems like the headers are
> generated based on the JDK classes, not Classpath.
>
> The generated header for Java_java_io_FileInputStream_open do not
> match the implementation.  From java_io_FileInputStream.h:

I haven't been able to force javah from Java 2 1.3 beta Linux to give
me headers for our classes.  Apparently you can't have classes of the
same package in two separate locations and this goes for the boot path
in combination with the classpath as well.  Your best bet here is jdk
1.1.7B which works fine for me until we do something else.

> Index: java_io_ObjectInputStream.c
> ===================================================================
> RCS file: /cvs/classpath/native/java.io/java_io_ObjectInputStream.c,v
> retrieving revision 1.7
> diff -u -w -r1.7 java_io_ObjectInputStream.c
> --- java_io_ObjectInputStream.c 2000/03/17 20:59:11     1.7
> +++ java_io_ObjectInputStream.c 2000/06/20 03:40:18
> @@ -43,9 +43,10 @@
>                                       "()Ljava/lang/ClassLoader;" );
> 
>    if( id == NULL )
> -    return;
> +    return 0;
> 
>    (*env)->CallObjectMethod( env, loader, id );
> +  return loader; /* XXX Not quite sure what should be returned here. */
>  }

I'm not positive this is correct either, but I commited the change
with credit since it looks better than before at least.

> BTW: The classpath/javax/ subdirectory is missing / empty.  Is this
> normal?

The javax stuff has been moved back to classpath/javax and the
projects directory is dead... (can be pruned).

Brian
-- 
Brian Jones <[EMAIL PROTECTED]>

Reply via email to