From owner-freebsd-java Mon Feb 22 9:10:37 1999 Delivered-To: freebsd-java@freebsd.org Received: from FNAL.FNAL.Gov (fnal.fnal.gov [131.225.9.8]) by hub.freebsd.org (Postfix) with ESMTP id B028C1103F for ; Mon, 22 Feb 1999 09:09:55 -0800 (PST) (envelope-from tez@aduxb.fnal.gov) Received: from aduxb.fnal.gov ("port 41512"@aduxb.fnal.gov) by FNAL.FNAL.GOV (PMDF V5.1-12 #3998) with ESMTP id <01J81J2BEYJ80004KQ@FNAL.FNAL.GOV> for freebsd-java@FreeBSD.ORG; Mon, 22 Feb 1999 11:09:54 -0600 CDT Received: from localhost (tez@localhost) by aduxb.fnal.gov (8.8.8+Sun/8.8.8) with SMTP id LAA19012; Mon, 22 Feb 1999 11:09:44 -0600 (CST) Date: Mon, 22 Feb 1999 11:09:43 -0600 (CST) From: Tim Zingelman Subject: Re: jni problem in FreeBSD 3.0 In-reply-to: To: Jonathan Kaplan Cc: freebsd-java@FreeBSD.ORG Reply-To: Tim Zingelman Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message