From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 17:02:30 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B64816A402 for ; Sun, 25 Feb 2007 17:02:30 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: from vfemail.net (dell.vfemail.net [216.170.248.236]) by mx1.freebsd.org (Postfix) with ESMTP id A304B13C49D for ; Sun, 25 Feb 2007 17:02:25 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: (qmail 33603 invoked by uid 89); 25 Feb 2007 17:02:23 -0000 Received: by simscan 1.1.0 ppid: 33579, pid: 33583, t: 6.9490s scanners: attach: 1.0.8 clamav: 0.80/m:28/d:614 spam: 3.0.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on antispam.vfemail.net X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ADDR_FREE,BAYES_00 autolearn=unavailable version=3.1.7 Received: from unknown (HELO inmail.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 Feb 2007 17:02:16 -0000 Received: (qmail 33566 invoked by uid 89); 25 Feb 2007 17:02:15 -0000 Received: from unknown (HELO vfemail.net) (vfemail@172.16.100.20) by 0 with SMTP; 25 Feb 2007 17:02:15 -0000 Received: (qmail 41895 invoked by uid 0); 25 Feb 2007 17:02:14 -0000 Received: by simscan 1.1.0 ppid: 41861, pid: 41891, t: 0.3835s scanners:none Received: from unknown (HELO ?82.3.149.179?) (freebsd@vfemail.net@216.170.248.235) by mail.vfemail.net with SMTP; 25 Feb 2007 17:02:14 -0000 Message-ID: <45E1C10B.90403@vfemail.net> Date: Sun, 25 Feb 2007 17:02:03 +0000 From: Free BSD User-Agent: Thunderbird 1.5.0.9 (X11/20070209) MIME-Version: 1.0 To: "Arne H. Juul" References: <45E0DAB0.6010809@vfemail.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 17:02:30 -0000 Arne H. Juul wrote: > On Sun, 25 Feb 2007, Free BSD wrote: >> /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation >> R_X86_64_32 can not be used when making a shared object; recompile >> with -fPIC >> /usr/X11R6/lib/libXm.a: could not read symbols: Bad value > > where does /usr/X11R6/lib/libXm.a come from? it needs to be compiled > from /usr/ports/x11-toolkits/open-motif according to the jdk15/Makefile > at least, and it should contain relocatable objects, like this: > > $ ar xv /usr/X11R6/lib/libXm.a CascadeB.o > x - CascadeB.o > $ file CascadeB.o CascadeB.o: ELF 64-bit LSB relocatable, AMD x86-64, > version 1 (FreeBSD), > not stripped > Dear Arne thanks for your response. I checked the libXm.a, and it DID come from open-motif # pkg_which /usr/X11R6/lib/libXm.a open-motif-2.2.3_2 then I ran the commands you have shown, and the results are identical to yours. But still, the java is not compiling and getting stuck at the same point again and again. Please do let me know if I should do anything more or if any more information is required, and I'll try my best to supply those. Best regards, and thanks once again.