From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 20:49:25 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 3C3B716A400 for ; Sun, 25 Feb 2007 20:49:25 +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 F312413C4AC for ; Sun, 25 Feb 2007 20:49:24 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HLQJA-0006ov-2I; Sun, 25 Feb 2007 21:49:24 +0100 Date: Sun, 25 Feb 2007 21:49:24 +0100 (CET) From: "Arne H. Juul" To: Skip Ford In-Reply-To: <20070225203000.GB717@heather.menantico.com> Message-ID: References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> <20070225183534.GC18421@osiris.chen.org.nz> <20070225203000.GB717@heather.menantico.com> 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 20:49:25 -0000 On Sun, 25 Feb 2007, Skip Ford wrote: >> Try rebuilding open-motif. You have have a corrupt binary (due to >> reasons unknown). > > After the extract stage, grep the open-motif sources for 'objformat' > to make sure this isn't more fallout from its removal. objformat removed? ouch. I should have asked the original poster for details about OS version etc, now this sounds like a good tip, since I see this code in work/openMotif-2.2.3/config/imake/imake.c: #ifdef __FreeBSD__ static void get_binary_format(FILE *inFile) { int mib[2]; size_t len; int osrel = 0; FILE *objprog = NULL; int iself = 0; char buf[10]; mib[0] = CTL_KERN; mib[1] = KERN_OSRELDATE; len = sizeof(osrel); sysctl(mib, 2, &osrel, &len, NULL, 0); if (osrel >= 300004 && (objprog = popen("objformat", "r")) != NULL && fgets(buf, sizeof(buf), objprog) != NULL && strncmp(buf, "elf", 3) == 0) iself = 1; if (objprog) pclose(objprog); fprintf(inFile, "#define DefaultToElfFormat %s\n", iself ? "YES" : "NO"); } #endif