From owner-freebsd-java@freebsd.org Fri May 3 16:14:06 2019 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1759E1594830 for ; Fri, 3 May 2019 16:14:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A3C9F77157 for ; Fri, 3 May 2019 16:14:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6126A159482F; Fri, 3 May 2019 16:14:05 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D54A159482C for ; Fri, 3 May 2019 16:14:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDB9577153 for ; Fri, 3 May 2019 16:14:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 15CFD1093C for ; Fri, 3 May 2019 16:14:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x43GE3DE028174 for ; Fri, 3 May 2019 16:14:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x43GE3em028173 for java@FreeBSD.org; Fri, 3 May 2019 16:14:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 237208] java/openjdk11: port to powerpc64 Date: Fri, 03 May 2019 16:14:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hamiltcl@verizon.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2019 16:14:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237208 --- Comment #42 from Curtis Hamilton --- (In reply to Francis Little from comment #41) I encountered the following error during my build: Compiling management_ext.c (for libmanagement_ext.so) In file included from /usr/ports/tmp/openjdk-jdk11u/src/jdk.management/bsd/native/libmanagement_e= xt/UnixOperatingSystem.c:29: /usr/include/sys/sysctl.h:1047:25: error: unknown type name 'u_int'; did you mean 'jint'? int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); ^~~~~ jint cd /usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-server-release/support= /modules_libs/jdk.management.agent && /usr/bin/objcopy --add-gnu-debuglink=3D/usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-= server-release/support/modules_libs/jdk.management.agent/libmanagement_agen= t.debuginfo /usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-server-release/support= /modules_libs/jdk.management.agent/libmanagement_agent.so /usr/ports/tmp/openjdk-jdk11u/src/jdk.management/bsd/native/libmanagement_e= xt/UnixOperatingSystem.c: In function 'Java_com_sun_management_internal_OperatingSystemImpl_getProcessCpuLoad0': /usr/ports/tmp/openjdk-jdk11u/src/jdk.management/bsd/native/libmanagement_e= xt/UnixOperatingSystem.c:111:9: warning: implicit declaration of function 'sysctl'; did you mean 'syscall'? [-Wimplicit-function-declaration] if (sysctl(mib, 4, &kp, &len, NULL, 0) =3D=3D -1) { ^~~~~~ syscall /usr/bin/strip -g /usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-server-release/support= /modules_libs/jdk.management.agent/libmanagement_agent.so gmake[3]: *** [Lib-jdk.management.gmk:49:=20 To get pass this I added "sys/types.h" to UnixOperatingSystem.c, before sys/sysctl.h. Not sure this is the right fix, but it lets me get pass this error to completion. I configured using '--with-boot-jdk=3D/usr/local/openjdk11 --disable-ccache --enable-dtrace=3Dno --disable-warnings-as-errors --disable-hotspot-gtest --with-alsa=3D/usr/local --with-cups=3D/usr/local --with-fontconfig=3D/usr/= local --with-freetype=3Dsystem --with-freetype-include=3D/usr/local/include/freet= ype2 --with-freetype-lib=3D/usr/local/lib --with-milestone=3Dfcs --with-libjpeg= =3Dsystem --with-giflib=3Dsystem --with-libpng=3Dsystem --with-zlib=3Dsystem --with-l= cms=3Dsystem --with-toolchain-type=3Dgcc --x-includes=3D/usr/local/include --x-libraries=3D/usr/local/lib --with-debug-level=3Drelease' --=20 You are receiving this mail because: You are the assignee for the bug.=