From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 02:15:11 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 D063516A400 for ; Sun, 25 Feb 2007 02:15:11 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id 92F7E13C442 for ; Sun, 25 Feb 2007 02:15:11 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HL8us-0002i9-C3; Sun, 25 Feb 2007 03:15:10 +0100 Date: Sun, 25 Feb 2007 03:15:10 +0100 (CET) From: "Arne H. Juul" To: Free BSD In-Reply-To: <45E0DAB0.6010809@vfemail.net> Message-ID: References: <45E0DAB0.6010809@vfemail.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 02:15:11 -0000 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 - Arne H. J.