From owner-freebsd-java@FreeBSD.ORG  Sun May 23 03:00:16 2004
Return-Path: <owner-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 1EDCB16A4CF
	for <java@FreeBSD.org>; Sun, 23 May 2004 03:00:16 -0700 (PDT)
Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C963A43D2F
	for <java@FreeBSD.org>; Sun, 23 May 2004 03:00:15 -0700 (PDT)
	(envelope-from kris@obsecurity.org)
Received: from obsecurity.dyndns.org
	(d8067f4f7dd8a792b432cae81abc8cf6@adsl-67-115-73-128.dsl.lsan03.pacbell.net
	[67.115.73.128])
	by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i4N9Ym7l024674
	for <java@FreeBSD.org>; Sun, 23 May 2004 02:34:49 -0700 (PDT)
Received: by obsecurity.dyndns.org (Postfix, from userid 1000)
	id 7350A51A2C; Sun, 23 May 2004 02:34:49 -0700 (PDT)
Date: Sun, 23 May 2004 02:34:49 -0700
From: Kris Kennaway <kris@obsecurity.org>
To: java@FreeBSD.org
Message-ID: <20040523093449.GE28944@xor.obsecurity.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz"
Content-Disposition: inline
User-Agent: Mutt/1.4.2.1i
Subject: javadc broken on 5.x
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 23 May 2004 10:00:16 -0000


--eJnRUKwClWJh1Khz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.5.2004050402/javadc-0.20.log

Kris

--eJnRUKwClWJh1Khz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAsHA5Wry0BWjoQKURAlMfAKD4XhS7bH9hC7C8V3Wp47Lh778fxwCgiTjT
cBrtL+FoHVabjjW59Ov7wGQ=
=2lEl
-----END PGP SIGNATURE-----

--eJnRUKwClWJh1Khz--

From owner-freebsd-java@FreeBSD.ORG  Mon May 24 00:58:20 2004
Return-Path: <owner-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 BCB8816A4CE
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 00:58:20 -0700 (PDT)
Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A849043D31
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 00:58:19 -0700 (PDT)
	(envelope-from past@noc.ntua.gr)
Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1])
	by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i4O7vTRu020045;
	Mon, 24 May 2004 10:57:29 +0300 (EEST)
	(envelope-from past@noc.ntua.gr)
Received: from [147.102.220.45] (hal.noc.ntua.gr [147.102.220.45])
	by ajax.noc.ntua.gr (8.12.11/8.12.11) with ESMTP id i4O7vRgD020898;
	Mon, 24 May 2004 10:57:28 +0300 (EEST)
	(envelope-from past@noc.ntua.gr)
Message-ID: <40B1AAE7.4020903@noc.ntua.gr>
Date: Mon, 24 May 2004 10:57:27 +0300
From: Panagiotis Astithas <past@noc.ntua.gr>
Organization: NTUA/NMC
User-Agent: Mozilla Thunderbird 0.6 (X11/20040510)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Greg Lewis <glewis@eyesbeyond.com>
References: <09BFCAF4-952D-11D8-822D-000393BB3E22@aps.org>
	<20040522174956.GA61678@misty.eyesbeyond.com>
In-Reply-To: <20040522174956.GA61678@misty.eyesbeyond.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: Paul Dlug <paul@aps.org>
cc: freebsd-java@freebsd.org
Subject: Re: Heap size limit
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 24 May 2004 07:58:20 -0000

Greg Lewis wrote:
> On Fri, Apr 23, 2004 at 09:49:27AM -0400, Paul Dlug wrote:
> 
>>I'm trying to start a JVM with a large heap size and getting an error 
>>message:
>>
>>java -Xms256m -Xmx2024m
>>Error occurred during initialization of VM
>>Could not reserve enough space for object heap
>>
>>I tried a bunch of different sizes and anything under 2024m works just 
>>fine so this appears to be a hard limit. I've tried changing a few 
>>system parameters but can't seem to stumble on the right one. Can 
>>someone help me out with this?
> 
> 
> Obviously I'm a long way behind on freebsd-java, but I'm catching up now...
> 
> My strong suggestion is that you're hitting the maximum amount of memory
> that your user can mmap.  I'm not exactly sure what setting dictate that,
> but its almost certainly what you're running into.

Definitely:
ktrace java -Xms256m -Xmx2024m

[...]
  15034 java     CALL  mmap(0,0x82800000,0,0x1042,0xffffffff,0,0,0)
  15034 java     RET   mmap -1 errno 22 Invalid argument
  15034 java     CALL  write(0x1,0xbfbfd670,0x2b)
  15034 java     GIO   fd 1 wrote 43 bytes
        "Error occurred during initialization of VM
        "
  15034 java     RET   write 43/0x2b
  15034 java     CALL  write(0x1,0xbfbfd670,0x2e)
  15034 java     GIO   fd 1 wrote 46 bytes
        "Could not reserve enough space for object heap"
[...]


% grep 22 /usr/include/errno.h
#define EINVAL          22              /* Invalid argument */

%man mmap
[...]

      [EINVAL]    MAP_FIXED was specified and the addr argument was not
                  page aligned, or part of the desired address space
                  resides out of the valid address space for a user
                  process.
[...]


Now try changing vm.max_proc_mmap to an insanely large value:

# sysctl vm.max_proc_mmap=10000000000000
vm.max_proc_mmap: 26960 -> 2147483647

We see the requested size gets truncated to 2 GB.
This still doesn't help us, though:

# /usr/local/jdk1.4.2/bin/java -Xms256m -Xmx2024m
Error occurred during initialization of VM
Could not reserve enough space for object heap


The weird thing is that in a GENERIC kernel, the kernel/userland address 
space split is 1 GB / 3 GB. As it can bee sen from the following excerpt 
from /sys/i386/conf/NOTES:

#
# Change the size of the kernel virtual address space.  Due to
# constraints in loader(8) on i386, this must be a multiple of 4.
# 256 = 1 GB of kernel address space.  Increasing this also causes
# a reduction of the address space in user processes.  512 splits
# the 4GB cpu address space in half (2GB user, 2GB kernel).
#
options         KVA_PAGES=260


Why you can't mmap up to 3 GB of memory, I don't know. Perhaps we should 
take it to -current or -hackers.

Cheers,
-- 
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece

From owner-freebsd-java@FreeBSD.ORG  Mon May 24 11:01:51 2004
Return-Path: <owner-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 86F7D16A4DE
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 11:01:51 -0700 (PDT)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6C56943D2D
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 11:01:51 -0700 (PDT)
	(envelope-from owner-bugmaster@freebsd.org)
Received: from freefall.freebsd.org (peter@localhost [127.0.0.1])
	by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i4OI1oHN076577
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 11:01:50 -0700 (PDT)
	(envelope-from owner-bugmaster@freebsd.org)
Received: (from peter@localhost)
	by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4OI1nRf076570
	for freebsd-java@freebsd.org; Mon, 24 May 2004 11:01:49 -0700 (PDT)
	(envelope-from owner-bugmaster@freebsd.org)
Date: Mon, 24 May 2004 11:01:49 -0700 (PDT)
Message-Id: <200405241801.i4OI1nRf076570@freefall.freebsd.org>
X-Authentication-Warning: freefall.freebsd.org: peter set sender to
	owner-bugmaster@freebsd.org using -f
From: FreeBSD bugmaster <bugmaster@freebsd.org>
To: freebsd-java@FreeBSD.org
Subject: Current problem reports assigned to you
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 24 May 2004 18:01:51 -0000

Current FreeBSD problem reports
Critical problems
Serious problems

S  Submitted   Tracker     Resp.       Description
-------------------------------------------------------------------------------
o [2004/04/12] ports/65479 java        ports reinstall ignores ${MAKE_ARGS}
o [2004/05/01] java/66151  java        JBuilderX (sun jvm 1.4.1 builtin) crashes

2 problems total.

Non-critical problems

S  Submitted   Tracker     Resp.       Description
-------------------------------------------------------------------------------
o [2002/10/18] java/44251  java        Create stylebook port
o [2003/07/29] java/55032  java        SVr4 emulation interferes with install
s [2003/09/16] java/56928  java        jce-aba port should install to $JAVA_HOME
o [2004/02/14] java/62837  java        linux-sun-jdk14 executables hang with COM
o [2004/04/08] java/65335  java        [PATCH] java/jdk14: use bsd.java.mk for J
o [2004/04/12] ports/65465 java        Eclipse has no fonts with recent pango, c
o [2004/05/06] ports/66342 java        [PATCH] fix ECHO_MSG breakage in java por
f [2004/05/07] java/66349  java        [PATCH] net/javadc: fix build on bento [r
f [2004/05/19] java/66875  java        Eclipse Version 3.0 port not available

9 problems total.

From owner-freebsd-java@FreeBSD.ORG  Mon May 24 15:48:23 2004
Return-Path: <owner-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 EA0D816A4CE
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 15:48:23 -0700 (PDT)
Received: from andromeda.lunarpages.com (andromeda.lunarpages.com
	[64.235.234.215])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9EEC743D46
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 15:48:23 -0700 (PDT)
	(envelope-from tyler@ekkobsd.org)
Received: from c66.190.110.217.ts46v-01.rckprt.tx.charter.com
	([66.190.110.217] helo=bsd.tigersitedev.com)
	by andromeda.lunarpages.com with asmtp (Exim 4.34)
	id 1BSOEM-0006fm-7W
	for freebsd-java@freebsd.org; Mon, 24 May 2004 15:47:38 -0700
From: "R. Tyler Ballance" <tyler@ekkobsd.org>
Organization: ekkoBSD
To: freebsd-java@freebsd.org
Date: Mon, 24 May 2004 17:47:26 -0500
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200405241747.26268.tyler@ekkobsd.org>
X-AntiAbuse: This header was added to track abuse, please include it with any
	abuse report
X-AntiAbuse: Primary Hostname - andromeda.lunarpages.com
X-AntiAbuse: Original Domain - freebsd.org
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - ekkobsd.org
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Subject: Java SDk 1.4.2_04
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 24 May 2004 22:48:24 -0000

Howdy there, i"m happy to say, I finally gave up on Fedora, and came back to 
FreeBSD 

Anyways, I'm a java-student in college and all that fun stuff, and I'm having 
trouble building the JDK14 port (/usr/ports/java/jdk14)

The ports say they require revision 02 which is completely abscent from 
java.sun.com, so I just stuck the 04 in the distfiles directory, and changed 
the MD5 sum in the distinfo (/usr/ports/java/linux-sun-jdk14) file and the 
Makefile variable JDK_REVISION

Anyways, i keep getting errors in that same port's  (/usr/ports/java/
linux-sun-jdk14) work directory, it's giving me this

/usr/ports/java/linux-sun-jdk14/work/install.sfx: 1: Syntax error: ")" 
unexpected
*** Error code 2

Stop in /usr/ports/java/linux-sun-jdk14.
*** Error code 1


If anybody either a) has the 02 revision
or 
b) knows a workaround or a fix for this I'd be much obliged ;)

(also: I tried IBM's JDK and whatnot, i'm under 5.2.1 btw, and it built fine, 
but it suffers from memory stack errors etc, I have the linuxprocfs mounted 
and whatnot, but it just won't work :-/)

A way to get ANY JDK working would be nice ;)

-Tyler
-----------
ekkoBSD.org

From owner-freebsd-java@FreeBSD.ORG  Mon May 24 16:20:16 2004
Return-Path: <owner-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 3086416A4CE
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 16:20:16 -0700 (PDT)
Received: from smtp16.wxs.nl (smtp16.wxs.nl [195.121.6.39])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DBA9D43D2F
	for <freebsd-java@freebsd.org>; Mon, 24 May 2004 16:20:15 -0700 (PDT)
	(envelope-from ronald-freebsd6@klop.yi.org)
Received: from ronald.echteman.nl
 (ip51cdc5d2.adsl-surfen.hetnet.nl [81.205.197.210])
 by smtp16.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar  3
 2004)) with SMTP id <0HY8000HARGNBL@smtp16.wxs.nl> for
 freebsd-java@freebsd.org; Tue, 25 May 2004 01:19:35 +0200 (CEST)
Received: (qmail 32155 invoked from network); Mon, 24 May 2004 23:19:34 +0000
Received: from unknown (HELO laptop.thuis.klop.ws) (192.168.1.4)
 by ronald.echteman.nl with SMTP; Mon, 24 May 2004 23:19:34 +0000
Received: (qmail 9020 invoked from network); Mon, 24 May 2004 23:19:21 +0000
Received: from unknown (HELO guido.thuis.klop.ws) (192.168.0.2)
 by 192.168.0.16 with SMTP; Mon, 24 May 2004 23:19:21 +0000
Received: (qmail 55761 invoked from network); Mon, 24 May 2004 23:19:33 +0000
Received: from localhost.thuis.klop.ws (HELO outgoing.local) (127.0.0.1)
 by localhost.thuis.klop.ws with SMTP; Mon, 24 May 2004 23:19:33 +0000
Date: Tue, 25 May 2004 01:19:32 +0200
From: Ronald Klop <ronald-freebsd6@klop.yi.org>
In-reply-to: <200405241747.26268.tyler@ekkobsd.org>
To: "R. Tyler Ballance" <tyler@ekkobsd.org>
Message-id: <opr8i1qugvhntn4l@outgoing.local>
MIME-version: 1.0
Content-type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1
Content-transfer-encoding: 7BIT
User-Agent: Opera M2/7.50 (FreeBSD, build 673)
References: <200405241747.26268.tyler@ekkobsd.org>
cc: freebsd-java@freebsd.org
Subject: Re: Java SDk 1.4.2_04
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 24 May 2004 23:20:16 -0000

Maybe you should update your ports to the latest version.
You can do this with cvsup or porteasy I think.
I'm currently building java and it run just fine. It only takes a while.  
;-)

Greetings.

Ronald.

On Mon, 24 May 2004 17:47:26 -0500, R. Tyler Ballance <tyler@ekkobsd.org>  
wrote:

> Howdy there, i"m happy to say, I finally gave up on Fedora, and came  
> back to
> FreeBSD
>
> Anyways, I'm a java-student in college and all that fun stuff, and I'm  
> having
> trouble building the JDK14 port (/usr/ports/java/jdk14)
>
> The ports say they require revision 02 which is completely abscent from
> java.sun.com, so I just stuck the 04 in the distfiles directory, and  
> changed
> the MD5 sum in the distinfo (/usr/ports/java/linux-sun-jdk14) file and  
> the
> Makefile variable JDK_REVISION
>
> Anyways, i keep getting errors in that same port's  (/usr/ports/java/
> linux-sun-jdk14) work directory, it's giving me this
>
> /usr/ports/java/linux-sun-jdk14/work/install.sfx: 1: Syntax error: ")"
> unexpected
> *** Error code 2
>
> Stop in /usr/ports/java/linux-sun-jdk14.
> *** Error code 1
>
>
> If anybody either a) has the 02 revision
> or
> b) knows a workaround or a fix for this I'd be much obliged ;)
>
> (also: I tried IBM's JDK and whatnot, i'm under 5.2.1 btw, and it built  
> fine,
> but it suffers from memory stack errors etc, I have the linuxprocfs  
> mounted
> and whatnot, but it just won't work :-/)
>
> A way to get ANY JDK working would be nice ;)
>
> -Tyler
> -----------
> ekkoBSD.org
>
> _______________________________________________
> 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"



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

From owner-freebsd-java@FreeBSD.ORG  Tue May 25 01:30:56 2004
Return-Path: <owner-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 856FA16A4CE
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 01:30:56 -0700 (PDT)
Received: from grande.el.net (NS2.EL.NET [68.165.89.67])
	by mx1.FreeBSD.org (Postfix) with SMTP id 0F01443D31
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 01:30:56 -0700 (PDT)
	(envelope-from kalin@el.net)
Received: (qmail 15578 invoked from network); 25 May 2004 08:35:03 -0000
Received: from localhost (HELO el.net) (127.0.0.1)
  by grande.el.net with SMTP; 25 May 2004 08:35:03 -0000
Received: from 24.90.34.93
        (SquirrelMail authenticated user kalin)
        by el.net with HTTP;
        Tue, 25 May 2004 04:35:03 -0400 (EDT)
Message-ID: <51384.24.90.34.93.1085474103.squirrel@el.net>
Date: Tue, 25 May 2004 04:35:03 -0400 (EDT)
From: "kalin mintchev" <kalin@el.net>
To: freebsd-java@freebsd.org
User-Agent: SquirrelMail/1.4.2
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3
Importance: Normal
Subject: build 1.4.2-p6
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 25 May 2004 08:30:56 -0000

hi all..

i got the package from the bsd java project. followd the instructions in
the BUILD file. set up my envs. downloaded the sources and bins from sun
and aplied the jdk14.patches. the build stops in the beginning.
here is all the output...

please help - thanks

bsd i586 1.4.2-p6 build started: 04-05-25 04:09
if [ -r ./../../deploy/make/Makefile ]; then \
  ( cd  ./../../deploy/make; gmake sanity EXTERNALSANITYCONTROL=true
CONTROL_TOPDIR=/usr/local/linux-sun-jdk1.4.2/control
CONTROL_TOPDIR_NAME=control
ALT_OUTPUTDIR=/usr/local/linux-sun-jdk1.4.2/control/build/bsd-i586 
ARCH_DATA_MODEL=32 MILESTONE=p6 BUILD_NUMBER=root_25_may_2004_04_09
ALT_JAVAWS_BOOTDIR=/usr/local/linux-sun-jdk1.4.2 ; ); \
fi
gmake[1]: Entering directory `/usr/local/linux-sun-jdk1.4.2/deploy/make'
gmake[1]: Leaving directory `/usr/local/linux-sun-jdk1.4.2/deploy/make'
gmake[1]: Entering directory `/usr/local/linux-sun-jdk1.4.2/j2se/make'
gmake[1]: Leaving directory `/usr/local/linux-sun-jdk1.4.2/j2se/make'

Build Machine Information:
   build machine =

Build Directory Structure:
   CWD = /usr/local/linux-sun-jdk1.4.2/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:
   OUTPUTDIR = /usr/local/linux-sun-jdk1.4.2/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 = 3.2.1
   PATH =
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin

Build Directives:
   PEDANTIC =
   INSANE =

Build Platform Settings:
   PLATFORM = bsd
   ARCH = i586
   LIBARCH = i386
   ARCH_FAMILY = i586
   ARCH_DATA_MODEL = 32
   OS_VERSION = 5.0-RELEASE
   TRUE_PLATFORM = FreeBSD (5.x CURRENT way)
   FREE_SPACE = 17337788

GNU Make Settings:
   MAKE = gmake
   MAKE VERSION =
   MAKECMDGOALS = sanity
   MAKEFLAGS = w -- ALT_JAVAWS_BOOTDIR=/usr/local/linux-sun-jdk1.4.2
BUILD_NUMBER=root_25_may_2004_04_09 MILESTONE=p6 ARCH_DATA_MODEL=32
ALT_OUTPUTDIR=/usr/local/linux-sun-jdk1.4.2/control/build/bsd-i586
CONTROL_TOPDIR_NAME=control
CONTROL_TOPDIR=/usr/local/linux-sun-jdk1.4.2/control
EXTERNALSANITYCONTROL=true
   SHELL = /bin/sh

Target Build Versions:
   JAVAWS_VERSION = 1.4.2
   MILESTONE = p6
   BUILD_NUMBER = root_25_may_2004_04_09

Bootstrap Settings:
   BOOTDIR = /usr/local/linux-sun-jdk1.4.2
   BOOTSTRAP J2SDK VERSION:
   OUTPUTDIR = /usr/local/linux-sun-jdk1.4.2/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 = 3.2.1
   ZIP_VER = 2.3
   PATH =
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/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 = 5.0-RELEASE
   TRUE_PLATFORM = FreeBSD (5.x CURRENT way)
   FREE_SPACE = 17337784

GNU Make Settings:
   MAKE = gmake
   MAKE VERSION =
   MAKECMDGOALS = sanity
   MAKEFLAGS =
   SHELL = /bin/sh

Target Build Versions:
   JDK_VERSION = 1.4.2
   MILESTONE = p6
   BUILD_NUMBER = root_25_may_2004_04_09

External File/Binary Locations:
   HOTSPOT_SERVER_PATH =
/usr/local/linux-sun-jdk1.4.2/control/build/bsd-i586/hotspot-i586/server
   HOTSPOT_CLIENT_PATH =
/usr/local/linux-sun-jdk1.4.2/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.

ERROR: JAVAWS_BOOTDIR does not point to a valid Java 2 SDK
       Check that you have access to
           /usr/local/linux-sun-jdk1.4.2/bin/java
       and/or check your value of ALT_JAVAWS_BOOTDIR.

ERROR: BOOTDIR does not point to a valid Java 2 SDK
       Check that you have access to
           /usr/local/linux-sun-jdk1.4.2/bin/java
       and/or check your value of ALT_BOOTDIR.

Exiting because of the above error(s).


From owner-freebsd-java@FreeBSD.ORG  Tue May 25 01:45:17 2004
Return-Path: <owner-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 B489416A4CE
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 01:45:17 -0700 (PDT)
Received: from GreenSrv.rz.unibw-muenchen.de (greensrv.RZ.UniBw-Muenchen.de
	[137.193.10.35])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DB75943D2F
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 01:45:16 -0700 (PDT)
	(envelope-from lutz@medusa.informatik.unibw-muenchen.de)
Received: from localhost (GreenSrv [127.0.0.1])i4P8dhnt021158
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 10:39:43 +0200
Received: from GreenSrv.rz.unibw-muenchen.de ([127.0.0.1])
 by localhost (GreenSrv [127.0.0.1]) (amavisd-new, port 10024) with LMTP
 id 20876-03 for <freebsd-java@freebsd.org>;
 Tue, 25 May 2004 10:39:40 +0200 (CEST)
Received: from medusa.informatik.unibw-muenchen.de
	(medusa.Informatik.UniBw-Muenchen.de [137.193.60.34])i4P8dd7f021140
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 10:39:39 +0200
Received: from lutz by medusa.informatik.unibw-muenchen.de with local (Exim
	4.34; FreeBSD)	id 1BSXRG-000IF4-FE
	for freebsd-java@freebsd.org; Tue, 25 May 2004 10:37:34 +0200
From: Lutz Bichler <Lutz.Bichler@unibw-muenchen.de>
Organization: University of the Federal Armed Forces Munich
To: freebsd-java@freebsd.org
Date: Tue, 25 May 2004 10:37:34 +0200
User-Agent: KMail/1.6.2
References: <51384.24.90.34.93.1085474103.squirrel@el.net>
In-Reply-To: <51384.24.90.34.93.1085474103.squirrel@el.net>
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <200405251037.34438.Lutz.Bichler@unibw-muenchen.de>
Sender: Lutz Bichler <lutz@medusa.informatik.unibw-muenchen.de>
X-Virus-Scanned: by amavisd-new at GreenSrv.rz.unibw-muenchen.de
Subject: Re: build 1.4.2-p6
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 25 May 2004 08:45:17 -0000

Hi,

cd /usr/ports/java/jdk14 && make && make install 

does everything for you. Well, nearly everything.  You have to put the 
jdk-sources and -patches to /usr/ports/distfiles and if you have not 
linux-jdk installed you will also have to get one from sun and move it 
to /usr/ports/distfiles.

Lutz

From owner-freebsd-java@FreeBSD.ORG  Tue May 25 02:49:18 2004
Return-Path: <owner-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 9A25016A4CE
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 02:49:18 -0700 (PDT)
Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A07FF43D1F
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 02:49:17 -0700 (PDT)
	(envelope-from past@noc.ntua.gr)
Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1])
	by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i4P9mVRu038834;
	Tue, 25 May 2004 12:48:31 +0300 (EEST)
	(envelope-from past@noc.ntua.gr)
Received: from [147.102.220.45] (hal.noc.ntua.gr [147.102.220.45])
	by ajax.noc.ntua.gr (8.12.11/8.12.11) with ESMTP id i4P9mVF0092422;
	Tue, 25 May 2004 12:48:31 +0300 (EEST)
	(envelope-from past@noc.ntua.gr)
Message-ID: <40B3166F.1090106@noc.ntua.gr>
Date: Tue, 25 May 2004 12:48:31 +0300
From: Panagiotis Astithas <past@noc.ntua.gr>
Organization: NTUA/NMC
User-Agent: Mozilla Thunderbird 0.6 (X11/20040510)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Lutz Bichler <Lutz.Bichler@unibw-muenchen.de>
References: <51384.24.90.34.93.1085474103.squirrel@el.net>
	<200405251037.34438.Lutz.Bichler@unibw-muenchen.de>
In-Reply-To: <200405251037.34438.Lutz.Bichler@unibw-muenchen.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: freebsd-java@freebsd.org
Subject: Re: build 1.4.2-p6
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 25 May 2004 09:49:18 -0000

Lutz Bichler wrote:
> Hi,
> 
> cd /usr/ports/java/jdk14 && make && make install 
> 
> does everything for you. Well, nearly everything.  You have to put the 
> jdk-sources and -patches to /usr/ports/distfiles and if you have not 
> linux-jdk installed you will also have to get one from sun and move it 
> to /usr/ports/distfiles.

The latter seems to be the problem from the provided errorlog.

Cheers,
-- 
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece

From owner-freebsd-java@FreeBSD.ORG  Tue May 25 10:17:04 2004
Return-Path: <owner-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 102B316A4CE
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 10:17:04 -0700 (PDT)
Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C98F043D3F
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 10:17:03 -0700 (PDT)
	(envelope-from sk@pressevent.com)
Received: from bursononxhwpz9
	(pcp04745553pcs.bowie01.md.comcast.net[68.50.32.109])
	by comcast.net (rwcrmhc12) with SMTP
	id <2004052517163401400834cje>; Tue, 25 May 2004 17:16:35 +0000
From: "Sergei Komarov" <sk@pressevent.com>
To: "'Panagiotis Astithas'" <past@noc.ntua.gr>
Date: Tue, 25 May 2004 13:16:33 -0400
Message-ID: <011701c4427c$07985c20$c2289298@bursononxhwpz9>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
In-Reply-To: <40ADA7AC.20407@noc.ntua.gr>
Importance: Normal
cc: freebsd-java@freebsd.org
Subject: RE: JDK142_p6 - non-ascii encoding problem?
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 25 May 2004 17:17:04 -0000

Thank you for your suggestions. It turns out that the issue is not
FreeBSD-specific: I was able to replicate it on Solaris. In the end, I
opted for implementing the transcoding in a custom taglib and upgrading
the app.

Thank you,


Sergei Komarov 


-----Original Message-----
From: Panagiotis Astithas [mailto:past@noc.ntua.gr] 
Sent: Friday, May 21, 2004 2:55 AM
To: Sergei Komarov
Cc: freebsd-java@freebsd.org
Subject: Re: JDK142_p6 - non-ascii encoding problem?


Sergei Komarov wrote:
> Hello,
> 
> I'm running FreeBSD 4.9-STABLE, jdk1.4.2_p6 and Tomcat 4.1.30 or 
> 5.0.24 and keep having a problem with non-Latin1 characters output by 
> JSPs. This problem seems to be specific to FreeBSD as it doesn't occur

> on Windows (I'm testing Solaris as well).
> 
> A JSP receives a request attribute containing a string of non-Latin1 
> characters (Cyrillic Windows, Simplified Chinese gb2312, etc.)
> 
> When the string is output within a page via c:out, struts bean:write 
> or <%=name%>, JspWriter converts all non-Latin1 chars to '?'.
> 
> I can correct it with either of the following tricks, but the 
> application is too big to replicate them in all JSPs: <%@page 
> language="java"
>         contentType="text/html;charset=gb2312"
>         import= "java.nio.charset.*,
>                  java.nio.CharBuffer,
>                  java.nio.ByteBuffer"
> %>
> <%
> String orig = (String) request.getAttribute("original"); String 
> encoded =  new String(orig.getBytes("ISO-8859-1"),"gb2312");
> %>
> ...
> <%= encoded %>
> ...
> <%
> Charset gb2312 = Charset.forName("gb2312");
> Charset iso = Charset.forName("ISO-8859-1");
> CharBuffer cb = CharBuffer.wrap(orig);
> ByteBuffer bb = iso.encode(cb);
> %>
> ...
> <%= gb2312.decode(bb) %>
> 
> Am I missing something in the configuration of FreeBSD and JDK?
> 
> I tried setting 
> LANGUAGE          zh_CN
> LANG              zh_CN.gb2312
> LC_TYPE           zh_CN
> LC_ALL            zh_CN
> MM_CHARSET        gb2312
> 
> In /etc/profile etc., but to no avail. Perhaps someone knows the 
> solution to this?

You could try adding the following to the default class in
/etc/login.conf:
         :charset=zh_CN.GB2312:\
         :lang=zh_CN.GB2312:\
and then doing "cap_mkdb /etc/login.conf".

You could also have just mis-spelled the locale.

Cheers,
-- 
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece

From owner-freebsd-java@FreeBSD.ORG  Tue May 25 12:04:31 2004
Return-Path: <owner-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 CD85516A4CE
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 12:04:31 -0700 (PDT)
Received: from web21004.mail.yahoo.com (web21004.mail.yahoo.com
	[216.136.227.58])
	by mx1.FreeBSD.org (Postfix) with SMTP id B341B43D31
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 12:04:31 -0700 (PDT)
	(envelope-from josearaness@yahoo.es)
Message-ID: <20040525190415.44137.qmail@web21004.mail.yahoo.com>
Received: from [81.208.106.73] by web21004.mail.yahoo.com via HTTP;
	Tue, 25 May 2004 21:04:15 CEST
Date: Tue, 25 May 2004 21:04:15 +0200 (CEST)
From: =?iso-8859-1?q?Jose=20Aranes?= <josearaness@yahoo.es>
To: freebsd-java@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Subject: Problem with netbeans-3.6 (freebsd 5.2 release) Exception in thread
	"main" java.lang.UnsupportedClassVersionError:
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 25 May 2004 19:04:32 -0000


 Hi all

 1) portinstall 
  
  # portinstall netbeans
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg
... - 197 packages found (-1 +0) (...) done]
--->  Installing 'netbeans-3.6' from a port
(java/netbeans)
--->  Building '/usr/ports/java/netbeans'
===>  Cleaning for gettext-0.13.1_1
===>  Cleaning for glib-1.2.10_10
===>  Cleaning for nspr-4.4.1_1
===>  Cleaning for javavmwrapper-1.5
===>  Cleaning for jdk-1.3.1p9_4
===>  Cleaning for urwfonts-1.0
===>  Cleaning for gtk-1.2.10_12
===>  Cleaning for open-motif-2.2.2_2
===>  Cleaning for netbeans-3.6
===>  Vulnerability check disabled
===>  Extracting for netbeans-3.6
>> Checksum OK for netbeans-3_6.tar.bz2.
===>  Patching for netbeans-3.6
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|$FreeBSD:
ports/java/netbeans/files/bin_runide.sh.diff,v 1.3
2004/04/16 13:51:23 olgeni Exp $
|
|--- bin/runide.sh.orig Tue Jun  3 11:23:09 2003
|+++ bin/runide.sh      Wed Jun 11 12:30:37 2003
--------------------------
Patching file
/usr/ports/java/netbeans/work/netbeans/bin/runide.sh
using Plan A...
Hunk #1 succeeded at 131.
done
===>  Configuring for netbeans-3.6
--->  Installing the new version via the port
===>  Installing for netbeans-3.6
===>   netbeans-3.6 depends on file:
/usr/local/jdk1.3.1/bin/java - found
===>   Generating temporary packing list
===>  Checking if java/netbeans already installed
===>   Registering installation for netbeans-3.6
===>  Cleaning for gettext-0.13.1_1
===>  Cleaning for glib-1.2.10_10
===>  Cleaning for nspr-4.4.1_1
===>  Cleaning for javavmwrapper-1.5
===>  Cleaning for jdk-1.3.1p9_4
===>  Cleaning for urwfonts-1.0
===>  Cleaning for gtk-1.2.10_12
===>  Cleaning for open-motif-2.2.2_2
===>  Cleaning for netbeans-3.6
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg
... - 198 packages found (-0 +1) . done]

#  

 % more .chsrc

  set path = (/sbin /bin /usr/sbin /usr/bin /usr/games
/usr/local/sbin /usr/local/bin /usr/X11R6/bin
/usr/local/jdk1.3.1/bin  $HOME/bin)

 setenv  JAVA_HOME /usr/local/jdk1.3.1
 setenv  JDK_HOME /usr/local/jdk1.3.1

 jdk1.3.1 alone, works perfectly (javac, java,
javadoc, etc) but...

 I take this problem when try to start netbeans:

 %netbeans  --jdkhome /usr/local/jdk1.3.1
Exception in thread "main"
java.lang.UnsupportedClassVersionError:
org/netbeans/Main (Unsupported major.minor version
48.0)
        at java.lang.ClassLoader.defineClass0(Native
Method)
        at
java.lang.ClassLoader.defineClass(ClassLoader.java:486)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
%

  Can someone give me a help?

  regards 
            Josean

  



		
______________________________________________________________________
Correo Yahoo! - 6MB, más protección contra el spam ¡Gratis!
http://correo.yahoo.es

From owner-freebsd-java@FreeBSD.ORG  Tue May 25 19:18:26 2004
Return-Path: <owner-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 1E32616A4CE
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 19:18:26 -0700 (PDT)
Received: from andromeda.lunarpages.com (andromeda.lunarpages.com
	[64.235.234.215])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D208543D41
	for <freebsd-java@freebsd.org>; Tue, 25 May 2004 19:18:24 -0700 (PDT)
	(envelope-from tyler@ekkobsd.org)
Received: from c66.190.110.217.ts46v-01.rckprt.tx.charter.com
	([66.190.110.217] helo=bsd.tigersitedev.com)
	by andromeda.lunarpages.com with asmtp (Exim 4.34)
	id 1BSnzm-00013G-G1
	for freebsd-java@freebsd.org; Tue, 25 May 2004 19:18:18 -0700
From: "R. Tyler Ballance" <tyler@ekkobsd.org>
Organization: ekkoBSD
To: freebsd-java@freebsd.org
Date: Tue, 25 May 2004 21:18:04 -0500
User-Agent: KMail/1.5.4
References: <200405241747.26268.tyler@ekkobsd.org>
	<opr8i1qugvhntn4l@outgoing.local>
In-Reply-To: <opr8i1qugvhntn4l@outgoing.local>
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <200405252118.04347.tyler@ekkobsd.org>
X-AntiAbuse: This header was added to track abuse, please include it with any
	abuse report
X-AntiAbuse: Primary Hostname - andromeda.lunarpages.com
X-AntiAbuse: Original Domain - freebsd.org
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - ekkobsd.org
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Subject: Re: Java SDk 1.4.2_04
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 26 May 2004 02:18:26 -0000

Alright, so far I have the IBM 1.4.1 JDK installed, and running a simple 
program that just prints out Hello World! it gives me the following, (the 
install didn't error)

bsd# /usr/local/linux-ibm-jdk1.4.1/bin/javac test.java
JVMLH050: Signal stack registration failed (errno=22).
Abort (core dumped)


when I try to install the linux-sun-jdk14 port, I get a brand new error 
(!) :-/

Everything seems to run fine up to this point:

In file included from /usr/ports/java/jdk14/work/hotspot/src/share/vm/adlc/
adlc.hpp:81,
                 from /usr/ports/java/jdk14/work/hotspot/src/share/vm/adlc/
output_h.cpp:10:
/usr/ports/java/jdk14/work/hotspot/src/share/vm/adlc/formssel.hpp:305: 
internal compiler error: Segmentation
   fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[3]: *** [../generated/adfiles/output_h.o] Error 1
gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/control/build/
bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[2]: *** [ad_stuff] 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.

oi vei, why java why!

-Tyler

> Maybe you should update your ports to the latest version.
> You can do this with cvsup or porteasy I think.
> I'm currently building java and it run just fine. It only takes a while.
> ;-)
>
> Greetings.
>
> Ronald.
>
> On Mon, 24 May 2004 17:47:26 -0500, R. Tyler Ballance <tyler@ekkobsd.org>
>
> wrote:
> > Howdy there, i"m happy to say, I finally gave up on Fedora, and came
> > back to
> > FreeBSD
> >
> > Anyways, I'm a java-student in college and all that fun stuff, and I'm
> > having
> > trouble building the JDK14 port (/usr/ports/java/jdk14)
> >
> > The ports say they require revision 02 which is completely abscent from
> > java.sun.com, so I just stuck the 04 in the distfiles directory, and
> > changed
> > the MD5 sum in the distinfo (/usr/ports/java/linux-sun-jdk14) file and
> > the
> > Makefile variable JDK_REVISION
> >
> > Anyways, i keep getting errors in that same port's  (/usr/ports/java/
> > linux-sun-jdk14) work directory, it's giving me this
> >
> > /usr/ports/java/linux-sun-jdk14/work/install.sfx: 1: Syntax error: ")"
> > unexpected
> > *** Error code 2
> >
> > Stop in /usr/ports/java/linux-sun-jdk14.
> > *** Error code 1
> >
> >
> > If anybody either a) has the 02 revision
> > or
> > b) knows a workaround or a fix for this I'd be much obliged ;)
> >
> > (also: I tried IBM's JDK and whatnot, i'm under 5.2.1 btw, and it built
> > fine,
> > but it suffers from memory stack errors etc, I have the linuxprocfs
> > mounted
> > and whatnot, but it just won't work :-/)
> >
> > A way to get ANY JDK working would be nice ;)
> >
> > -Tyler
> > -----------
> > ekkoBSD.org
> >
> > _______________________________________________
> > 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"

From owner-freebsd-java@FreeBSD.ORG  Wed May 26 00:01:18 2004
Return-Path: <owner-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 94B8416A4CE
	for <freebsd-java@freebsd.org>; Wed, 26 May 2004 00:01:18 -0700 (PDT)
Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C3E2843D48
	for <freebsd-java@freebsd.org>; Wed, 26 May 2004 00:01:15 -0700 (PDT)
	(envelope-from past@noc.ntua.gr)
Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1])
	by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i4Q70tRu019514;
	Wed, 26 May 2004 10:00:55 +0300 (EEST)
	(envelope-from past@noc.ntua.gr)
Received: from [147.102.220.45] (hal.noc.ntua.gr [147.102.220.45])
	by ajax.noc.ntua.gr (8.12.11/8.12.11) with ESMTP id i4Q70sOM045391;
	Wed, 26 May 2004 10:00:55 +0300 (EEST)
	(envelope-from past@noc.ntua.gr)
Message-ID: <40B440A6.5060100@noc.ntua.gr>
Date: Wed, 26 May 2004 10:00:54 +0300
From: Panagiotis Astithas <past@noc.ntua.gr>
Organization: NTUA/NMC
User-Agent: Mozilla Thunderbird 0.6 (X11/20040510)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Jose Aranes <josearaness@yahoo.es>
References: <20040525190415.44137.qmail@web21004.mail.yahoo.com>
In-Reply-To: <20040525190415.44137.qmail@web21004.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: freebsd-java@freebsd.org
Subject: Re: Problem with netbeans-3.6 (freebsd 5.2 release) Exception in
 thread	"main" java.lang.UnsupportedClassVersionError:
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 26 May 2004 07:01:18 -0000

Jose Aranes wrote:
>  Hi all
> 
>  1) portinstall 
>   
>   # portinstall netbeans
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg
> ... - 197 packages found (-1 +0) (...) done]
> --->  Installing 'netbeans-3.6' from a port
> (java/netbeans)
> --->  Building '/usr/ports/java/netbeans'
> ===>  Cleaning for gettext-0.13.1_1
> ===>  Cleaning for glib-1.2.10_10
> ===>  Cleaning for nspr-4.4.1_1
> ===>  Cleaning for javavmwrapper-1.5
> ===>  Cleaning for jdk-1.3.1p9_4
> ===>  Cleaning for urwfonts-1.0
> ===>  Cleaning for gtk-1.2.10_12
> ===>  Cleaning for open-motif-2.2.2_2
> ===>  Cleaning for netbeans-3.6
> ===>  Vulnerability check disabled
> ===>  Extracting for netbeans-3.6
> 
>>>Checksum OK for netbeans-3_6.tar.bz2.
> 
> ===>  Patching for netbeans-3.6
> Hmm...  Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |
> |$FreeBSD:
> ports/java/netbeans/files/bin_runide.sh.diff,v 1.3
> 2004/04/16 13:51:23 olgeni Exp $
> |
> |--- bin/runide.sh.orig Tue Jun  3 11:23:09 2003
> |+++ bin/runide.sh      Wed Jun 11 12:30:37 2003
> --------------------------
> Patching file
> /usr/ports/java/netbeans/work/netbeans/bin/runide.sh
> using Plan A...
> Hunk #1 succeeded at 131.
> done
> ===>  Configuring for netbeans-3.6
> --->  Installing the new version via the port
> ===>  Installing for netbeans-3.6
> ===>   netbeans-3.6 depends on file:
> /usr/local/jdk1.3.1/bin/java - found
> ===>   Generating temporary packing list
> ===>  Checking if java/netbeans already installed
> ===>   Registering installation for netbeans-3.6
> ===>  Cleaning for gettext-0.13.1_1
> ===>  Cleaning for glib-1.2.10_10
> ===>  Cleaning for nspr-4.4.1_1
> ===>  Cleaning for javavmwrapper-1.5
> ===>  Cleaning for jdk-1.3.1p9_4
> ===>  Cleaning for urwfonts-1.0
> ===>  Cleaning for gtk-1.2.10_12
> ===>  Cleaning for open-motif-2.2.2_2
> ===>  Cleaning for netbeans-3.6
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg
> ... - 198 packages found (-0 +1) . done]
> 
> #  
> 
>  % more .chsrc
> 
>   set path = (/sbin /bin /usr/sbin /usr/bin /usr/games
> /usr/local/sbin /usr/local/bin /usr/X11R6/bin
> /usr/local/jdk1.3.1/bin  $HOME/bin)
> 
>  setenv  JAVA_HOME /usr/local/jdk1.3.1
>  setenv  JDK_HOME /usr/local/jdk1.3.1
> 
>  jdk1.3.1 alone, works perfectly (javac, java,
> javadoc, etc) but...
> 
>  I take this problem when try to start netbeans:
> 
>  %netbeans  --jdkhome /usr/local/jdk1.3.1
> Exception in thread "main"
> java.lang.UnsupportedClassVersionError:
> org/netbeans/Main (Unsupported major.minor version
> 48.0)
>         at java.lang.ClassLoader.defineClass0(Native
> Method)
>         at
> java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
>         at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>         at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>         at
> java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>         at
> java.security.AccessController.doPrivileged(Native
> Method)
>         at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at
> java.lang.ClassLoader.loadClass(ClassLoader.java:297)
>         at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
>         at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>         at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> %

It seems that netbeans doesn't support JDK1.3.1, but only 1.4+. Try the 
following patch:

-----------------------------------------------------------------
--- /usr/ports/java/netbeans/Makefile   Thu Apr 22 11:15:17 2004
+++ Makefile    Wed May 26 10:00:01 2004
@@ -15,7 +15,8 @@
  COMMENT=       A full-featured integrated environment for Java

  USE_BZIP2=     yes
-USE_JAVA=      1.3+
+USE_JAVA=      yes
+JAVA_VERSION=  1.4+
  NO_BUILD=      yes
  RESTRICTED=    "Restrictive license"

-----------------------------------------------------------------

-- 
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece

From owner-freebsd-java@FreeBSD.ORG  Fri May 28 09:36:00 2004
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
Delivered-To: freebsd-java@hub.freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 45FC916A4CE; Fri, 28 May 2004 09:36:00 -0700 (PDT)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 24DA243D4C; Fri, 28 May 2004 09:36:00 -0700 (PDT)
	(envelope-from glewis@FreeBSD.org)
Received: from freefall.freebsd.org (glewis@localhost [127.0.0.1])
	i4SGZ1B1084589;	Fri, 28 May 2004 09:35:01 -0700 (PDT)
	(envelope-from glewis@freefall.freebsd.org)
Received: (from glewis@localhost)
	by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4SGZ132084585;
	Fri, 28 May 2004 09:35:01 -0700 (PDT)
	(envelope-from glewis)
Date: Fri, 28 May 2004 09:35:01 -0700 (PDT)
From: Greg Lewis <glewis@FreeBSD.org>
Message-Id: <200405281635.i4SGZ132084585@freefall.freebsd.org>
To: glewis@FreeBSD.org, freebsd-java@FreeBSD.org, glewis@FreeBSD.org
Subject: Re: java/66349: [PATCH] net/javadc: fix build on bento [requires
	bsd.java.mk patch]
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 28 May 2004 16:36:00 -0000

Synopsis: [PATCH] net/javadc: fix build on bento [requires bsd.java.mk patch]

Responsible-Changed-From-To: freebsd-java->glewis
Responsible-Changed-By: glewis
Responsible-Changed-When: Fri May 28 09:34:46 PDT 2004
Responsible-Changed-Why: 
I'll take this.

http://www.freebsd.org/cgi/query-pr.cgi?pr=66349

From owner-freebsd-java@FreeBSD.ORG  Fri May 28 12:26:52 2004
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
Delivered-To: freebsd-java@hub.freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 57B5716A4CF; Fri, 28 May 2004 12:26:52 -0700 (PDT)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 5005843D49; Fri, 28 May 2004 12:26:52 -0700 (PDT)
	(envelope-from linimon@FreeBSD.org)
Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1])
	i4SJQopp004571;	Fri, 28 May 2004 12:26:50 -0700 (PDT)
	(envelope-from linimon@freefall.freebsd.org)
Received: (from linimon@localhost)
	by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4SJQoaf004567;
	Fri, 28 May 2004 12:26:50 -0700 (PDT)
	(envelope-from linimon)
Date: Fri, 28 May 2004 12:26:50 -0700 (PDT)
From: Mark Linimon <linimon@FreeBSD.org>
Message-Id: <200405281926.i4SJQoaf004567@freefall.freebsd.org>
To: linimon@FreeBSD.org, freebsd-java@FreeBSD.org,
	portmgr@FreeBSD.org
Subject: Re: ports/66342: [PATCH] fix ECHO_MSG breakage in java ports
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 28 May 2004 19:26:52 -0000

Synopsis: [PATCH] fix ECHO_MSG breakage in java ports

Responsible-Changed-From-To: freebsd-java->portmgr
Responsible-Changed-By: linimon
Responsible-Changed-When: Fri May 28 12:21:12 PDT 2004
Responsible-Changed-Why: 
Actually, this problem is generic to any port that wants to set
a multiline IGNORE message -- and these are almost all ports
that need to be fetched manually.  So this is really something
that needs to be fixed in bsd.port.mk.

The patch below attempts to be the dullest solution to the
problem, but I do not know if/how it will affect FreshPorts.
I have included the output from java/jmf if this patch is used.

Kris has indicated that he wants to rethink the IGNORE/NO_PACKAGE
strategy, so he is the obvious one to look at either this
short-term hack or a "real" solution.

Index: bsd.port.mk
===================================================================
RCS file: /home/FreeBSD/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.488
diff -u -r1.488 bsd.port.mk
--- bsd.port.mk	19 Apr 2004 23:39:52 -0000	1.488
+++ bsd.port.mk	28 May 2004 19:16:26 -0000
@@ -2577,7 +2595,7 @@
 .if defined(IGNORE_SILENT)
 IGNORECMD=	${DO_NADA}
 .else
-IGNORECMD=	${ECHO_MSG} "===>  ${PKGNAME} ${IGNORE}."
+IGNORECMD=	${PRINTF} "===>  ${PKGNAME} ${IGNORE}."
 .endif
 
 .for target in check-sanity fetch checksum extract patch configure all build install reinstall package

-------

the result:

$ make install
===>  jmf-2.1.1e :
 Because of licensing restrictions, you must fetch the source distribution
 manually.  Please access:
 http://java.sun.com/products/java-media/jmf/2.1.1/download.html
 with a web browser and follow the "Download JMF 2.1.1e" link
 Select download format: cross-platform format
 Please place this file in /home/pcvs/ports/distfiles.
.$

not optimal, but not dreadful.

http://www.freebsd.org/cgi/query-pr.cgi?pr=66342

From owner-freebsd-java@FreeBSD.ORG  Sat May 29 05:47:49 2004
Return-Path: <owner-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 4A15716A4CE
	for <freebsd-java@freebsd.org>; Sat, 29 May 2004 05:47:49 -0700 (PDT)
Received: from web.althosting.net (web.althosting.net [195.140.143.78])
	by mx1.FreeBSD.org (Postfix) with SMTP id 67F7E43D3F
	for <freebsd-java@freebsd.org>; Sat, 29 May 2004 05:47:48 -0700 (PDT)
	(envelope-from master@tyranz.com)
Received: (qmail 29557 invoked by uid 2023); 29 May 2004 12:48:03 -0000
Received: from master@tyranz.com by web.althosting.net by uid 82 with
	qmail-scanner-1.22 
	(clamscan: 0.70. spamassassin: 2.63.  Clear:RC:1(81.249.20.11):. 
	Processed in 0.723901 secs); 29 May 2004 12:48:03 -0000
Received: from aputeaux-111-1-5-11.w81-249.abo.wanadoo.fr (HELO sebxp)
	(81.249.20.11)
	by sarah.reverse.com with SMTP; 29 May 2004 12:48:03 -0000
Message-ID: <007801c4457b$4b27ccd0$0403a8c0@sebxp>
From: "master" <master@tyranz.com>
To: <freebsd-java@freebsd.org>
Date: Sat, 29 May 2004 14:48:51 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Subject: jdk14 build errors
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 29 May 2004 12:47:49 -0000

i have the same error but i have done the kldload and the mount, what else
can i do?
regards



>I found the problem, and it's easily reproducible.

>When there is no JDK installed (bsd or oterwise) on the system that
>does not have linux compatibility installed, it errors out.

>The jdk14 installation downloads all the linux compatibility stuff,
>etc, and once that is done, the user has to kldload, and mount
>linprocfs, and that's the problem. When the jdk14 installation finishes
>the linux compatibility, the message about kldload and mount just
>scrolls by, going directly for the installation of j2sdk. How the linux
>JDK manages to run (or whether it does) i'm not sure, but it results in
>the error mentioned in the previous email.

>If full JDK installation is ran again, it will stop at the kldload and
>mount linprocfs bit, if they are not mounted.

>regards,
>mayo


>On Apr 9, 2004, at 16:37, Mayo Jordanov wrote:

> Hello,
>
> below is a build error from jdk14 port on 5.2-current with fresh ports
> (from yesterday). I've successfully built this port about a week ago
> (It was after March 20th) on this very box, so it seems this does not
> happen every time.
>
> I have 2 other compiles going on right now, so i'll wait after they
> are done and will try again (to see if it may be affected by the load)
>
> the box is
> FreeBSD einstein.local.nfy. 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu
> Apr  8 18:36
> :46 PDT 2004     root@:/usr/obj/usr/src/sys/einstein  i386
>
> the world sources are from 20030312 (i've had issues with some later
> dates, so i stuck to the stuff i knew that worked) and the build error
> i get is below. Looking at the path, the sources seem to be generated,
> and the two files that it errors out on have the message "Java
> HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location" as their first line (before "package java.util;") and
> uncommented.
>
> As it was reported in similar instances before
> (http://lists.freebsd.org/mailman/htdig/freebsd-java/2004-March/
> 001972.html and
> http://lists.freebsd.org/mailman/htdig/freebsd-java/2004-March/
> 001916.html)
>
> regards,
> mayo
>
> <snip>
> ../../../src/share/classes/sun/misc/AtomicLong.java
> ../../../src/share/classes/sun/misc/AtomicLongCSImpl.java
> ../../../src/share/classes/sun/misc/AtomicLongLockImpl.java ; \
> fi
> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location
> /usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/java/util/
> CurrencyData.
> java:1: 'class' or 'interface' expected
> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location
> ^
> /usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/java/util/
> CurrencyData.
> java:1: unclosed character literal
> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location
>                                        ^
> 2 errors
> gmake[4]: *** [.compile.classlist] Error 1
> gmake[4]: Leaving directory
> `/usr/ports/java/jdk14/work/j2se/make/java/java'
> gmake[3]: *** [optimized] Error 2
> gmake[3]: Leaving directory
> `/usr/ports/java/jdk14/work/j2se/make/java/java'
> gmake[2]: *** [all] Error 1
> gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java'
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make'
> gmake: *** [j2se-build] Error 2
> *** Error code 2
>
> Stop in /usr/ports/java/jdk14.
> </snip>

From owner-freebsd-java@FreeBSD.ORG  Sat May 29 17:16:04 2004
Return-Path: <owner-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 9035D16A4CE
	for <java@freebsd.org>; Sat, 29 May 2004 17:16:04 -0700 (PDT)
Received: from segue.merit.edu (segue.merit.edu [198.108.1.41])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 580E643D2D
	for <java@freebsd.org>; Sat, 29 May 2004 17:16:04 -0700 (PDT)
	(envelope-from web@merit.edu)
Received: from web1.merit.edu (web1.merit.edu [198.108.62.192])
	by segue.merit.edu (Postfix) with ESMTP
	id 3EB6459A28; Sat, 29 May 2004 20:16:02 -0400 (EDT)
Received: (from web@localhost)
	by web1.merit.edu (8.9.3/8.9.1) id UAA09364;
	Sat, 29 May 2004 20:15:41 -0400 (EDT)
Date: Sat, 29 May 2004 20:15:41 -0400
From: William Bulley <web@umich.edu>
To: Robert Huff <roberthuff@rcn.com>
Message-ID: <20040529201541.A9267@web1.merit.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0.1us
cc: java@freebsd.org
Subject: Re: very quick java/jdk14complie = problem?
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 30 May 2004 00:16:04 -0000


According to Robert Huff:
> 
> huff@>javavm -version
> #
> # HotSpot Virtual Machine Error, Internal Error
> # Please report this error at
> # http://java.sun.com/cgi-bin/bugreport.cgi
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
> #
> # Error ID: 4F533F4C494E55583F491418160E435050030B
> #
> 
> Heap at VM Abort:
> Heap

I have been fighting the EXACT SAME PROBLEM on both FreeBSD 5.2.1-RELEASE
and (most recently) on FreeBSD 4.10-RELEASE.  Here is what I found and what
did (finally) work for me:

First, you have to have the 'linux_base="YES"' flag in your /etc/rc.conf file.
I have seen that here before.  Next, you have to see "linux.ko" and "linprocfs.ko"
in the output of your kldstat(8) command.  Next, you have to build linux_sun_jdk14
from /usr/ports/java.  Next, you have to mount(8) /usr/compat/linux/proc like the
message from the linux_sun_jdk14 port tells you.  I had all of this and I suspect
you have as well.  This failed for me on both versions!

I noticed an error in my console window each time I tried to execute the above
"java -version" command:

   command java pid 2557 tried to use non-present sched_getscheduler

After a Google search, I learned this (it is somewhat dated, but useful):

> Newsgroups: comp.unix.bsd.freebsd.misc
> Subject: Re: Problem with kernel configuration
> Reply-To: espress0@hotmail.com
> 
> In article <37acc621.114807@news-server>, David Lineberger wrote:
> >
> >I just installed the xmms-0.9.1 audio package off the ftp.freebsd.org
> >ftp site and whenever I play an mp3 file i get this error sent to hte
> >root window:
> >
> >/kernel: cmd xmms pid 1537 tried to use non-present sched_getscheduler
>
> I had the same problem when I started using XMMS.  Just add the POSIX options
> to your kernel and it should work fine.  Here are the lines that you need, check
> LINT for details:
> 
> options "P1003_1B"
> options "_KPOSIX_PRIORITY_SCHEDULING"
> options "_KPOSIX_VERSION=199309L"

After I reconfigured and recompiled my 4.10-RELEASE kernel I was successful:

> freebsd% /usr/local/linux-sun-jdk1.4.2/bin/java -version
> java version "1.4.2_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

I fully expect that this kernel mod will give me success on FreeBSD 5.2.1-RELEASE
as well.  Good luck!  I hope this helps.  :-)

Regards,

web...

--
William Bulley                     Email: web@umich.edu

From owner-freebsd-java@FreeBSD.ORG  Sat May 29 20:07:21 2004
Return-Path: <owner-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 B3A3416A4CE
	for <java@FreeBSD.org>; Sat, 29 May 2004 20:07:21 -0700 (PDT)
Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A6AE243D45
	for <java@FreeBSD.org>; Sat, 29 May 2004 20:07:21 -0700 (PDT)
	(envelope-from kris@obsecurity.org)
Received: from obsecurity.dyndns.org
	(4c99f9a49bfdf079cc46e2e52651c6f1@adsl-67-115-73-128.dsl.lsan03.pacbell.net
	[67.115.73.128])
	by mta7.pltn13.pbi.net (8.12.10/8.12.10) with ESMTP id i4U37K1Z007748
	for <java@FreeBSD.org>; Sat, 29 May 2004 20:07:21 -0700 (PDT)
Received: by obsecurity.dyndns.org (Postfix, from userid 1000)
	id D042A520B5; Sat, 29 May 2004 20:07:19 -0700 (PDT)
Date: Sat, 29 May 2004 20:07:19 -0700
From: Kris Kennaway <kris@obsecurity.org>
To: Kris Kennaway <kris@obsecurity.org>
Message-ID: <20040530030719.GA12519@xor.obsecurity.org>
References: <20040530023718.GA9307@xor.obsecurity.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN"
Content-Disposition: inline
In-Reply-To: <20040530023718.GA9307@xor.obsecurity.org>
User-Agent: Mutt/1.4.2.1i
cc: java@FreeBSD.org
Subject: Re: INDEX broken on alpha
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 30 May 2004 03:07:21 -0000


--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sat, May 29, 2004 at 07:37:18PM -0700, Kris Kennaway wrote:
> ports-alpha%cd java/jai
> ports-alpha%make ARCH=alpha describe
> load: 9.26  cmd: sh 15752 [runnable] 0.00u 0.00s 0% 1004k
> load: 9.26  cmd: sh 15893 [*Giant] 0.00u 0.00s 0% 676k
> load: 9.26  cmd: sh 15934 [runnable] 0.00u 0.00s 0% 312k
> "Makefile", line 38: Malformed conditional (${JAVA_OS} == "FreeBSD")
> "Makefile", line 38: Need an operator
> "Makefile", line 41: if-less endif
> "Makefile", line 41: Need an operator
> make: fatal errors encountered -- cannot continue

Oops, it looks like this might have been an old ports tree.

Kris

--J/dobhs11T7y2rNN
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAuU/nWry0BWjoQKURAj2JAKDjRYrGD99afLknm+3LOWGmvMhk0ACguhJC
zuV6NhWKTce6QDndOp9yWus=
=Y/uX
-----END PGP SIGNATURE-----

--J/dobhs11T7y2rNN--

From owner-freebsd-java@FreeBSD.ORG  Sat May 29 20:13:11 2004
Return-Path: <owner-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 42A8C16A4CE
	for <java@FreeBSD.org>; Sat, 29 May 2004 20:13:11 -0700 (PDT)
Received: from mtaw6.prodigy.net (mtaw6.prodigy.net [64.164.98.56])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3623943D2D
	for <java@FreeBSD.org>; Sat, 29 May 2004 20:13:11 -0700 (PDT)
	(envelope-from kris@obsecurity.org)
Received: from obsecurity.dyndns.org
	(2c7704a04d982d73087ed21b0bb68504@adsl-67-115-73-128.dsl.lsan03.pacbell.net
	[67.115.73.128])
	by mtaw6.prodigy.net (8.12.10/8.12.10) with ESMTP id i4U2Zu9G020438
	for <java@FreeBSD.org>; Sat, 29 May 2004 19:35:56 -0700 (PDT)
Received: by obsecurity.dyndns.org (Postfix, from userid 1000)
	id 26E4651955; Sat, 29 May 2004 19:37:19 -0700 (PDT)
Date: Sat, 29 May 2004 19:37:19 -0700
From: Kris Kennaway <kris@obsecurity.org>
To: java@FreeBSD.org
Message-ID: <20040530023718.GA9307@xor.obsecurity.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s"
Content-Disposition: inline
User-Agent: Mutt/1.4.2.1i
Subject: INDEX broken on alpha
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 30 May 2004 03:13:11 -0000


--SLDf9lqlvOQaIe6s
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

ports-alpha%cd java/jai
ports-alpha%make ARCH=alpha describe
load: 9.26  cmd: sh 15752 [runnable] 0.00u 0.00s 0% 1004k
load: 9.26  cmd: sh 15893 [*Giant] 0.00u 0.00s 0% 676k
load: 9.26  cmd: sh 15934 [runnable] 0.00u 0.00s 0% 312k
"Makefile", line 38: Malformed conditional (${JAVA_OS} == "FreeBSD")
"Makefile", line 38: Need an operator
"Makefile", line 41: if-less endif
"Makefile", line 41: Need an operator
make: fatal errors encountered -- cannot continue

Kris

--SLDf9lqlvOQaIe6s
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAuUjeWry0BWjoQKURAr5lAKD44Qz2y83kC+8uiIL4YOJ35ALAAgCgtUJO
8w1QZmgbKNCLy8URjP2D36E=
=7ngO
-----END PGP SIGNATURE-----

--SLDf9lqlvOQaIe6s--