Date: Mon, 22 Feb 1999 11:09:43 -0600 (CST) From: Tim Zingelman <tez@aduxb.fnal.gov> To: Jonathan Kaplan <kaplanj@force.stwing.upenn.edu> Cc: freebsd-java@FreeBSD.ORG Subject: Re: jni problem in FreeBSD 3.0 Message-ID: <Pine.GSO.3.95.990222110616.18950B-100000@aduxb.fnal.gov> In-Reply-To: <Pine.GSO.4.04.9902220256160.27533-100000@force.stwing.upenn.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95.990222110616.18950B-100000>