Date: Fri, 03 May 2019 16:14:02 +0000 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 237208] java/openjdk11: port to powerpc64 Message-ID: <bug-237208-8522-7nbBNbLACz@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-237208-8522@https.bugs.freebsd.org/bugzilla/> References: <bug-237208-8522@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237208 --- Comment #42 from Curtis Hamilton <hamiltcl@verizon.net> --- (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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237208-8522-7nbBNbLACz>