[Bug 237208] java/openjdk11: port to powerpc64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 3 16:14:04 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237208

--- Comment #42 from Curtis Hamilton <hamiltcl at 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_ext/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=/usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-server-release/support/modules_libs/jdk.management.agent/libmanagement_agent.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_ext/UnixOperatingSystem.c:
In function
'Java_com_sun_management_internal_OperatingSystemImpl_getProcessCpuLoad0':
/usr/ports/tmp/openjdk-jdk11u/src/jdk.management/bsd/native/libmanagement_ext/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) == -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: 

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=/usr/local/openjdk11 --disable-ccache
--enable-dtrace=no --disable-warnings-as-errors --disable-hotspot-gtest
--with-alsa=/usr/local --with-cups=/usr/local --with-fontconfig=/usr/local
--with-freetype=system --with-freetype-include=/usr/local/include/freetype2
--with-freetype-lib=/usr/local/lib --with-milestone=fcs --with-libjpeg=system
--with-giflib=system --with-libpng=system --with-zlib=system --with-lcms=system
--with-toolchain-type=gcc --x-includes=/usr/local/include
--x-libraries=/usr/local/lib --with-debug-level=release'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ppc mailing list