Date: Thu, 8 Jul 2004 12:14:39 +0100 From: Darren Hemphill <darren@rendezz.com> To: Yuri Khotyaintsev <yuri@irfu.se> Cc: freebsd-java@freebsd.org Subject: Re: Java build problems 4.10-RELEASE-p2 and jdk1.4 Message-ID: <20040708121439.A1985@rendezz.com> In-Reply-To: <40ED1CFF.5080904@irfu.se>; from yuri@irfu.se on Thu, Jul 08, 2004 at 12:07:59PM %2B0200 References: <20040708104753.A47548@rendezz.com> <40ED1CFF.5080904@irfu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
> > I have been tearing my hair out trying to install java (jdk1.4 native) on my BSD box > > I have just upgraded to 4.10-RELEASE-p2 and it still dies. When building it gets > > past compiling all the cpp files, but when linking the launcher it dies. I include the > > output below which is a make install after it has already died once, so it doesn't > > show the .cpp files being built, but gives an overview of the build environment. > > > > The machine I am running is a dual PIII 1.4 (I think) with 1GB RAM and SCSI Raid Array > > my make.conf looks like this > > > > CPUTYPE=i686 > > CFLAGS= -O -pipe > > BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ > > -Wcast-qual -Wchar-subscripts -Winline \ > > -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ > > -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings > > > > I have tried the build with those lines commented out, but still no dice. I would > > really appreciate any help on this. Please cc me on any responses as I am not in > > the freebsd-java list. > > > > One last thing is that I tried to just do a make install but it gave me this error > > > > > > ===> Vulnerability check disabled > > *** Error code 1 (ignored) > > > > You must have a version of FreeBSD later than 4.7-STABLE > > February 2003 or 5-CURRENT February 2003 to compile and > > use JDK 1.4.2. > > > > *** Error code 1 > > > > Stop in /usr/ports/java/jdk14. > > > > > > which is mad because clearly 4.10-RELEASE is later than this. I had to use > > SKIP_OS_CHECK=1 make install to get it to actually go ahead with the install. > > > > Thanks > > > > Darren > > > > ----- build result follows ---- > > > > ===> Building for jdk-1.4.2p6_4 > > # Start of jdk build > > bsd i586 1.4.2-p6 build started: 04-07-08 10:35 > > if [ -r ./../../deploy/make/Makefile ]; then \ > > ( cd ./../../deploy/make; gmake sanity EXTERNALSANITYCONTROL=true CONTROL_TOPDIR=/usr/ports/java/jdk14/work/control CONTROL_TOPDIR_NAME=control ALT_OUTPUTDIR=/usr/ports/java/jdk14/work/control/build/bsd-i586 ARCH_DATA_MODEL=32 MILESTONE=p6 BUILD_NUMBER=root_08_jul_2004_10_35 ; ); \ > > fi > > gmake[1]: Entering directory `/usr/ports/java/jdk14/work/deploy/make' > > gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/deploy/make' > > gmake[1]: Entering directory `/usr/ports/java/jdk14/work/j2se/make' > > gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make' > > > > Build Machine Information: > > build machine = > > > > Build Directory Structure: > > CWD = /usr/ports/java/jdk14/work/control/make > > TOPDIR = ./../.. > > CONTROL_TOPDIR = ./../../control > > GENERICS_TOPDIR = ./../../generics > > HOTSPOT_TOPDIR = ./../../hotspot > > J2SE_TOPDIR = ./../../j2se > > MOTIF_TOPDIR = ./../../motif > > > > Hotspot Settings: > > HOTSPOT_BUILD_JOBS = > > > > Bootstrap Settings: > > JAVAWS_BOOTDIR = /usr/local/linux-sun-jdk1.4.2 > > BOOTSTRAP J2SDK VERSION: 1.4.2_05 > > OUTPUTDIR = /usr/ports/java/jdk14/work/control/build/bsd-i586 > > > > Build Tool Settings: > > UNIXCOMMAND_PATH = /bin/ > > COMPILER_PATH = /usr/bin/ > > DEVTOOLS_PATH = /usr/local/bin/ > > USRBIN_PATH = /usr/bin/ > > GCC32_COMPILER_PATH = /java/devtools/bsd/gcc3.2/ > > MOZILLA_PATH = > > MOZILLA_HEADERS_PATH = > > MOZILLA_LIBS_PATH = > > CC_VER = 2.95.4 > > PATH = /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/usr/local/utils:/usr/local/mysql/bin:/usr/local/apache/bin > > > > Build Directives: > > PEDANTIC = > > INSANE = > > > > Build Platform Settings: > > PLATFORM = bsd > > ARCH = i586 > > LIBARCH = i386 > > ARCH_FAMILY = i586 > > ARCH_DATA_MODEL = 32 > > OS_VERSION = 4.10-RELEASE-p2 > > TRUE_PLATFORM = FreeBSD (4.x STABLE way) > > FREE_SPACE = 3764052 > > > > GNU Make Settings: > > MAKE = gmake > > MAKE VERSION = 3.79.1, > > MAKECMDGOALS = sanity > > MAKEFLAGS = w -- BUILD_NUMBER=root_08_jul_2004_10_35 MILESTONE=p6 ARCH_DATA_MODEL=32 ALT_OUTPUTDIR=/usr/ports/java/jdk14/work/control/build/bsd-i586 CONTROL_TOPDIR_NAME=control CONTROL_TOPDIR=/usr/ports/java/jdk14/work/control EXTERNALSANITYCONTROL=true > > SHELL = /bin/sh > > > > Target Build Versions: > > JAVAWS_VERSION = 1.4.2 > > MILESTONE = p6 > > BUILD_NUMBER = root_08_jul_2004_10_35 > > > > Bootstrap Settings: > > BOOTDIR = /usr/local/linux-sun-jdk1.4.2 > > BOOTSTRAP J2SDK VERSION: 1.4.2_05 > > OUTPUTDIR = /usr/ports/java/jdk14/work/control/build/bsd-i586 > > > > Build Tool Settings: > > UNIXCOMMAND_PATH = /bin/ > > COMPILER_PATH = /usr/bin/ > > DEVTOOLS_PATH = /usr/local/bin/ > > USRBIN_PATH = /usr/bin/ > > MOTIF_DIR = /usr/X11R6 > > CC_VER = 2.95.4 > > ZIP_VER = 2.3 > > PATH = /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/usr/local/utils:/usr/local/mysql/bin:/usr/local/apache/bin > > > > Build Directives: > > USE_ONLY_BOOTDIR_TOOLS = > > USE_HOTSPOT_INTERPRETER_MODE = > > PEDANTIC = > > DEV_ONLY = YES > > J2RE_ONLY = > > NO_DOCS = > > NO_IMAGES = > > TOOLS_ONLY = true > > INSANE = > > > > Build Platform Settings: > > PLATFORM = bsd > > ARCH = i586 > > LIBARCH = i386 > > ARCH_FAMILY = i586 > > ARCH_DATA_MODEL = 32 > > OS_VERSION = 4.10-RELEASE-p2 > > TRUE_PLATFORM = FreeBSD (4.x STABLE way) > > FREE_SPACE = 3764052 > > > > GNU Make Settings: > > MAKE = gmake > > MAKE VERSION = 3.79.1, > > MAKECMDGOALS = sanity > > MAKEFLAGS = > > SHELL = /bin/sh > > > > Target Build Versions: > > JDK_VERSION = 1.4.2 > > MILESTONE = p6 > > BUILD_NUMBER = root_08_jul_2004_10_35 > > > > External File/Binary Locations: > > HOTSPOT_SERVER_PATH = /usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/server > > HOTSPOT_CLIENT_PATH = /usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/client > > MOTIF_DIR = /usr/X11R6 > > CACERTS_FILE = ./../src/share/lib/security/cacerts > > > > WARNING: Your build environment has the variable DEV_ONLY > > defined. This will result in a development-only > > build of the J2SE workspace, lacking the documentation > > build and installation bundles. > > > > Sanity check passed. > > (cd ./../build/bsd-i586/hotspot-i586/tmp; \ > > gmake -f /usr/ports/java/jdk14/work/hotspot/build/bsd/Makefile product \ > > HOTSPOT_BUILD_VERSION=1.4.2-p6-root_08_jul_2004_10_35 GAMMADIR=/usr/ports/java/jdk14/work/hotspot ; ) > > gmake[1]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' > > (cd bsd_i486_compiler2/product; gmake) > > gmake[2]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > > gmake[3]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > > Rescanned ../generated/adfiles/bsd_i486.ad but encountered no changes. > > gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > > gmake[3]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > > Linking launcher... > > /usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product/libjvm.so: undefined reference to `dlinfo' > > /usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product/libjvm.so: undefined reference to `pthread_attr_get_np' > > /usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product/libjvm.so: undefined reference to `pthread_main_np' > > gmake[3]: *** [gamma] Error 1 > > gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > > gmake[2]: *** [the_vm] Error 2 > > gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > > gmake[1]: *** [product] Error 2 > > gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' > > gmake: *** [product] Error 2 > > *** Error code 2 > > > > Stop in /usr/ports/java/jdk14. > > _______________________________________________ > > freebsd-java@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > > > Failing OS version test and further linkage errors point at that you > have probably updated only your kernel to 4.10, but not the rest of the > system (you have old libc_r). > > [yuri@xxxx][~]# uname -a > FreeBSD xxxx.irfu.se 4.10-STABLE FreeBSD 4.10-STABLE #1: Fri May 28 > 14:58:50 CEST 2004 yuri@xxxx.irfu.se:/stor/obj/stor/src/sys/NEST i386 > [yuri@xxxx][~]# nm /usr/lib/libc_r.a| grep pthread_attr_get_np > 00000000 T _pthread_attr_get_np > 00000000 W pthread_attr_get_np > many thanks, had built the system and kernel correctly, but cunningly enough have NO_LIBC_R = true in my make.conf.... building fine now, thats for the pointer in the right direction :) Darren
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040708121439.A1985>