From owner-freebsd-java@FreeBSD.ORG Sun Aug 7 17:49:55 2005 Return-Path: X-Original-To: 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 AB51A16A41F; Sun, 7 Aug 2005 17:49:55 +0000 (GMT) (envelope-from conrads@cox.net) Received: from eastrmmtao01.cox.net (eastrmmtao01.cox.net [68.230.240.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCA9843D45; Sun, 7 Aug 2005 17:49:54 +0000 (GMT) (envelope-from conrads@cox.net) Received: from serene.no-ip.org ([68.11.27.151]) by eastrmmtao01.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050807174953.GEFO12912.eastrmmtao01.cox.net@serene.no-ip.org>; Sun, 7 Aug 2005 13:49:53 -0400 Received: from serene.no-ip.org (localhost [127.0.0.1]) by serene.no-ip.org (8.13.3/8.13.3) with ESMTP id j77Hno3L030556; Sun, 7 Aug 2005 12:49:51 -0500 (CDT) (envelope-from conrads@serene.no-ip.org) Received: (from conrads@localhost) by serene.no-ip.org (8.13.3/8.13.3/Submit) id j77HnjnK030555; Sun, 7 Aug 2005 12:49:45 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5-DEVEL on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200508060505.j7655frX045444@blue.virtual-estates.net> Date: Sun, 07 Aug 2005 12:49:45 -0500 (CDT) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: "Conrad J. Sabatier" To: "Mikhail T." Cc: gnome@freebsd.org, java@freebsd.org, glewis@freebsd.org, phantom@freebsd.org Subject: Re: should not jint be as wide as void* ? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: conrads@cox.net List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2005 17:49:55 -0000 On 06-Aug-2005 Mikhail T. wrote: > Hello! > > Looking deep into Mozilla's LiveConnect sources (under > mozilla/sun-java/stubs/include/) I gather, jint really > wants to be intptr_t -- not a mere int as, for example, > jdk1.5.0/include/freebsd/jni_md.h makes it out to be. > > Can anyone comment? Thanks! > > -mi > > P.S. Obviously, I'm trying to make things work perfectly > on amd64 :-) I think you're right about this. I've run into problems due to exactly this while trying to build a native amd64 big integer library for freenet (in Contrib/NativeBigInteger from freenet's CVS repo). The build succeeds, but crashes at runtime at exactly the point where the compiler warns about an incompatible pointer type. -- Conrad J. Sabatier -- "In Unix veritas"