From owner-freebsd-java@FreeBSD.ORG Sun Aug 8 22:40:29 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 744A4106567B; Sun, 8 Aug 2010 22:40:29 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from fep24.mx.upcmail.net (fep24.mx.upcmail.net [62.179.121.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9BD878FC1A; Sun, 8 Aug 2010 22:40:28 +0000 (UTC) Received: from edge05.upcmail.net ([192.168.13.212]) by viefep19-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20100808222222.OUPV17503.viefep19-int.chello.at@edge05.upcmail.net>; Mon, 9 Aug 2010 00:22:22 +0200 Received: from mole.fafoe.narf.at ([213.47.85.26]) by edge05.upcmail.net with edge id ryNM1e00l0a5KZh05yNNzs; Mon, 09 Aug 2010 00:22:22 +0200 X-SourceIP: 213.47.85.26 Received: by mole.fafoe.narf.at (Postfix, from userid 1001) id 19C466D421; Mon, 9 Aug 2010 00:22:21 +0200 (CEST) Date: Mon, 9 Aug 2010 00:22:20 +0200 From: Stefan Farfeleder To: freebsd-java@freebsd.org Message-ID: <20100808222219.GC1752@mole.fafoe.narf.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Cloudmark-Analysis: v=1.1 cv=K3uBg944YaUT+Qsu6bWO0a0V3uPy4DQNslbdoMCD4tw= c=1 sm=0 a=9Z9K6LIyLhZV5vD2VDgA:9 a=ZIFGU1Q8XHmElIIQpnhaLMM9wRQA:4 a=CjuIK1q_8ugA:10 a=xmtIUmxXx6axFBVvKdgA:9 a=TdLGVKJMNeUUqrychAmsZZxmR6IA:4 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: glewis@freebsd.org Subject: Eclipse libxul patch X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2010 22:40:29 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I rebuilt Eclipse today and it failed to start with the error: "java.lang.UnsatisfiedLinkError: no swt-gtk-3557 or swt-gtk in swt.library.path, java.library.path or the jar file" Then I noticed that there was this error during the Eclipse build: [exec] c++ -o xpcomxul.o -O -DSWT_VERSION=3557 -DMOZILLA_STRICT_API=1 -fno-rtti -fno-exceptions -Wall -Wno-non-virtual-dtor -fPIC -I. -I/usr/local/jdk1.6.0/include -I/usr/local/jdk1.6.0/include/freebsd -DNO__1NS_1InitXPCOM2 -c xpcom.cpp [exec] In file included from xpcom_structs.h:12, [exec] from xpcom.cpp:13: [exec] xpcom.h:18:21: error: nsXPCOM.h: No such file or directory [...] For some reason the build continued despite the error and apparently caused the run-time failure. The error seems to lie in freebsd-support.patch where the package name libxul-unstable is used instead of libxul, causing the include paths to be missing. The attached patch results in a working Eclipse for me. Cheers, Stefan --OXfL5xGRrasGEqWY-- From owner-freebsd-java@FreeBSD.ORG Mon Aug 9 11:06:59 2010 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2E1C1065678 for ; Mon, 9 Aug 2010 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 048178FC0A for ; Mon, 9 Aug 2010 11:06:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o79B6wrx049053 for ; Mon, 9 Aug 2010 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o79B6wMa049051 for freebsd-java@FreeBSD.org; Mon, 9 Aug 2010 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Aug 2010 11:06:58 GMT Message-Id: <201008091106.o79B6wMa049051@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2010 11:06:59 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o java/147512 java Crash of RXTX-2.1-7 on AMD64 system f ports/142704 java [PATCH] java/jai-imageio: use $SUB_FILES to dynamicall o java/141919 java Serious remote vulnerability in the JRE o java/138729 java java/jdk16: setting 'export AWT_TOOLKIT=MToolkit' caus o java/138728 java java/jdk16: SIGSEGV in java runtime o java/128948 java java/jdk16 built from source can't bind a socket, but o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/121420 java java/jdk16: Java applet fails to find class under fire o ports/121416 java java/jdk15 can't build if BIN environment variable is o ports/120372 java java/linux-sun-jdk16: linux-sun-jre1.6.0 plugin doesn' o java/120146 java java/jdk15: netbeans 6.0 causes java core dump on amd6 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o java/118956 java eclipse and netbeans break on diablo-jdk15 o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/114644 java tomcat goes out of PermSpace, jvm crashes o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/113467 java Multiple "missing return value" errors building JDK on f java/112595 java Java appletviewer frequently hangs (kse_release loop) o java/110912 java Java krb5 client leaks UDP connections f java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/97461 java Diablo JDK does not report Update level in a format su o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in 30 problems total. From owner-freebsd-java@FreeBSD.ORG Wed Aug 11 09:00:22 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17FD91065675 for ; Wed, 11 Aug 2010 09:00:22 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 07A2E8FC0A; Wed, 11 Aug 2010 09:00:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7B90KDr021912; Wed, 11 Aug 2010 09:00:21 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4C62D724.9070901@freebsd.org> Date: Wed, 11 Aug 2010 17:00:20 +0000 From: David Xu User-Agent: Thunderbird 2.0.0.24 (X11/20100630) MIME-Version: 1.0 To: Greg Lewis References: <4C568F93.1070608@freebsd.org> <20100803064729.GA3964@misty.eyesbeyond.com> In-Reply-To: <20100803064729.GA3964@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: java nio channel selectors can use kqueue/kevent X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 09:00:22 -0000 Greg Lewis wrote: > G'day David, > > On Mon, Aug 02, 2010 at 05:27:47PM +0800, David Xu wrote: >> I was suprised the java uses poll() on freebsd for its nio, while >> others are using devpoll() or epoll(). I have spent one week to >> work out a patch, and let it work with kqueue. I have tried to make >> it better, but because the java nio selector are poll() centric >> so something in the patch is not very perfect. > > Thanks so much for doing this! I'll try and get it into the jdk16 port > as soon as possible. Are you willing for this change to also go into the > OpenJDK ports? Or, more particularly, are you willing to contribute it > to the main OpenJDK repo? Unfortunately that will require some paper > work. > I have updated patch for jdk16, some bugs have been fixed. http://people.freebsd.org/~davidxu/java/jdk16_nio_kqueue3.patch I don't know what is paper work, but anyway, this is first patch for openjdk7. ;-) http://people.freebsd.org/~davidxu/java/openjdk7_nio_kqueue.patch Regards, David Xu From owner-freebsd-java@FreeBSD.ORG Wed Aug 11 16:16:34 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16E411065676 for ; Wed, 11 Aug 2010 16:16:34 +0000 (UTC) (envelope-from mike.jakubik@intertainservices.com) Received: from mail.intertainservices.com (mail.intertainservices.com [38.99.187.35]) by mx1.freebsd.org (Postfix) with ESMTP id DC23F8FC14 for ; Wed, 11 Aug 2010 16:16:33 +0000 (UTC) Received: from [172.16.10.199] (unknown [172.16.10.199]) by mail.intertainservices.com (Postfix) with ESMTPA id B875C56DB6 for ; Wed, 11 Aug 2010 12:00:33 -0400 (EDT) Message-ID: <4C62C91D.6010200@intertainservices.com> Date: Wed, 11 Aug 2010 12:00:29 -0400 From: Mike Jakubik User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <4C568F93.1070608@freebsd.org> <20100803064729.GA3964@misty.eyesbeyond.com> <4C62D724.9070901@freebsd.org> In-Reply-To: <4C62D724.9070901@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-intertainservices-MailScanner-Information: Please contact the ISP for more information X-intertainservices-MailScanner-ID: B875C56DB6.AEB41 X-intertainservices-MailScanner: Found to be clean X-intertainservices-MailScanner-From: mike.jakubik@intertainservices.com X-Spam-Status: No Subject: Re: java nio channel selectors can use kqueue/kevent X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 16:16:34 -0000 On 8/11/2010 1:00 PM, David Xu wrote: > > I have updated patch for jdk16, some bugs have been fixed. > http://people.freebsd.org/~davidxu/java/jdk16_nio_kqueue3.patch > > I don't know what is paper work, but anyway, this is first patch > for openjdk7. ;-) > http://people.freebsd.org/~davidxu/java/openjdk7_nio_kqueue.patch > > Regards, > David Xu > Thank you for your work David. Do you think there is any chance you would have time to make a patch for OpenJDK 6? I believe most people are using this version right now. Thanks.