[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-java
Subject:    Re: jni problem in FreeBSD 3.0
From:       Tim Zingelman <tez () aduxb ! fnal ! gov>
Date:       1999-02-22 17:09:43
[Download RAW message or body]

> I am trying to use the Java Native interface with FreeBSD 3.0 and
> jdk-1.1.7.  The error I get is "bad magic number", which makes sense
> because everything but java in 3.0 is ELF.  So my question is:
> 
> 1) Is there an easy way to build compatible libraries with the standard
> 3.0 installation (a switch to ld or something)?  I have toyed with
> building a cross-compiling gcc, but AFAIK that involves building the
> support libraries I rely on (SSLeay in particular) as a.out, and so on,
> which is difficult.
> Jonathan Kaplan					  kaplanj@stwing.upenn.edu

I'm not sure if this helps, but there is a (undocumented?) -aout switch on
the standard cc included in 3.0... as in:

cc -shared -aout -I/usr/local/jdk1.1.7/include \
-I/usr/local/jdk1.1.7/include/freebsd Csoucefile.c -o libname.so
 
"Tim Zingelman" <zingelman@fnal.gov>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic