JDK 1.5 does not build on AMD-64

Arne H. Juul arnej at pvv.ntnu.no
Sun Feb 25 20:49:25 UTC 2007


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



More information about the freebsd-java mailing list