jdk14 on -current

Daniel Eischen eischen at vigrid.com
Tue Aug 26 11:54:45 PDT 2003


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



More information about the freebsd-java mailing list