Skip site navigation (1)Skip section navigation (2)
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=237208

--- 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_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 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>