Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [oj] Error Building JDK 1.2.2 (native)

From: Ian Darwin <ian(at)darwinsys.com>
Date: Fri Nov 29 2002 - 16:19:24 EST

Oops, it's supposed to print a message like this:

    echo "*** WARNING: you may see an error such as"; \
    echo "***       virtual memory exhausted"; \
    echo "*** when building this package.  If you do you must increase"; \
    echo "*** your limits.  See the man page for your shell and look"; \
    echo "*** for the 'limit' or 'ulimit' command. You may also want to"; \
    echo "*** see the login.conf(5) manual page."; \
    echo "*** Some examples are: "; \
    echo "***   csh(1) and tcsh(1): limit datasize "; \
    echo "***   ksh(1), zsh(1) and bash(1): ulimit -d "; \

I will fix this one so it prints that message. You could apply this patch to the Makefile in the jdk/1.2 directory and try it again, and it should give you the message :-) Then do what it says, i.e., up your ulimit.

Index: Makefile



RCS file: /cvs/ports/devel/jdk/1.2/Makefile,v retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	1 Nov 2002 17:52:53 -0000	1.1.1.1
+++ Makefile	29 Nov 2002 21:18:12 -0000

@@ -41,6 +41,7 @@
 # Requires existing JDK 1.2 to build; use Linux emul for bootstrapping  ONLY_FOR_ARCHS= i386  
+VMEM_WARNING=		Yes
 BUILD_DEPENDS=		:zip-2.*:archivers/zip \
 			:jdk-blackdown-1.2pre2:devel/jdk/1.2-blackdown
 RUN_DEPENDS=		:zip-2.*:archivers/zip

On November 18, 2002 10:51 pm, Scott Vanderbilt wrote:
> I cannot get the native JDK 1.2.2 to build on my OpenBSD-3.2 (stable)
> system.

>

> Here are the last few lines from the build:
> 1.2 $make
> ===> Building for jdk-1.2.2
> Version of ALT_BOOTDIR JDK: 1.2
> Sanity check passed
>

> >>>Recursively making java all...
>

> gmake[1]: Entering directory
> `/usr/ports/devel/jdk/1.2/w-jdk-1.2.2/build/bsd/java'
>

> >>>Recursively making hpi all @ Mon Nov 18 08:34:13 PST 2002 ...
>

> gmake[2]: Entering directory
> `/usr/ports/devel/jdk/1.2/w-jdk-1.2.2/build/bsd/java/hpi'
>

> >>>Recursively making green all @ Mon Nov 18 08:34:13 PST 2002 ...
>

> gmake[3]: Entering directory
>

> >>>Recursively making jvm all @ Mon Nov 18 08:34:14 PST 2002 ...
>

> gmake[2]: Entering directory
> `/usr/ports/devel/jdk/1.2/w-jdk-1.2.2/build/bsd/java/jvm'
> gmake ../../lib/i386/classic/libjvm.so VARIANT=OPT
> gmake[3]: Entering directory
>ava ../../../../src/share/classes/java/security/AccessControlContext.java

> ../../../../src/share/classes/java/util/Properties.java
> ../../../../src/share/classes/sun/io/ByteToCharConverter.java
> ../../../../src/share/classes/sun/io/CharToByteConverter.java
> ../../../../src/share/classes/sun/misc/VM.java ; \fi
> **Out of memory, exiting**
> gmake[3]: *** [.compile.classlist] Error 1
> gmake[3]: Leaving directory
> `/usr/ports/devel/jdk/1.2/w-jdk-1.2.2/build/bsd/java/jvm'
> gmake[2]: *** [optimized] Error 2
> gmake[2]: Leaving directory
> `/usr/ports/devel/jdk/1.2/w-jdk-1.2.2/build/bsd/java/jvm'
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/devel/jdk/1.2/w-jdk-1.2.2/build/bsd/java'
> gmake: *** [all] Error 1
>

> Stop in /usr/ports/devel/jdk/1.2 (line 1749 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
>
> Any clues would be greatly appreciated. Many thanks in advance.
Received on Fri Nov 29 16:21:50 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:38:18 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library