From owner-freebsd-java@FreeBSD.ORG Tue Aug 26 11:54:44 2003 Return-Path: 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 E39AB16A4BF for ; Tue, 26 Aug 2003 11:54:44 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DD3E43FA3 for ; Tue, 26 Aug 2003 11:54:44 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h7QIsYtp022754; Tue, 26 Aug 2003 14:54:38 -0400 (EDT) Date: Tue, 26 Aug 2003 14:54:34 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Greg Lewis In-Reply-To: <20030824054627.GB50911@misty.eyesbeyond.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Yamada Ken Takeshi cc: java@freebsd.org Subject: Re: jdk14 on -current X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2003 18:54:45 -0000 On Sat, 23 Aug 2003, Greg Lewis wrote: > On Sun, Aug 24, 2003 at 01:51:39PM +0900, Yamada Ken Takeshi wrote: > > One more! > > I needed the below, too. > > > > j2se/src/solaris/native/java/net/Inet6AddressImpl.c > > : : : : > > #ifndef __GLIBC__ > > /* gethostname() is in libc.so but I can't find a header file for it */ > > /***** /usr/include/unistd.h : 407 *******/ > > extern int gethostname(char *buf, size_t buf_len); > > ^^^^^^ > > #endif > > This is also fixed in CVS. However that fix requires a bit more work. Try > the attached patch for a quick fix. Note that your two patches allowed me to (finally!) build jdk14, with one exception. There was one additional error that caused the following: /usr/bin/gcc -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -Di586 -DARCH='"i586"' -DRELEASE='"1.4.1-p3"' -DFULL_VERSION='"1.4.1-p3-root_25_aug_2003_10_52"' -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_LITTLE_ENDIAN -I. -I/opt/FreeBSD/src/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun/java.net/net/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/javavm/include -I../../../src/solaris/javavm/include -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/java/net -I../../../src/solaris/native/java/net -c -o /opt/FreeBSD/src/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun/java.net/net/obj/Inet4AddressImpl.o ../../../src/solaris/native/java/net/Inet4AddressImpl.c ../../../src/solaris/native/java/net/Inet4AddressImpl.c:296:29: missing terminating " character ../../../src/solaris/native/java/net/Inet4AddressImpl.c:297:8: missing terminating " character gmake[4]: *** [/opt/FreeBSD/src/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun/java.net/net/obj/Inet4AddressImpl.o] Error 1 gmake[4]: Leaving directory `/opt/FreeBSD/src/ports/java/jdk14/work/j2se/make/java/net' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory `/opt/FreeBSD/src/ports/java/jdk14/work/j2se/make/java/net' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/opt/FreeBSD/src/ports/java/jdk14/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/opt/FreeBSD/src/ports/java/jdk14/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 For some reason, lines 296 and 297 were split in the middle of a string. Joing them together fixed the problem. -- Dan Eischen