From owner-freebsd-java@FreeBSD.ORG Mon Sep 23 11:06:47 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D051CC01 for ; Mon, 23 Sep 2013 11:06:47 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A54C1213B for ; Mon, 23 Sep 2013 11:06:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8NB6lnL069505 for ; Mon, 23 Sep 2013 11:06:47 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8NB6lBY069503 for freebsd-java@FreeBSD.org; Mon, 23 Sep 2013 11:06:47 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Sep 2013 11:06:47 GMT Message-Id: <201309231106.r8NB6lBY069503@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 Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 11:06:47 -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 ports/181136 java java/icedtea-web not build o ports/180643 java java/openjdk6 build fails on amd64 -current o ports/178856 java java/openjdk6, java/openjdk7: Java fails to print when o ports/178816 java java/netbeans does not build, compile error at java/op o ports/178728 java [UPDATE] devel/apache-ant to v1.9.0 o ports/178647 java java/openjdk6 does not build (without extra hack) o ports/178199 java java/openjdk6 regression amd64/clang o ports/177802 java Could not update openfire because of problem in java/o o ports/175300 java java/jamvm fails to compile on ARM6 (raspberry-pi) o ports/174826 java java/openjdk6: gmake[5]: *** [/usr/ports/java/openjdk6 o ports/174825 java java/openjdk6: fails to build on i386 (64-bit mode not o ports/173603 java java/icedtea-web starts javaws incorrectly o ports/173592 java java/openjdk6 fails on FreeBSD_9_1_RC2 o ports/173210 java java/openjdk6 - use better src placement o java/172962 java Sig11 while compiling OpenJDK6-b26 using clang o ports/171014 java [patch] Correct java/openjdk6 Dependency Declaration o ports/167903 java [PATCH] java/openjdk6: Fix build failure in 8.3 jail r o ports/164941 java [UPDATE] [NEW PORTS] java/classpath-initial, including o ports/162991 java java/openjdk6 fails to build o java/162522 java OpenJDK 6 is not setting close on exec o java/160553 java Jaikoz java based audio tagger core dumps o ports/159787 java java/openjdk6 nio muti-thread bug o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c f java/147512 java Crash of RXTX-2.1-7 on AMD64 system o java/140002 java java/openjdk6: jconsole dumps tomcat when contacting j 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 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 ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to 31 problems total. From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 06:28:35 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D9268B30 for ; Wed, 25 Sep 2013 06:28:35 +0000 (UTC) (envelope-from bsd-src@helfman.org) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B134D2A74 for ; Wed, 25 Sep 2013 06:28:35 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id r10so5652821pdi.14 for ; Tue, 24 Sep 2013 23:28:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Y0gEVi8z2Kk/X/jQ7uA4VdQx1lLpegxOUcvzmY9DUzs=; b=QG0SZNw+4pGNNL/XVJYpI/SeJfKBqL3JPZpR9vsXRSCEv8EDilzdVemTtijiW82yg2 ZBcI6egLu01hcuz5F2/IwD7doZEls2hfdVOlRZ1slSdr/QCGVWvfiWkaVaSmh9gVbTJA +fG2vqFppxFp23BGQys1gWexiYHUjYy/TUmWm34SvzvE9yxES0ZEA0j+EblnMkyevfAK 5XLntvwCU0IJ43EmUHHkwQrqq9XSBkxlsG8sqSHq3L9dYSw75MGu30IcNVWVu/BvNauh mDyx6/O80uqGme5E7i2bWoFcKYomoMYeVC2LY5Bignr5ccH99G8Jt2v4AgV0pgOcGjea Oqog== X-Gm-Message-State: ALoCoQkitxkV4l43LZ/OXBXsX8XMFp151X4mUwh27HvNqPNpdcxoUU298BGhppsNIgbggXnLhB9V MIME-Version: 1.0 X-Received: by 10.68.190.229 with SMTP id gt5mr3081029pbc.177.1380090509205; Tue, 24 Sep 2013 23:28:29 -0700 (PDT) Sender: bsd-src@helfman.org Received: by 10.70.100.165 with HTTP; Tue, 24 Sep 2013 23:28:29 -0700 (PDT) In-Reply-To: <52427DA7.8070804@netfence.it> References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> Date: Tue, 24 Sep 2013 23:28:29 -0700 X-Google-Sender-Auth: O7hIdpHAQQfqHHJsdhPMQ4gSU-8 Message-ID: Subject: Re: Multiple Java versions From: Jason Helfman To: Andrea Venturoli Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: java@freebsd.org, FreeBSD Ports List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 06:28:36 -0000 On Tue, Sep 24, 2013 at 11:07 PM, Andrea Venturoli wrote: > On 09/24/13 21:38, Jonathan Chen wrote: > >> On 24 September 2013 22:36, Andrea Venturoli wrote: >> [...] >> >>> Now, according to JAVAVMS(5), "By default, javavm will select the most >>> ``native'' and up to date version". >>> >>> However: >>> >>> % java -version >>>> openjdk version "1.6.0_32" >>>> OpenJDK Runtime Environment (build 1.6.0_32-b27) >>>> OpenJDK Server VM (build 20.0-b12, mixed mode) >>>> >>> >>> >>> Any way to fix this? >>> >>> AFAICT I didn't set any relevant environment variable, anything in >>> /etc/make.conf or in javavms' own config files. >>> >> >> JAVA_HOME is what you need: >> >> jonathan:~,7:36am> unsetenv JAVA_HOME >> jonathan:~,7:36am> java -version >> openjdk version "1.6.0_32" >> OpenJDK Runtime Environment (build 1.6.0_32-b27) >> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) >> jonathan:~,7:36am> setenv JAVA_HOME /usr/local/openjdk7 >> jonathan:~,7:36am> java -version >> openjdk version "1.7.0_25" >> OpenJDK Runtime Environment (build 1.7.0_25-b15) >> OpenJDK 64-Bit Server VM (build 23.21-b01, mixed mode) >> >> > Ok, fine for me. > > I'd just point out: isn't it in contrast to what the man page says (i.e. > "By default, javavm will select the most ``native'' and up to date > version")? > > Should the docs be corrected then? > > bye & Thanks > av. The docs may need clarification, however you may want to look into using: java/javavmwrapper cc: java -jgh -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh | The Power to Serve From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 06:38:22 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D6146E28; Wed, 25 Sep 2013 06:38:22 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp.eutelia.it (mp1-smtp-6.eutelia.it [62.94.10.166]) by mx1.freebsd.org (Postfix) with ESMTP id 8A38D2B17; Wed, 25 Sep 2013 06:38:22 +0000 (UTC) Received: from ns2.biolchim.it (ip-188-188.sn2.eutelia.it [83.211.188.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eutelia.it (Eutelia) with ESMTP id 20A856731D3; Wed, 25 Sep 2013 08:38:14 +0200 (CEST) Received: from soth.ventu (adsl-ull-109-216.41-151.net24.it [151.41.216.109]) (authenticated bits=0) by ns2.biolchim.it (8.14.7/8.14.7) with ESMTP id r8P6c95t015761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 25 Sep 2013 08:38:10 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: ns2.biolchim.it: Host adsl-ull-109-216.41-151.net24.it [151.41.216.109] claimed to be soth.ventu Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.7/8.14.5) with ESMTP id r8P6c3bV021011; Wed, 25 Sep 2013 08:38:03 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <524284CB.4050606@netfence.it> Date: Wed, 25 Sep 2013 08:38:03 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Jason Helfman Subject: Re: Multiple Java versions References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (ns2.biolchim.it [192.168.2.203]); Wed, 25 Sep 2013 08:38:10 +0200 (CEST) X-Scanned-By: MIMEDefang 2.74 Cc: java@freebsd.org, FreeBSD Ports List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 06:38:22 -0000 On 09/25/13 08:28, Jason Helfman wrote: > java/javavmwrapper > > cc: java Sorry for being so dumb, but I don't understand this... I though I was using javavmwrapper... what do you mean? bye & Thanks av. From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 07:30:55 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7885BC64 for ; Wed, 25 Sep 2013 07:30:55 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (adsltrust.ath.forthnet.gr [194.219.204.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E30C52DDD for ; Wed, 25 Sep 2013 07:30:53 +0000 (UTC) Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.14.5/8.14.5) with ESMTP id r8P7NGOD018686 for ; Wed, 25 Sep 2013 10:23:16 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Message-ID: <52428F64.7070408@matrix.gatewaynet.com> Date: Wed, 25 Sep 2013 10:23:16 +0300 From: Achilleas Mantzios User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130601 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Re: Multiple Java versions References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> <524284CB.4050606@netfence.it> In-Reply-To: <524284CB.4050606@netfence.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 07:30:55 -0000 On 25/09/2013 09:38, Andrea Venturoli wrote: > On 09/25/13 08:28, Jason Helfman wrote: > >> java/javavmwrapper >> >> cc: java > > Sorry for being so dumb, but I don't understand this... > I though I was using javavmwrapper... what do you mean? > You can verify this by doing a % which java if this turns out : /usr/local/bin/java then ls -l /usr/local/bin/java lrwxr-xr-x 1 root wheel 21 14 Ιον 10:54 /usr/local/bin/java -> /usr/local/bin/javavm pkg which /usr/local/bin/javavm /usr/local/bin/javavm was installed by package javavmwrapper-2.4_3 then you are sure you are using javavmwrapper But, despite this, still the code governing what will be run in the default case is still : /usr/ports/Mk/bsd.java.mk In my system : 9.1-RELEASE-p3, and despite not setting JAVA_HOME, and having cat /usr/local/etc/javavms /usr/local/openjdk7/bin/java # OpenJDK7 /usr/local/openjdk6/bin/java # OpenJDK6 *still* the java version of choice is openjdk6 i don't know how much the /usr/local/etc/javavms is consulted. > bye & Thanks > av. > > _______________________________________________ > 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" -- Achilleas Mantzios From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 07:36:29 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 589E7D26 for ; Wed, 25 Sep 2013 07:36:29 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp.eutelia.it (mp1-smtp-6.eutelia.it [62.94.10.166]) by mx1.freebsd.org (Postfix) with ESMTP id D4CED2E36 for ; Wed, 25 Sep 2013 07:36:28 +0000 (UTC) Received: from ns2.biolchim.it (ip-188-188.sn2.eutelia.it [83.211.188.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eutelia.it (Eutelia) with ESMTP id 11E736732AF for ; Wed, 25 Sep 2013 09:36:26 +0200 (CEST) Received: from soth.ventu (adsl-ull-109-216.41-151.net24.it [151.41.216.109]) (authenticated bits=0) by ns2.biolchim.it (8.14.7/8.14.7) with ESMTP id r8P7aMnd019250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 25 Sep 2013 09:36:24 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: ns2.biolchim.it: Host adsl-ull-109-216.41-151.net24.it [151.41.216.109] claimed to be soth.ventu Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.7/8.14.5) with ESMTP id r8P7aGBY039566 for ; Wed, 25 Sep 2013 09:36:17 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <52429270.8050009@netfence.it> Date: Wed, 25 Sep 2013 09:36:16 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Re: Multiple Java versions References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> <524284CB.4050606@netfence.it> <52428F64.7070408@matrix.gatewaynet.com> In-Reply-To: <52428F64.7070408@matrix.gatewaynet.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (ns2.biolchim.it [192.168.2.203]); Wed, 25 Sep 2013 09:36:24 +0200 (CEST) X-Scanned-By: MIMEDefang 2.74 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 07:36:29 -0000 On 09/25/13 09:23, Achilleas Mantzios wrote: >> Sorry for being so dumb, but I don't understand this... >> I though I was using javavmwrapper... what do you mean? >> > > You can verify this by doing a > % which java > if this turns out : /usr/local/bin/java > then > ls -l /usr/local/bin/java > lrwxr-xr-x 1 root wheel 21 14 Ιον 10:54 /usr/local/bin/java -> > /usr/local/bin/javavm > > pkg which /usr/local/bin/javavm > /usr/local/bin/javavm was installed by package javavmwrapper-2.4_3 > > then you are sure you are using javavmwrapper > > But, despite this, still the code governing what will be run in the > default case is still : /usr/ports/Mk/bsd.java.mk > > In my system : 9.1-RELEASE-p3, and despite not setting JAVA_HOME, and > having > cat /usr/local/etc/javavms > /usr/local/openjdk7/bin/java # OpenJDK7 > /usr/local/openjdk6/bin/java # OpenJDK6 > > *still* the java version of choice is openjdk6 > > i don't know how much the /usr/local/etc/javavms is consulted. Thanks. I can confirm the above. bye av. From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 11:39:06 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E82443EB for ; Wed, 25 Sep 2013 11:39:06 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 66E8B2E30 for ; Wed, 25 Sep 2013 11:39:05 +0000 (UTC) Received: from server.rulingia.com (c220-239-237-213.belrs5.nsw.optusnet.com.au [220.239.237.213]) by vps.rulingia.com (8.14.7/8.14.5) with ESMTP id r8PBG7Cf001614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 25 Sep 2013 21:16:08 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.7/8.14.7) with ESMTP id r8PBG1AB050323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 25 Sep 2013 21:16:01 +1000 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.7/8.14.7/Submit) id r8PBG1Vb050322 for freebsd-java@freebsd.org; Wed, 25 Sep 2013 21:16:01 +1000 (EST) (envelope-from peter) Date: Wed, 25 Sep 2013 21:16:01 +1000 From: Peter Jeremy To: freebsd-java@freebsd.org Subject: Using Apache ant without base gcc Message-ID: <20130925111601.GE33452@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 11:39:07 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please Cc me on any responses] Hi, I am the manintainer for graphics/jogl and the build cluster reports that it's failing on head on both i386 and amd64 because there's no gcc: /wrkdirs/usr/ports/graphics/jogl/work/gluegen/make/build.xml:343: Could not= launch gcc: java.io.IOException: Cannot run program "gcc" (in directory "/= wrkdirs/usr/ports/graphics/jogl/work/gluegen/build/obj"): java.io.IOExcepti= on: error=3D2, No such file or directory The compiler is defined as: If I add "USE_GCC=3Dany" to the port Makefile then it still fails because lang/gcc installs 'gcc46', rather than 'gcc'. If I change all the 'gcc' references to 'cc' (which would pick up clang) then it fails with: /tank/obj/usr/ports/graphics/jogl/work/gluegen/make/gluegen-cpptasks.xml:49= 7: cc is not a legal value for this attribute where gluegen-cpptasks.xml:497 has I'm a long way from an expert on ant and I've had a rummage around the Internet but haven't found a solution. Can anyone with more ant-foo help? --=20 Peter Jeremy --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iEYEARECAAYFAlJCxfEACgkQ/opHv/APuIfIsQCgoSt5c3zDt5/Et2Stjko09BTx v4YAoKRAFakHePOt07T/sbILYMefM5G2 =BfOi -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N-- From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 15:05:12 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 19FB69CD for ; Wed, 25 Sep 2013 15:05:12 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by mx1.freebsd.org (Postfix) with ESMTP id 859992C25 for ; Wed, 25 Sep 2013 15:05:10 +0000 (UTC) Received: from cpsps-ews17.kpnxchange.com ([10.94.84.183]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 25 Sep 2013 17:05:06 +0200 Received: from CPSMTPM-TLF101.kpnxchange.com ([195.121.3.4]) by cpsps-ews17.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 25 Sep 2013 17:05:06 +0200 Received: from sjakie.klop.ws ([212.182.167.131]) by CPSMTPM-TLF101.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 25 Sep 2013 17:05:06 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 9CA59642 for ; Wed, 25 Sep 2013 17:05:06 +0200 (CEST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org Subject: Re: Using Apache ant without base gcc References: <20130925111601.GE33452@server.rulingia.com> Date: Wed, 25 Sep 2013 17:05:06 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20130925111601.GE33452@server.rulingia.com> User-Agent: Opera Mail/12.16 (FreeBSD) X-OriginalArrivalTime: 25 Sep 2013 15:05:07.0067 (UTC) FILETIME=[9F000CB0:01CEBA00] X-RcptDomain: freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 15:05:12 -0000 On Wed, 25 Sep 2013 13:16:01 +0200, Peter Jeremy wrote: > [Please Cc me on any responses] > > Hi, > > I am the manintainer for graphics/jogl and the build cluster reports that > it's failing on head on both i386 and amd64 because there's no gcc: > > /wrkdirs/usr/ports/graphics/jogl/work/gluegen/make/build.xml:343: Could > not launch gcc: java.io.IOException: Cannot run program "gcc" (in > directory "/wrkdirs/usr/ports/graphics/jogl/work/gluegen/build/obj"): > java.io.IOException: error=2, No such file or directory > > The compiler is defined as: > > > > > > > If I add "USE_GCC=any" to the port Makefile then it still fails because > lang/gcc installs 'gcc46', rather than 'gcc'. > > If I change all the 'gcc' references to 'cc' (which would pick up > clang) then it fails with: > /tank/obj/usr/ports/graphics/jogl/work/gluegen/make/gluegen-cpptasks.xml:497: > cc is not a legal value for this attribute > where gluegen-cpptasks.xml:497 has > > > I'm a long way from an expert on ant and I've had a rummage around the > Internet but haven't found a solution. Can anyone with more ant-foo > help? > Hi, I looked at the documentation of the and tags. It does not look flexible enough to define your own compiler and it does not support clang yet. So I see these options: 1- lobby with the lang/gcc port maintainer to (optionally) install without a ${SUFFIX} set on FreeBSD 10 (where gcc is gone). 2- change the build.xml to directly use the target. http://ant.apache.org/manual/Tasks/exec.html 3- symlink /usr/ports/graphics/jogl/work/gcc -> /usb/bin/cc and add the work directory to the PATH before building the port. This will actually build with clang. Which might or might not work. I think option 2 is the most convenient and clear. Ronald. From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 18:54:34 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1EA9C424; Wed, 25 Sep 2013 18:54:34 +0000 (UTC) (envelope-from vagabond@blackfoot.net) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DB0E82B3A; Wed, 25 Sep 2013 18:54:33 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id r8PIsDNO025597; Wed, 25 Sep 2013 12:54:15 -0600 (MDT) (envelope-from vagabond@blackfoot.net) Message-ID: <52433155.3070900@blackfoot.net> Date: Wed, 25 Sep 2013 12:54:13 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: Andrea Venturoli Subject: Re: Multiple Java versions References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> <524284CB.4050606@netfence.it> In-Reply-To: <524284CB.4050606@netfence.it> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Wed, 25 Sep 2013 12:54:20 -0600 (MDT) Cc: java@freebsd.org, Jason Helfman , FreeBSD Ports List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 18:54:34 -0000 On 09/25/13 00:38, Andrea Venturoli wrote: > On 09/25/13 08:28, Jason Helfman wrote: > >> java/javavmwrapper >> >> cc: java > > Sorry for being so dumb, but I don't understand this... > I though I was using javavmwrapper... what do you mean? I believe you are correct in your original statement, and that there is something wrong with the java startup script. You do not need to set JAVA_HOME. The startup script has code to locate all installed versions, set JAVA_HOME if not already set, prioritize them, and execute the latest one; but it doesn't seem to be working properly. There is no javavmwrapper, at least in my installation(s). The java startup script (/usr/local/bin/java) indicates it is itself javawrapper.sh. If JAVA_HOME is not set, the startup script finds a java by using make, and that finds openjdk6 when openjdk6 and openjdk7 are both installed. In this case, the script is not using the installed prioritization list in /usr/local/etc/javavms. It seems to me it should be checking this before resorting to what make finds. However, you can avoid this behavior and get the right thing by setting JAVAVM_FALLBACK_ONLY=1 gary From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 19:08:38 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3AD56822; Wed, 25 Sep 2013 19:08:38 +0000 (UTC) (envelope-from vagabond@blackfoot.net) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 072B42C16; Wed, 25 Sep 2013 19:08:35 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id r8PJ8GUG025640; Wed, 25 Sep 2013 13:08:17 -0600 (MDT) (envelope-from vagabond@blackfoot.net) Message-ID: <524334A0.8030407@blackfoot.net> Date: Wed, 25 Sep 2013 13:08:16 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: Andrea Venturoli Subject: Re: Multiple Java versions References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> <524284CB.4050606@netfence.it> <52433155.3070900@blackfoot.net> In-Reply-To: <52433155.3070900@blackfoot.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Wed, 25 Sep 2013 13:08:19 -0600 (MDT) Cc: java@freebsd.org, FreeBSD Ports List , Jason Helfman X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 19:08:38 -0000 On 09/25/13 12:54, Gary Aitken wrote: > On 09/25/13 00:38, Andrea Venturoli wrote: >> On 09/25/13 08:28, Jason Helfman wrote: >> >>> java/javavmwrapper >>> >>> cc: java >> >> Sorry for being so dumb, but I don't understand this... >> I though I was using javavmwrapper... what do you mean? > > I believe you are correct in your original statement, > and that there is something wrong with the java startup script. > > You do not need to set JAVA_HOME. > The startup script has code to locate all installed versions, > set JAVA_HOME if not already set, > prioritize them, and execute the latest one; > but it doesn't seem to be working properly. > > There is no javavmwrapper, at least in my installation(s). > The java startup script (/usr/local/bin/java) indicates it is itself > javawrapper.sh. > > If JAVA_HOME is not set, the startup script finds a java by using make, > and that finds openjdk6 when openjdk6 and openjdk7 are both installed. > In this case, the script is not using the installed prioritization list > in /usr/local/etc/javavms. It seems to me it should be checking this > before resorting to what make finds. > > However, you can avoid this behavior and get the right thing by setting > JAVAVM_FALLBACK_ONLY=1 My mistake. It is operating as advertised, although I think it's crazy that bsd.java.mk should be choosing openjdk6 over openjdk7. But if what you want is the prioritization set in /usr/local/etc/javavms, then you want to set JAVAVM_FALLBACK_ONLY instead of JAVA_HOME From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 19:09:27 2013 Return-Path: Delivered-To: java@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id BB646AB7; Wed, 25 Sep 2013 19:09:26 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Message-ID: <5243343F.4020200@FreeBSD.org> Date: Wed, 25 Sep 2013 15:06:39 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Gary Aitken , Andrea Venturoli Subject: Re: Multiple Java versions References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> <524284CB.4050606@netfence.it> <52433155.3070900@blackfoot.net> In-Reply-To: <52433155.3070900@blackfoot.net> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: java@freebsd.org, FreeBSD Ports List , Jason Helfman X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 19:09:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-09-25 14:54:13 -0400, Gary Aitken wrote: > On 09/25/13 00:38, Andrea Venturoli wrote: >> On 09/25/13 08:28, Jason Helfman wrote: >> >>> java/javavmwrapper >>> >>> cc: java >> >> Sorry for being so dumb, but I don't understand this... I though >> I was using javavmwrapper... what do you mean? > > I believe you are correct in your original statement, and that > there is something wrong with the java startup script. > > You do not need to set JAVA_HOME. The startup script has code to > locate all installed versions, set JAVA_HOME if not already set, > prioritize them, and execute the latest one; but it doesn't seem to > be working properly. > > There is no javavmwrapper, at least in my installation(s). The java > startup script (/usr/local/bin/java) indicates it is itself > javawrapper.sh. > > If JAVA_HOME is not set, the startup script finds a java by using > make, and that finds openjdk6 when openjdk6 and openjdk7 are both > installed. Because java/openjdk6 is the default Java for FreeBSD ATM. If you want to force openjdk7 for some reason, you just have to set JAVA_VERSION, e.g., % java -version openjdk version "1.6.0_32" OpenJDK Runtime Environment (build 1.6.0_32-b27) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) % env JAVA_VERSION=1.7 java -version openjdk version "1.7.0_25" OpenJDK Runtime Environment (build 1.7.0_25-b15) OpenJDK 64-Bit Server VM (build 23.21-b01, mixed mode) Please see javavm(1) for more information, i.e., "man javavm". > In this case, the script is not using the installed prioritization > list in /usr/local/etc/javavms. It seems to me it should be > checking this before resorting to what make finds. Please note /usr/local/etc/javavms is never ordered by user preference, *intentionally*. > However, you can avoid this behavior and get the right thing by > setting JAVAVM_FALLBACK_ONLY=1 It is normally unnecessary. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBAgAGBQJSQzQ/AAoJEHyflib82/FGEacH/iQh2YXQ5w/6OP+crwRK8xr7 jxckXVBog4CVfnF+RHjHKJ9ByYlVjBZCLzMeMLFSdPDfKS9K0vHPR6AQVOBPQhz0 Rakgzxw8ocoxXZcHwo0mWu7rNvJJJUt+QOjraeQcbGa5JhXgTwH5j1hVG3iPeVD7 YNaE1id9cp/RJ4sMLMJ99PQgDDWRky9WX/H+axNm/DfwouwcR2oAkYeeIA5WfsDF mQQYgiAf6oWQMPMqT94Ml/AhsA3UD8yQ+T6hJOeSqkWpSxtfCdkNi+6icndzshEz iIRkzY3IDf/Hb3nBX4oQz9J0Tj0PxL3P00ZBxJi8bYZavsd8C6caT4ZwPGngwYE= =d9xb -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 19:18:02 2013 Return-Path: Delivered-To: java@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id 8D08DD52; Wed, 25 Sep 2013 19:18:01 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Message-ID: <52433642.2070301@FreeBSD.org> Date: Wed, 25 Sep 2013 15:15:14 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Gary Aitken , Andrea Venturoli Subject: Re: Multiple Java versions References: <52416B1A.5040606@netfence.it> <52427DA7.8070804@netfence.it> <524284CB.4050606@netfence.it> <52433155.3070900@blackfoot.net> <524334A0.8030407@blackfoot.net> In-Reply-To: <524334A0.8030407@blackfoot.net> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: java@freebsd.org, Jason Helfman , FreeBSD Ports List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 19:18:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-09-25 15:08:16 -0400, Gary Aitken wrote: > On 09/25/13 12:54, Gary Aitken wrote: >> On 09/25/13 00:38, Andrea Venturoli wrote: >>> On 09/25/13 08:28, Jason Helfman wrote: >>> >>>> java/javavmwrapper >>>> >>>> cc: java >>> >>> Sorry for being so dumb, but I don't understand this... I >>> though I was using javavmwrapper... what do you mean? >> >> I believe you are correct in your original statement, and that >> there is something wrong with the java startup script. >> >> You do not need to set JAVA_HOME. The startup script has code to >> locate all installed versions, set JAVA_HOME if not already set, >> prioritize them, and execute the latest one; but it doesn't seem >> to be working properly. >> >> There is no javavmwrapper, at least in my installation(s). The >> java startup script (/usr/local/bin/java) indicates it is itself >> javawrapper.sh. >> >> If JAVA_HOME is not set, the startup script finds a java by using >> make, and that finds openjdk6 when openjdk6 and openjdk7 are both >> installed. In this case, the script is not using the installed >> prioritization list in /usr/local/etc/javavms. It seems to me it >> should be checking this before resorting to what make finds. >> >> However, you can avoid this behavior and get the right thing by >> setting JAVAVM_FALLBACK_ONLY=1 > > My mistake. It is operating as advertised, although I think it's > crazy that bsd.java.mk should be choosing openjdk6 over openjdk7. > > But if what you want is the prioritization set in > /usr/local/etc/javavms, No, it is NOT the place for preference as I said earlier. In fact, it has (almost) no user serviceable part in it. > then you want to set JAVAVM_FALLBACK_ONLY instead of JAVA_HOME No, it seems JAVA_VERSION is what you want. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBAgAGBQJSQzZBAAoJEHyflib82/FGCNsH/1VrZUM4iPH9EzVEk+FBEZU/ BEdqDg1CWxYAKlOaGB3RY5Lt9WlkIUVU6ydkLLe8fdWrwTu8V8F24SEPClQ63cY6 7cibKdI38vKR4kvONXX4GHULJVVW9CB7gEXalGAlnF5msSS2gwGjw639MUxjRzNl 5y2j/WWXkx8uBSmBHlCK3Orwy5QS1zxLH/dqz9jG07i4LC0ne6PRnE7pikHf3DN6 6C+Wx/xm3fzrhJhP23sXwDMSdJxxPEDC4++jugiHe74QFJlGzCrZpScw5uBicJ4X hqHsTiwEFtAUd8Aw7kjxrkqof4e1935wYXxPjrldKOXcRig9FEeEkv2hrJPnWNQ= =6BEh -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 21:46:20 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5B264A87 for ; Wed, 25 Sep 2013 21:46:20 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D247326F7 for ; Wed, 25 Sep 2013 21:46:16 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id r8PLjnep026091 for ; Wed, 25 Sep 2013 15:45:51 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <5243598E.8010307@dreamchaser.org> Date: Wed, 25 Sep 2013 15:45:50 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: jre config problem, libiconv not in loaded libs when eclipse spawns a job Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Wed, 25 Sep 2013 15:45:51 -0600 (MDT) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 21:46:20 -0000 Backing up a bit and making sure my existing eclipse (from /usr/ports/java/eclipse) works, if I create a new project and build it, it builds ok, but when trying to run I get: /usr/local/openjdk7/jre/lib/amd64/libnpt.so: Undefined symbol "libiconv_open" accompanied by Exception in thread "Listening Connector" java.lang.NullPointerException at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:92) at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56) at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135) at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107) at java.lang.Thread.run(Thread.java:679) I get the same error whether using openjdk6 or openjdk7 $ ls -l /usr/local/lib/libiconv* -rw-r--r-- 1 root wheel 1116648 Sep 1 22:32 /usr/local/lib/libiconv.a -r--r--r-- 1 root wheel 916 Sep 1 22:32 /usr/local/lib/libiconv.la lrwxr-xr-x 1 root wheel 13 Sep 1 22:32 /usr/local/lib/libiconv.so -> libiconv.so.3 -r--r--r-- 1 root wheel 1084538 Sep 1 22:32 /usr/local/lib/libiconv.so.3 $ nm ./libnpt.so | grep libiconv_open U libiconv_open yet $ ldd /usr/local/openjdk7/jre/lib/amd64/libnpt.so /usr/local/openjdk7/jre/lib/amd64/libnpt.so: libc.so.7 => /lib/libc.so.7 (0x80081a000) $ nm ./libnpt.so | grep libiconv_open U libiconv_open Is there something wrong with the install for openjdk* that libiconv.so is not in the set of libraries linked? What's the "proper" way to fix this? IRRC, the last time I was using eclipse heavily I was using the diablo jvm and not openjdk*, and didn't have this problem. Gary From owner-freebsd-java@FreeBSD.ORG Thu Sep 26 01:09:01 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 707AEF6B; Thu, 26 Sep 2013 01:09:01 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 470852182; Thu, 26 Sep 2013 01:09:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8Q191YA076622; Thu, 26 Sep 2013 01:09:01 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8Q191lw076621; Thu, 26 Sep 2013 01:09:01 GMT (envelope-from edwin) Date: Thu, 26 Sep 2013 01:09:01 GMT Message-Id: <201309260109.r8Q191lw076621@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-java@FreeBSD.org From: edwin@FreeBSD.org Subject: Re: ports/182384: java/linux-sun-jdk16 won't build with demos & samples X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2013 01:09:01 -0000 Synopsis: java/linux-sun-jdk16 won't build with demos & samples Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-java Responsible-Changed-By: edwin Responsible-Changed-When: Thu Sep 26 01:09:01 UTC 2013 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=182384 From owner-freebsd-java@FreeBSD.ORG Fri Sep 27 01:00:43 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 21259362 for ; Fri, 27 Sep 2013 01:00:43 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C669825EB for ; Fri, 27 Sep 2013 01:00:41 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id r8R10dj9030900 for ; Thu, 26 Sep 2013 19:00:40 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <5244D8B7.4060804@dreamchaser.org> Date: Thu, 26 Sep 2013 19:00:39 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: preserving user added libraries Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Thu, 26 Sep 2013 19:00:40 -0600 (MDT) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 01:00:43 -0000 Hi all, I had an issue when reinstalling openjdk* where it removed the jar for mysql db access. Below is the conversation regarding this from ports: On 09/26/13 14:20, Kimmo Paasiala wrote: > On Thu, Sep 26, 2013 at 10:14 PM, Gary Aitken wrote: >> On 09/26/13 12:39, Kimmo Paasiala wrote: >>> On Thu, Sep 26, 2013 at 9:25 PM, Scot Hetzel wrote: >>>> On Thu, Sep 26, 2013 at 11:35 AM, Gary Aitken wrote: >>>>> Is portmaster supposed to retain files which it did not install when updating / >>>>> reinstalling a port? >>>>> >>>>> For example, jave extensions are normally installed by placing a jar file in >>>>> /usr/local/openjdk6/jre/lib/ext/ >>>>> >>>>> When reinstalling, these are wiped out. >> >>>> The problem is not with portmaster, as it runs the pkg or pkg_install >>>> commands to remove the port. If you have files that are missing after >>>> uninstalling a port, then you'll need to check what that port is >>>> doing. Most likely the port has a @dirrm instead of an @dirrmtry for >>>> that directory in it's pkg-plist file. >>>> >>>> I had a look at the java/openjdk6/Makefile, and it creates the list of >>>> directories to remove with @dirrm instead of @dirrmtry. So it looks >>>> like the issue is with java/openjdk6 removing that directory. >> >>> It's a larger problem with no clear solution. What the programs that >>> install additional files after the initial installation should do is >>> to use /var/db/xyz for the additional files so that they are contained >>> in a separate directory alltogether. >> >> >> That presumes all additional files are installed via the ports mechanism, >> or at least know about it, which is highly unlikely. With plugins of >> various types and machine-independent binaries like java .class files >> abounding, requiring every add-on to be installed by the ports mechanism >> isn't likely to work in the long run. >> >> I can see how a program installed by the ports mechanism should use the >> mechanism you're advocating, but I don't think it applies to all cases. >> >> In this case, it was a mysql driver, obtained as a binary (.jar of >> java .class files). But things like gimp plugins have the same issue. > I was referring to untracked files that have not been installed via > the ports system or packages. However, it seems impossible to convince > software writers that /usr and /usr/local might be read-only at > run-time :/ I'm wondering if this has already been settled at the current state of affairs. I'm open to some other way of installing add-ons, but I don't think one should have to track and re-install them with every upgrade. Gary