NetBSD Problem Report #51221

From www@NetBSD.org  Mon Jun  6 12:26:48 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9BCFA7A210
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  6 Jun 2016 12:26:48 +0000 (UTC)
Message-Id: <20160606122647.BFDEC7AAB9@mollari.NetBSD.org>
Date: Mon,  6 Jun 2016 12:26:47 +0000 (UTC)
From: adrien_fernandes2@hotmail.com
Reply-To: adrien_fernandes2@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: Build error with OpenJDK8 and i386 
X-Send-Pr-Version: www-1.0

>Number:         51221
>Category:       pkg
>Synopsis:       Build error with OpenJDK8 and i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 06 12:30:00 +0000 2016
>Closed-Date:    Thu May 25 06:10:04 +0000 2017
>Last-Modified:  Thu May 25 06:10:04 +0000 2017
>Originator:     Adrien Fernandes
>Release:        pkgsrc current 4th June 2016
>Organization:
>Environment:
NetBSD 7.99.30 (GENERIC.201606060310Z)
>Description:
http://pastebin.com/

It works on amd64
>How-To-Repeat:
Build on i386
>Fix:

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/51221: Build error with OpenJDK8 and i386
Date: Mon, 6 Jun 2016 14:37:40 +0200

 On Mon, Jun 06, 2016 at 12:30:00PM +0000, adrien_fernandes2@hotmail.com wrote:
 > http://pastebin.com/

 Please just include the error.

 (Of course, this link is useless because it points to the homepage,
 not the particular paste.)
  Thomas

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 11 Jun 2016 20:49:50 +0000
State-Changed-Why:
we need to know what actually happened


From: Adrien Fernandes <Adrien_Fernandes2@hotmail.com>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc: 
Subject: RE: pkg/51221
Date: Thu, 7 Jul 2016 01:35:09 +0000

 =3D=3D=3D> Configuring for openjdk8-1.8.92nb2
 =3D> Generating pkg-config file for builtin expat package.
 =3D> Modifying GNU configure scripts to avoid --recheck
 =3D> Replacing config-guess with pkgsrc versions
 =3D> Replacing config-sub with pkgsrc versions
 =3D> Replacing install-sh with pkgsrc version
 Warning: You are using legacy autoconf cross-compilation flags.
 It is recommended that you use --openjdk-target instead.

 Running generated-configure.sh
 configure: Configuration created at Thu Jul  7 03:32:08 CEST 2016.
 configure: configure script generated at timestamp 1460430898.
 checking for basename... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/basename
 checking for bash... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/bash
 checking for cat... (cached) /bin/cat
 checking for chmod... /bin/chmod
 checking for cmp... /usr/bin/cmp
 checking for comm... /usr/bin/comm
 checking for cp... /bin/cp
 checking for cpio... /bin/cpio
 checking for cut... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/cut
 checking for date... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/date
 checking for gdiff... /usr/bin/diff
 checking for dirname... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/dirname
 checking for echo... (cached) echo
 checking for expr... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/expr
 checking for file... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/file
 checking for find... /usr/bin/find
 checking for head... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/head
 checking for ln... /bin/ln
 checking for ls... /bin/ls
 checking for mkdir... /bin/mkdir -p
 checking for mktemp... /usr/bin/mktemp
 checking for mv... /bin/mv
 checking for printf... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/printf
 checking for rm... /bin/rm
 checking for sh... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/sh
 checking for sort... /usr/bin/sort
 checking for tail... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/tail
 checking for tar... /bin/tar
 checking for tee... /usr/bin/tee
 checking for touch... /usr/bin/touch
 checking for tr... /usr/bin/tr
 checking for uname... /usr/bin/uname
 checking for uniq... /usr/bin/uniq
 checking for wc... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/wc
 checking for which... /usr/bin/which
 checking for xargs... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/xargs
 checking for gawk... /usr/bin/awk
 checking for grep that handles long lines and -e... (cached) /usr/bin/grep
 checking for egrep... (cached) /usr/bin/egrep
 checking for fgrep... /usr/bin/grep -F
 checking for a sed that does not truncate output... /usr/bin/sed
 checking for nawk... no
 checking for gawk... /usr/pkg/bin/gawk
 checking for cygpath... no
 checking for readlink... /usr/bin/readlink
 checking for df... /bin/df
 checking for SetFile... no
 checking build system type... i486--netbsdelf
 checking host system type... i486--netbsdelf
 checking target system type... i486--netbsdelf
 checking openjdk-build os-cpu... bsd-x86
 checking openjdk-target os-cpu... bsd-x86
 checking compilation type... native
 checking for presence of closed sources... no
 checking if closed source is suppressed (openjdk-only)... no
 checking which variant of the JDK to build... normal
 checking which interpreter of the JVM to build... template
 checking which variants of the JVM to build... server
 checking which debug level to use... release
 checking what configuration name to use... bsd-x86-normal-server-release
 checking for apt-get... no
 checking for yum... no
 checking for port... no
 checking for pkgutil... no
 checking for pkgadd... no
 configure: Testing potential make at make, found using user supplied MAKE=
 =3Dmake
 configure: Rewriting FOUND_MAKE to "/usr/pkgsrc/lang/openjdk8/work/.tools/b=
 in/make"
 configure: Using GNU make 3.81 (or later) at /usr/pkgsrc/lang/openjdk8/work=
 /.tools/bin/make (version: GNU Make 4.2.1)
 checking if find supports -delete... yes
 checking for unzip... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/unzip
 checking for zip... /usr/pkgsrc/lang/openjdk8/work/.tools/bin/zip
 checking for ldd... /usr/bin/ldd
 checking for readelf... /usr/bin/readelf
 checking for hg... no
 checking for stat... /usr/bin/stat
 checking for time... /usr/bin/time
 checking pkg-config is at least version 0.9.0... yes
 checking for 7z... 7z
 checking for wget... no
 checking for lftp... no
 checking for ftp... ftp
 checking headful support... include support for both headful and headless
 configure: Found potential Boot JDK using configure arguments
 configure: Potential Boot JDK found at /usr/pkgsrc/lang/openjdk8/work/boots=
 trap is incorrect JDK version (/usr/pkgsrc/lang/openjdk8/work/bootstrap/jre=
 /lib/i386/server/libjvm.so: text relocations); ignoring
 configure: (Your Boot JDK must be version 7 or 8)
 configure: error: The path given by --with-boot-jdk does not contain a vali=
 d Boot JDK
 configure exiting with result code 1
 *** Error code 1=

From: Timo Buhrmester <fstd.lkml@gmail.com>
To: pkgsrc-bugs@netbsd.org
Cc: Thomas Klausner <wiz@NetBSD.org>, dholland@NetBSD.org
Subject: Re: pkg/51221
Date: Sat, 16 Jul 2016 20:38:29 +0200

 >  configure: Found potential Boot JDK using configure arguments
 Meanwhile on stderr:
 sbrk: grow 0xb3bab000 failed, error = 12
 sbrk: grow 0xb3bab000 failed, error = 12
 >  configure: Potential Boot JDK found at /usr/pkgsrc/lang/openjdk8/work/boots=
 >  trap is incorrect JDK version (/usr/pkgsrc/lang/openjdk8/work/bootstrap/jre=
 >  /lib/i386/server/libjvm.so: text relocations); ignoring

 ulimit -d unlimited doesn't seem to change it.

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 17 Jul 2016 15:56:45 +0000
State-Changed-Why:
feedback received


From: Richard PALO <richard@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51221 (Build error with OpenJDK8 and i386)
Date: Tue, 09 Aug 2016 13:43:11 +0200

 Le 17/07/16 17:56, dholland@NetBSD.org a écrit :
 > Synopsis: Build error with OpenJDK8 and i386
 > 
 > State-Changed-From-To: feedback->open
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Sun, 17 Jul 2016 15:56:45 +0000
 > State-Changed-Why:
 > feedback received
 > 
 > 
 > 
 > 

 It appears I'm seeing the same issue that seems to be related to the boostrap
 jdk bootstrap-jdk-1.7.76-netbsd-7-i386-20150301.tar.xz

 > configure:11398: Found potential Boot JDK using configure arguments
 > configure:11431: Potential Boot JDK found at /tmp/pkgsrc/lang/openjdk8/work/boot
 > strap is incorrect JDK version (/tmp/pkgsrc/lang/openjdk8/work/bootstrap/jre/lib
 > /i386/server/libjvm.so: text relocations); ignoring
 > configure:11433: (Your Boot JDK must be version 7 or 8)
 > configure:11580: error: The path given by --with-boot-jdk does not contain a val
 > id Boot JDK

 looking at the output of 'java -version'
 > /tmp/pkgsrc/lang/openjdk8/work/bootstrap/jre/lib/i386/server/libjvm.so: text relocations
 > openjdk version "1.7.0-internal"
 > OpenJDK Runtime Environment (build 1.7.0-internal-pkgsrc_2015_03_01_17_37-b00)
 > OpenJDK Server VM (build 24.76-b04, mixed mode)

 so naturally, when configure runs, which invokes common/autoconf/generated-configure.sh,
 around line 11426 fails, simulated easily as:
 > nb32$ export BOOT_JDK=/tmp/pkgsrc/lang/openjdk8/work/bootstrap
 > nb32$ BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 > nb32$ echo $BOOT_JDK_VERSION
 > /tmp/pkgsrc/lang/openjdk8/work/bootstrap/jre/lib/i386/server/libjvm.so: text relocations

 failing the test

 the bootstrap binary jdk seems to need some TLC or something.
 -- 
 Richard PALO

From: Richard PALO <richard@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51221 (Build error with OpenJDK8 and i386)
Date: Tue, 09 Aug 2016 13:51:10 +0200

 Le 09/08/16 13:45, Richard PALO a écrit :

 >  so naturally, when configure runs, which invokes common/autoconf/generated-configure.sh,
 >  around line 11426 fails, simulated easily as:
 >  > nb32$ export BOOT_JDK=/tmp/pkgsrc/lang/openjdk8/work/bootstrap
 >  > nb32$ BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 >  > nb32$ echo $BOOT_JDK_VERSION
 >  > /tmp/pkgsrc/lang/openjdk8/work/bootstrap/jre/lib/i386/server/libjvm.so: text relocations
 >  
 > 

 looks like simply changing 'head  -n 1' to 'head -n 2' gets me get configured okay.
 build in progress.

 -- 
 Richard PALO

From: Richard PALO <richard@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51221 (Build error with OpenJDK8 and i386)
Date: Tue, 09 Aug 2016 14:28:09 +0200

 This is a multi-part message in MIME format.
 --------------030703030605060906030101
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 7bit

 attached is a tentative patchset, not sure what bootstrap kits
 other than sun- or openjdk may be used, so I 'grep version'
 instead of 'grep -E '(java|openjdk) version'.

 -- 
 Richard PALO


 --------------030703030605060906030101
 Content-Type: text/x-patch;
  name="ojdk8.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="ojdk8.diff"

 diff --git a/lang/openjdk8/distinfo b/lang/openjdk8/distinfo
 index 4ccb07d..832d315 100644
 --- a/lang/openjdk8/distinfo
 +++ b/lang/openjdk8/distinfo
 @@ -59,7 +59,7 @@ SHA1 (patch-bh) = 6194a7c319a496f8ff7df173912cf87118f26a63
  SHA1 (patch-bi) = 190056b3d4c42986ae0a600668b02711598361b8
  SHA1 (patch-bn) = a50dbe17236a90d60d4bbb852ae447e51a279892
  SHA1 (patch-common_autoconf_boot-jdk.m4) = 530da90ea4062f9d8c208557ff634579b0b19f55
 -SHA1 (patch-common_autoconf_generated-configure.sh) = 16da232d94af0c4f5d9babd694321511636985dc
 +SHA1 (patch-common_autoconf_generated-configure.sh) = 5917dca978de72632b9fd0e8cb1c6b4a6d37cd6c
  SHA1 (patch-common_autoconf_spec.gmk.in) = e98bc4c8a09f49c6a26447e6f78abf4709ee694b
  SHA1 (patch-hotspot_agent_src_share_classes_sun_jvm_hotspot_utilities_PlatformInfo.java) = 893f3b7ad0839a75be49ddd0f5eefcff2dbd2928
  SHA1 (patch-hotspot_make_bsd_makefiles_defs.make) = a890e1da1c6bbdf271c97b7241e50cedac3acdf9
 diff --git a/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh b/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh
 index 4c51c7d..3a41209 100644
 --- a/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh
 +++ b/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh
 @@ -15,6 +15,15 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.10 2016/07/19 12:32:15

     MAKE_CANDIDATE=""$MAKE""
     DESCRIPTION="user supplied MAKE=$MAKE"
 +@@ -11423,7 +11423,7 @@ $as_echo "$as_me: Potential Boot JDK fou
 +             BOOT_JDK_FOUND=no
 +           else
 +             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
 +-            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 ++            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | grep version`
 + 
 +             # Extra M4 quote needed to protect [] in grep expression.
 +             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
  @@ -12539,7 +12539,7 @@ fi
         # Resolve file symlinks
         while test $COUNTER -lt 20; do

 --------------030703030605060906030101--

From: Richard PALO <richard@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51221 (Build error with OpenJDK8 and i386)
Date: Tue, 09 Aug 2016 21:26:57 +0200

 The result builds and installs okay, but still has a similar side-effect:
 > nb32$ /usr/pkg/java/openjdk8/bin/java -version
 > /usr/pkg/java/openjdk8/jre/lib/i386/server/libjvm.so: text relocations
 > openjdk version "1.8.0_92-internal"
 > OpenJDK Runtime Environment (build 1.8.0_92-internal-pkgsrc_1.8.92nb2-b00)
 > OpenJDK Server VM (build 25.92-b00, mixed mode)


 -- 
 Richard PALO

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51221: Build error with OpenJDK8 and i386
Date: Wed, 5 Oct 2016 09:18:57 -0500 (CDT)

 As of pkgsrc-2016Q3 and openjdk8-1.8.102nb1, this problem still exists
 for NetBSD/i386-7.99.39.

 The previously-posted patch will not apply in this version.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51221: Build error with OpenJDK8 and i386
Date: Wed, 5 Oct 2016 09:26:29 -0500 (CDT)

 On Wed, 5 Oct 2016, John D. Baker wrote:

 > The previously-posted patch will not apply in this version.

 Sorry.  I was looking at the existing patch that referenced the same file.
 The posted patch probably will still work as a local patch.  Since it was
 a trivial change, I generated one for myself and the build is proceeding.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51221 CVS commit: pkgsrc/lang/openjdk8
Date: Thu, 27 Oct 2016 13:06:42 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Thu Oct 27 13:06:42 UTC 2016

 Modified Files:
 	pkgsrc/lang/openjdk8: Makefile distinfo
 	pkgsrc/lang/openjdk8/patches:
 	    patch-common_autoconf_generated-configure.sh
 	    patch-jdk_src_solaris_native_java_net_NetworkInterface.c
 Removed Files:
 	pkgsrc/lang/openjdk8/patches:
 	    patch-hotspot_test_compiler_native_TestDirtyInt.sh

 Log Message:
 Update to 1.8.112

 * Include a patch from PR pkg/51221

 Changelog:
 security-libs/java.security
 SunPKCS11 Provider no longer offering SecureRandom by default
 SecureRandom.PKCS11 from the SunPKCS11 Provider is disabled by default on Solaris because the native PKCS11 implementation has poor performance and is not recommended. If your application requires SecureRandom.PKCS11, you can re-enable it by removing "SecureRandom" from the disabledMechanisms list in conf/security/sunpkcs11-solaris.cfg

 Performance improvements have also been made in the java.security.SecureRandom class. Improvements in the JDK implementation have allowed for synchronization to be removed from the java.security.SecureRandom.nextBytes(byte[] bytes) method.
 See JDK-8098581

 Fix following security bugs:
 CVE-2016-5556
 CVE-2016-5582
 CVE-2016-5573
 CVE-2016-5597
 CVE-2016-5554
 CVE-2016-5542


 To generate a diff of this commit:
 cvs rdiff -u -r1.41 -r1.42 pkgsrc/lang/openjdk8/Makefile
 cvs rdiff -u -r1.40 -r1.41 pkgsrc/lang/openjdk8/distinfo
 cvs rdiff -u -r1.10 -r1.11 \
     pkgsrc/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh
 cvs rdiff -u -r1.1 -r0 \
     pkgsrc/lang/openjdk8/patches/patch-hotspot_test_compiler_native_TestDirtyInt.sh
 cvs rdiff -u -r1.2 -r1.3 \
     pkgsrc/lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_NetworkInterface.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 19 Nov 2016 17:56:16 +0000
State-Changed-Why:
Is this fixed now?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 25 May 2017 06:10:04 +0000
State-Changed-Why:
Feedback timeout, and it looks like it's fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.