From owner-freebsd-java@FreeBSD.ORG Tue Sep 6 07:33:10 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8456E16A41F for ; Tue, 6 Sep 2005 07:33:10 +0000 (GMT) (envelope-from dwebman@telus.net) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AC4F43D46 for ; Tue, 6 Sep 2005 07:33:09 +0000 (GMT) (envelope-from dwebman@telus.net) Received: from [10.0.10.6] (really [154.20.242.227]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050906073309.SZXT14902.priv-edtnes51.telusplanet.net@[10.0.10.6]> for ; Tue, 6 Sep 2005 01:33:09 -0600 From: Dave Webster To: freebsd-java@freebsd.org Content-Type: text/plain Date: Tue, 06 Sep 2005 00:31:20 -0700 Message-Id: <1125991880.23966.25.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: "Linking vm error" when building java 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: Tue, 06 Sep 2005 07:33:10 -0000 I get the following error when running gmake to install JDK to FreeBSD. Linking vm... /usr/bin/ld: cannot find -lkse gmake[3]: *** [libjvm.so] Error 1 gmake[3]: Leaving directory `/usr/java/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' gmake[2]: *** [the_vm] Error 2 gmake[2]: Leaving directory `/usr/java/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' gmake[1]: *** [product] Error 2 gmake[1]: Leaving directory `/usr/java/control/build/bsd-i586/hotspot-i586/tmp' gmake: *** [product] Error 2 I'm using FreeBSD 5.4 i386. I've followed the instructions from www.eyebeyond.com as given in the "BUILD" file from the bsd-jdk14-patches-7.tar download from their site. I've linux compatability and have ported x11/linux-XFree86-libs, x11-toolkits/OpenMotif 2.2.3_2 and java/javavmwrapper. When trying to port java/linux-sun-jdk14 I was directed to the Sun site and downloaded and tarred j2sdk-1_4_2_08-linux-i586.bin to /usr/ports/distfiles and ran make again on /usr/ports/java/jdk14. The instructions from BUILD were followed as in: Here is a typical set up for your build environment: unsetenv LANG unsetenv JAVA_HOME unsetenv CLASSPATH setenv ALT_MOTIF_DIR /usr/X11R6 setenv DEV_ONLY YES In additional, with the recommended ports, one would use setenv ALT_BOOTDIR /usr/local/linux-sun-jdk1.4.2 although this latter setenv statement was written as: setenv ALT_BOOTDIR /usr/ports/disfiles/j2sdk1.4.2_08 because the path given in the BUILD documentation didn't have the linux-sun-jdk1.4.2 directory so this was my best guess. I put the files: bsd-jdk14-patches-7.tar j2sdk-1_4_2-bin-scsl.zip j2sdk-1_4_2-src-scsl.zip in /usr/java/ unzipped and tarred them. I've mounted linprocfs using: /sbin/mount -t linprocfs linprocfs /compat/linux/proc with an entry in my /etc/fstab file for good measure. I've run: patch -p0 < jdk14.patches in /usr/java/ and then cd control/make and ran gmake Everything was going along great until the error message. Does anyone have any suggestions? Dave