From owner-freebsd-java@FreeBSD.ORG Sun Sep 8 01:37:46 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 CB399339 for ; Sun, 8 Sep 2013 01:37:46 +0000 (UTC) (envelope-from 36NQrUgEVDNccMK8AP7K8P7.FR94BS.5HF8K774L6-C3O38K774L6.HK9@photos-server.bounces.google.com) Received: from mail-ea0-f201.google.com (mail-ea0-f201.google.com [209.85.215.201]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5093F2FC0 for ; Sun, 8 Sep 2013 01:37:45 +0000 (UTC) Received: by mail-ea0-f201.google.com with SMTP id h14so280808eak.0 for ; Sat, 07 Sep 2013 18:37:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:reply-to:message-id:date:subject:from:to:content-type; bh=rDj6l2NJx35pbENKcr0ktRLeDfxNO5Q8JtUn1nBeiWI=; b=HZr0MDB+mYfxJ5ofCu4HauIYCzbhJYX5r4JUlKFkmeA23+3FqgRxxrkXk01LBXzMcB e4OcZlRV34XqtkZBA3RNNi4pvkPSXesmJ9MYYIp/ZoKlcoBfciR0H7swlyYWz4fNsF8C bMzeQiuZYcmj7swtorTgtuDLGhp7uhwNAImrpnzWpUcSojEXtT9qq3RWSWeNS1uKiv4v VJoz1vHXa9xoKjYfzcTA5w2h27zFWwY6nANRarVKxKOV9kqcWdzI9dCC/ZTLdZ4+CG4Q NtfFdsBHC3j9hAs6AKte4sIbuxuL8xBLY/0HlWdMEI9pMkEs9BnksgXbXSUGb4/ya4ks WHBg== MIME-Version: 1.0 X-Received: by 10.112.125.234 with SMTP id mt10mr1967809lbb.0.1378604264094; Sat, 07 Sep 2013 18:37:44 -0700 (PDT) Message-ID: <089e01160d62727a9204e5d5518d@google.com> Date: Sun, 08 Sep 2013 01:37:44 +0000 Subject: Paper cup,Drinking straws, fork, Knife and Other cutlery Supply shared an album with you. From: "Paper cup, Drinking straws, fork, Knife and Other cutlery Supply" <9@trfhwerfwe.mygbiz.com> To: freebsd-java@freebsd.org Content-Type: multipart/related; boundary=089e01160d62727a8a04e5d5518b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Paper cup, Drinking straws, fork, Knife and Other cutlery Supply" <9@trfhwerfwe.mygbiz.com> List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2013 01:37:47 -0000 --089e01160d62727a8a04e5d5518b Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Dear Manager: We are a company focused on food package. and What we do is Just Helping you to save your cost. Now we can supply : 1. Single wall paper cup. Double PE .Hot Paper cups. Double Wall paper cups. Cold Drinking cups, Ripple Wall cups. Paper box. 2. Drinking straws , Flexible straws. Straight straws. 3. Plastic cups. PET cold cups 4. Plastic spoon. fork, Knife and Other cutlery. We know that buiness include: Quality. Price. Delivery time. Payment Terms. And Service. We welcome you to do customized cups and any enquiries. samples for free. Best Regards Jeff https://picasaweb.google.com/lh/sredir?uname=113261512723550494840&target=ALBUM&id=5920157721917554721&authkey=Gv1sRgCJns9I3tv6OWiAE&invite=CIi37rEK&feat=email --089e01160d62727a8a04e5d5518b-- From owner-freebsd-java@FreeBSD.ORG Sun Sep 8 20:58:45 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 D6743272; Sun, 8 Sep 2013 20:58:45 +0000 (UTC) (envelope-from crees@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 A97442105; Sun, 8 Sep 2013 20:58:45 +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 r88KwjZh062005; Sun, 8 Sep 2013 20:58:45 GMT (envelope-from crees@freefall.freebsd.org) Received: (from crees@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r88Kwj5a061745; Sun, 8 Sep 2013 20:58:45 GMT (envelope-from crees) Date: Sun, 8 Sep 2013 20:58:45 GMT Message-Id: <201309082058.r88Kwj5a061745@freefall.freebsd.org> To: hasanalpinan@gmail.com, crees@FreeBSD.org, freebsd-java@FreeBSD.org From: crees@FreeBSD.org Subject: Re: ports/179927: java/jboss72 Can't start with rc script 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: Sun, 08 Sep 2013 20:58:45 -0000 Synopsis: java/jboss72 Can't start with rc script State-Changed-From-To: open->closed State-Changed-By: crees State-Changed-When: Sun Sep 8 20:58:45 UTC 2013 State-Changed-Why: Hopefully fixed with referenced commit. Please report if it doesn't. http://www.freebsd.org/cgi/query-pr.cgi?pr=179927 From owner-freebsd-java@FreeBSD.ORG Sun Sep 8 21:00: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 5177B2AD for ; Sun, 8 Sep 2013 21:00:01 +0000 (UTC) (envelope-from gnats@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 3EE222117 for ; Sun, 8 Sep 2013 21:00: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 r88L01FS018685 for ; Sun, 8 Sep 2013 21:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r88L007L018308; Sun, 8 Sep 2013 21:00:00 GMT (envelope-from gnats) Date: Sun, 8 Sep 2013 21:00:00 GMT Message-Id: <201309082100.r88L007L018308@freefall.freebsd.org> To: freebsd-java@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: ports/179927: commit references a PR X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2013 21:00:01 -0000 The following reply was made to PR ports/179927; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/179927: commit references a PR Date: Sun, 8 Sep 2013 20:56:44 +0000 (UTC) Author: crees Date: Sun Sep 8 20:56:37 2013 New Revision: 326770 URL: http://svnweb.freebsd.org/changeset/ports/326770 Log: The format for bind.address has changed, so document and alert users. At the same time, fix some errors for logging in the rc script. PR: ports/179927 Submitted by: Alexander Yerenkow (maintainer) Added: head/java/jboss72/pkg-message (contents, props changed) Modified: head/java/jboss72/Makefile head/java/jboss72/files/jboss72.in Modified: head/java/jboss72/Makefile ============================================================================== --- head/java/jboss72/Makefile Sun Sep 8 20:01:03 2013 (r326769) +++ head/java/jboss72/Makefile Sun Sep 8 20:56:37 2013 (r326770) @@ -55,6 +55,9 @@ do-build: do-install: ${MKDIR} ${PREFIX}/${DISTNAME} && cd ${JBOSSOUTPUT} && ${FIND} . | ${CPIO} -pdmu -R ${USER}:${GROUP} ${PREFIX}/${DISTNAME} +post-install: + @${CAT} ${PKGMESSAGE} + .include .if ${OSVERSION} < 800000 Modified: head/java/jboss72/files/jboss72.in ============================================================================== --- head/java/jboss72/files/jboss72.in Sun Sep 8 20:01:03 2013 (r326769) +++ head/java/jboss72/files/jboss72.in Sun Sep 8 20:56:37 2013 (r326770) @@ -11,9 +11,9 @@ # Add the following lines to /etc/rc.conf to enable %%APP_SHORTNAME%%: # %%APP_SHORTNAME%%_enable (bool): Set to "YES" to enable %%APP_SHORTNAME%% -# %%APP_SHORTNAME%%_jvm_opts (str): Extra JVM flags. # %%APP_SHORTNAME%%_args (str): Optional arguments to JBoss -# %%APP_SHORTNAME%%_logging (str) JBoss log output. A pipe command may be used. +# %%APP_SHORTNAME%%_log_stdout (str) JBoss log output stdout, filename. +# %%APP_SHORTNAME%%_log_stderr (str) JBoss log output stderr, filename. # . /etc/rc.subr @@ -24,7 +24,9 @@ rcvar=%%APP_SHORTNAME%%_enable load_rc_config $name %%APP_SHORTNAME%%_enable="${%%APP_SHORTNAME%%_enable:-"NO"}" -%%APP_SHORTNAME%%_logging="${%%APP_SHORTNAME%%_logging:-">> ${%%APP_SHORTNAME%%_logdir}/stdout.log 2>> ${%%APP_SHORTNAME%%_logdir}/stderr.log"}" +%%APP_SHORTNAME%%_log_stdout="${%%APP_SHORTNAME%%_log_stdout:-"${%%APP_SHORTNAME%%_logdir}/stdout.log"}" +%%APP_SHORTNAME%%_log_stderr="${%%APP_SHORTNAME%%_log_stderr:-"${%%APP_SHORTNAME%%_logdir}/stderr.log"}" +%%APP_SHORTNAME%%_args="${%%APP_SHORTNAME%%_args:-""}" %%APP_SHORTNAME%%_sleep="${%%APP_SHORTNAME%%_sleep:-"5"}" %%APP_SHORTNAME%%_kill9="${%%APP_SHORTNAME%%_kill9:-""}" %%APP_SHORTNAME%%_additional_killall="${%%APP_SHORTNAME%%_additional_killall:-""}" @@ -45,7 +47,7 @@ JBOSS_HOME="%%APP_HOME%%" fi echo "Starting %%APP_SHORTNAME%%." - daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_logging} >> ${%%APP_SHORTNAME%%_logdir}/boot.log 2>> ${%%APP_SHORTNAME%%_logdir}/boot.log + daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_args} >> ${%%APP_SHORTNAME%%_log_stdout} 2>> ${%%APP_SHORTNAME%%_log_stderr} >> ${%%APP_SHORTNAME%%_logdir}/boot.log 2>> ${%%APP_SHORTNAME%%_logdir}/boot.log sleep ${%%APP_SHORTNAME%%_sleep} # let daemon(8) and sh(1) finish before executing pgrep(1) pgrep -U ${%%APP_SHORTNAME%%_user} -f ${JBOSS_HOME}/modules > ${pidfile} Added: head/java/jboss72/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/jboss72/pkg-message Sun Sep 8 20:56:37 2013 (r326770) @@ -0,0 +1,8 @@ +To make JBoss bind to all interfaces add this to /etc/rc.conf: + +jboss72_args="-Djboss.bind.address=0.0.0.0" + +Old format (-b 0.0.0.0 are not working in 7.2). + +You can also specify any other tunables which could be parsed by start scripts. +To change JVM args, edit appropriate standalone.conf. _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Mon Sep 9 11:06:50 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 824B6DDD for ; Mon, 9 Sep 2013 11:06:50 +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 5657929FB for ; Mon, 9 Sep 2013 11:06:50 +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 r89B6oQ1013135 for ; Mon, 9 Sep 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r89B6nUb012415 for freebsd-java@FreeBSD.org; Mon, 9 Sep 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Sep 2013 11:06:49 GMT Message-Id: <201309091106.r89B6nUb012415@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, 09 Sep 2013 11:06:50 -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 Sat Sep 14 21:30:00 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.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 E104B3D2 for ; Sat, 14 Sep 2013 21:30:00 +0000 (UTC) (envelope-from gnats@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 A7F8A2C18 for ; Sat, 14 Sep 2013 21:30:00 +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 r8ELU0GZ086482 for ; Sat, 14 Sep 2013 21:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8ELU03Q086481; Sat, 14 Sep 2013 21:30:00 GMT (envelope-from gnats) Resent-Date: Sat, 14 Sep 2013 21:30:00 GMT Resent-Message-Id: <201309142130.r8ELU03Q086481@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michaël 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 71AFB297 for ; Sat, 14 Sep 2013 21:26:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5E7FD2BF1 for ; Sat, 14 Sep 2013 21:26:13 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8ELQCR1093918 for ; Sat, 14 Sep 2013 21:26:12 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8ELQCcR093914; Sat, 14 Sep 2013 21:26:12 GMT (envelope-from nobody) Message-Id: <201309142126.r8ELQCcR093914@oldred.freebsd.org> Date: Sat, 14 Sep 2013 21:26:12 GMT From: Michaël To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: java/182100: Usage of iconv is missing in openjdk6-b27_7 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: Sat, 14 Sep 2013 21:30:00 -0000 >Number: 182100 >Category: java >Synopsis: Usage of iconv is missing in openjdk6-b27_7 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Sep 14 21:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Michaël >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD FreeBsdMik 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: In the Makefile of last commit of openjdk6-6-b27_7, usage of libiconv is not spécified. This cause bluej can't start the jvm with this error : "Error output from debug VM on launch:/usr/local/openjdk6/jre/lib/amd64/libnpt.so: Undefined symbol "libiconv_open"" >How-To-Repeat: Run Bluej with openjdk6. An error message will occur. In the logs of bluej we will find the line above. >Fix: Modify line 56 of the Makefile : USES = gmake motif to USES = gmake motif iconv I tested this patch and it's ok on my system. Patch attached with submission follows: Index: java/openjdk6/Makefile =================================================================== --- java/openjdk6/Makefile (revision 327311) +++ java/openjdk6/Makefile (working copy) @@ -53,7 +53,7 @@ TEST_DESC= Add support for running regression test .endif -USES= gmake motif +USES= gmake motif iconv .include .include "${.CURDIR}/../openjdk6/Makefile.icedtea" >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-java@FreeBSD.ORG Sat Sep 14 23:45:45 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 B25B9BE9; Sat, 14 Sep 2013 23:45:45 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D9EB52235; Sat, 14 Sep 2013 23:45:44 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::8f9:73f5:56d9:8cd2] (unknown [IPv6:2001:7b8:3a7:0:8f9:73f5:56d9:8cd2]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 35C865C44; Sun, 15 Sep 2013 01:45:42 +0200 (CEST) From: Dimitry Andric Content-Type: multipart/signed; boundary="Apple-Mail=_484484E3-1B53-4A83-A485-8A192C1E3AD7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Building java/openjdk7 with clang Date: Sun, 15 Sep 2013 01:45:19 +0200 Message-Id: <108F3771-64B3-40E9-91FA-04C160442608@FreeBSD.org> To: Baptiste Daroussin Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) Cc: java@FreeBSD.org, Greg Lewis 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: Sat, 14 Sep 2013 23:45:45 -0000 --Apple-Mail=_484484E3-1B53-4A83-A485-8A192C1E3AD7 Content-Type: multipart/mixed; boundary="Apple-Mail=_423C12BA-A4B6-4E1B-9D43-BE6CF796B379" --Apple-Mail=_423C12BA-A4B6-4E1B-9D43-BE6CF796B379 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hi, I took some time to figure out how to build java/openjdk7 with clang. There are a few items I changed: - Change a few instances of "ifneq ($(COMPILER_WARNINGS_FATAL),false)" to "ifeq ($(COMPILER_WARNINGS_FATAL),true)", to make sure -Werror is *not* used. There are zillions of warnings in openjdk, and I don't think it is worth the trouble to fix them all (even if that is possible :). - Remove -fcheck-new from CFLAGS, since clang does not support it, and it does not make sense anyway. This is the only one that is not strictly needed; if -Werror is not enabled, clang will just print a warning that the option is unused, but it won't be fatal. - Change the $(CC) -dumpspecs hack in one of the Makefiles to something more portable. The -dumpspecs is done to figure out if the compiler uses --hash-style=gnu when linking, and if it does, it changes the option to --hash-style=both. On FreeBSD, this is basically a no-op, so it could also be commented out entirely. - In jdk/src/solaris/native/java/net/net_util_md.c, change two instances of CHECK_NULL() to CHECK_NULL_RETURN(), since the function they are in is supposed to return a value. I chose to return 0, since that is what the function seems to use as a default value. With these fixes, openjdk7 builds and runs fine for me. I tried to run "gmake test" in the work directory, but that didn't do much, so I am not sure if a full test suite will survive anything. It would be nice if anybody knows a good way to test the produced binaries more thoroughly. -Dimitry --Apple-Mail=_423C12BA-A4B6-4E1B-9D43-BE6CF796B379 Content-Disposition: attachment; filename=java__openjdk7-fix-build-2.diff Content-Type: application/octet-stream; name="java__openjdk7-fix-build-2.diff" Content-Transfer-Encoding: 7bit Index: java/openjdk7/Makefile =================================================================== --- java/openjdk7/Makefile (revision 327163) +++ java/openjdk7/Makefile (working copy) @@ -29,7 +29,7 @@ USE_XORG+= x11 xext xi xrender xt xtst MAKE_ARGS= CC=${CC} CXX=${CXX} HOST_CC=${CC} MAKE_JOBS_UNSAFE= yes -USE_GCC= any +#USE_GCC= any OPTIONS_DEFINE= DEBUG POLICY TZUPDATE OPTIONS_DEFAULT= POLICY TZUPDATE Index: java/openjdk7/files/patch-set =================================================================== --- java/openjdk7/files/patch-set (revision 327163) +++ java/openjdk7/files/patch-set (working copy) @@ -5756,6 +5756,17 @@ # Synonyms for win32-like targets. compiler2: jvmg product +--- hotspot/make/bsd/makefiles/adlc.make 2012-08-10 18:22:56.000000000 +0200 ++++ hotspot/make/bsd/makefiles/adlc.make 2013-09-14 20:38:13.000000000 +0200 +@@ -68,7 +68,7 @@ + + # CFLAGS_WARN holds compiler options to suppress/enable warnings. + # Compiler warnings are treated as errors +-ifneq ($(COMPILER_WARNINGS_FATAL),false) ++ifeq ($(COMPILER_WARNINGS_FATAL), true) + CFLAGS_WARN = -Werror + endif + CFLAGS += $(CFLAGS_WARN) --- hotspot/make/bsd/makefiles/buildtree.make 2012-08-10 09:22:57.000000000 -0700 +++ hotspot/make/bsd/makefiles/buildtree.make 2013-04-28 16:29:16.000000000 -0700 @@ -1,5 +1,5 @@ @@ -5975,6 +5986,14 @@ # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it +@@ -111,7 +111,6 @@ + CFLAGS += -fno-rtti + CFLAGS += -fno-exceptions + CFLAGS += -pthread +-CFLAGS += -fcheck-new + # version 4 and above support fvisibility=hidden (matches jni_x86.h file) + # except 4.1.2 gives pointless warnings that can't be disabled (afaik) + ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" @@ -124,7 +124,11 @@ ARCHFLAG/ia64 = ARCHFLAG/sparc = -m32 -mcpu=v9 @@ -5987,6 +6006,15 @@ # Darwin-specific build flags ifeq ($(OS_VENDOR), Darwin) +@@ -159,7 +162,7 @@ + endif + + # Compiler warnings are treated as errors +-ifneq ($(COMPILER_WARNINGS_FATAL),false) ++ifeq ($(COMPILER_WARNINGS_FATAL), true) + WARNINGS_ARE_ERRORS = -Werror + endif + @@ -285,6 +289,26 @@ DEBUG_CFLAGS += -gstabs endif Index: java/openjdk7/files/patch-set-jdk =================================================================== --- java/openjdk7/files/patch-set-jdk (revision 327163) +++ java/openjdk7/files/patch-set-jdk (working copy) @@ -451,7 +451,7 @@ + +# If this is a --hash-style=gnu system, use --hash-style=both +# The gnu .hash section won't work on some Linux systems like SuSE 10. -+_HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | $(GREP) -- '--hash-style=gnu') ++_HAS_HASH_STYLE_GNU:=$(shell $(CC) -v /dev/null -o /dev/null 2>&1 | $(GREP) -- '--hash-style=gnu') +ifneq ($(_HAS_HASH_STYLE_GNU),) + LDFLAGS_HASH_STYLE = -Wl,--hash-style=both +endif @@ -96310,6 +96310,18 @@ #ifdef __solaris__ #include #include +@@ -114,9 +118,9 @@ + static jfieldID ni_defaultIndexID; + if (ni_class == NULL) { + jclass c = (*env)->FindClass(env, "java/net/NetworkInterface"); +- CHECK_NULL(c); ++ CHECK_NULL_RETURN(c, 0); + c = (*env)->NewGlobalRef(env, c); +- CHECK_NULL(c); ++ CHECK_NULL_RETURN(c, 0); + ni_defaultIndexID = (*env)->GetStaticFieldID( + env, c, "defaultIndex", "I"); + ni_class = c; @@ -818,7 +822,7 @@ NET_InetAddressToSockaddr(JNIEnv *env, jobject iaObj, int port, struct sockaddr *him, int *len, jboolean v4MappedAddress) { --Apple-Mail=_423C12BA-A4B6-4E1B-9D43-BE6CF796B379 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_423C12BA-A4B6-4E1B-9D43-BE6CF796B379-- --Apple-Mail=_484484E3-1B53-4A83-A485-8A192C1E3AD7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iEYEARECAAYFAlI09RkACgkQsF6jCi4glqMPawCgs9TClZulaAmHYYl+ArGN2z+v SiIAoPDRP4Z0zcKrWxJ9T0KUqdnESxSD =jlCe -----END PGP SIGNATURE----- --Apple-Mail=_484484E3-1B53-4A83-A485-8A192C1E3AD7--