JDK 1.5 does not build on AMD-64

Arne H. Juul arnej at pvv.ntnu.no
Sun Feb 25 02:15:11 UTC 2007


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.


More information about the freebsd-java mailing list