Date: Sun, 25 Feb 2007 00:39:12 +0000 From: Free BSD <freebsd@vfemail.net> To: freebsd-java@FreeBSD.org Subject: JDK 1.5 does not build on AMD-64 Message-ID: <45E0DAB0.6010809@vfemail.net>
next in thread | raw e-mail | index | archive | help
Dear List Members and Maintainers I had been trying trying for nearly 15 days to build JDK1.5 in an AMD box with no luck at all. I tried to google around to see if others had the same problem, or if I can understand what is causing this problem -- and have failed. Every time the compiler would stop at the point /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_motif21.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Choice21.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/Xinerama.o | tsort -q` /usr/X11R6/lib/libXm.a -lXp -lXtst -lXext -lXt -lX11 -lmlib_image -L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server -ljvm -lawt -lm -ljava -L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server -ljvm -pthread /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 gmake[4]: *** [/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/motif21/libmawt.so] Error 1 gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/motif21' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/motif21' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. I have all the dependent packages installed (confirmed via pkg_info), and I believe the system is quite updated (I have build world and also build a new kernel, with all the pre-requisites, of course). My /etc/make.conf goes like below # added by use.perl 2007-02-08 02:16:42 PERL_VER=5.8.8 PERL_VERSION=5.8.8 # CPUTYPE=athlon64 LOADER_TFTP_SUPPORT= NO DOC_LANG= en_UK.ISO8859-1 # SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 # SENDMAIL_LDFLAGS=-L/usr/local/lib # SENDMAIL_LDADD=-lsasl2 # I'm truly at a loss. I have so far tried at least six times, and each time I did a. portsclean -CC b. cvsup the ports tree c. do a portsdb -uU before starting a new. Would appreciate if someone can please help. Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E0DAB0.6010809>