D: [iurt_root_command] chroot
Installing /home/pterjan/rpmbuild/SRPMS/libmatthew-java-0.8-16.mga9.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.wSFlAE
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD
+ rm -rf libmatthew-java-0.8
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/libmatthew-java-0.8.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libmatthew-java-0.8
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (install_doc.patch):'
Patch #0 (install_doc.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file Makefile
Hunk #1 succeeded at 139 (offset 5 lines).
+ sed -e 's|@JNIPATH@|/usr/lib64/libmatthew-java|' /home/pterjan/rpmbuild/SOURCES/native-library-paths.patch
+ patch -p1
patching file cx/ath/matthew/cgi/CGI.java
patching file cx/ath/matthew/unix/UnixServerSocket.java
patching file cx/ath/matthew/unix/UnixSocket.java
+ echo 'Patch #2 (classpath_fix.patch):'
Patch #2 (classpath_fix.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file Makefile
Hunk #1 succeeded at 62 (offset 5 lines).
Hunk #2 succeeded at 92 (offset 5 lines).
+ echo 'Patch #3 (libmatthew-java-0.8-jdk10.patch):'
Patch #3 (libmatthew-java-0.8-jdk10.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file cgi-java.c
patching file Makefile
Hunk #4 succeeded at 76 (offset 1 line).
patching file unix-java.c
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.0TWLSI
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD
+ cd libmatthew-java-0.8
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
+ JAVA_HOME=/usr/lib/jvm/java-11-openjdk
+ make -j8 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' 'GCJFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' 'LDFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' 'PPFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' 'JVERCFLAGS=-source 8' 'JAVADOC=javadoc -Xdoclint:none' -j1
mkdir -p classes
make .disabledebug
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libmatthew-java-0.8'
mkdir -p classes
cpp -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -C -P -DDEBUGSETTING=false < cx/ath/matthew/debug/Debug.jpp > cx/ath/matthew/debug/Debug.java
javac -source 8  -cp classes -d classes cx/ath/matthew/debug/Debug.java cx/ath/matthew/utils/Hexdump.java
warning: [options] bootstrap class path not set in conjunction with -source 8
Note: cx/ath/matthew/debug/Debug.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
rm -f .enabledebug
touch .disabledebug
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libmatthew-java-0.8'
javac -source 8  -d classes -h . -cp classes cx/ath/matthew/unix/testserver.java cx/ath/matthew/unix/NotConnectedException.java cx/ath/matthew/unix/testclient.java cx/ath/matthew/unix/USInputStream.java cx/ath/matthew/unix/UnixSocket.java cx/ath/matthew/unix/UnixServerSocket.java cx/ath/matthew/unix/USOutputStream.java cx/ath/matthew/unix/UnixSocketAddress.java cx/ath/matthew/unix/UnixIOException.java cx/ath/matthew/io/test.java cx/ath/matthew/io/test2.java cx/ath/matthew/io/ExecOutputStream.java cx/ath/matthew/io/test3.java cx/ath/matthew/io/InOutCopier.java cx/ath/matthew/io/TeeInputStream.java cx/ath/matthew/io/TeeOutputStream.java cx/ath/matthew/io/DOMPrinter.java cx/ath/matthew/io/ExecInputStream.java cx/ath/matthew/cgi/DisplayField.java cx/ath/matthew/cgi/MultipleDropDown.java cx/ath/matthew/cgi/testcgi.java cx/ath/matthew/cgi/CGI.java cx/ath/matthew/cgi/HTMLForm.java cx/ath/matthew/cgi/CheckBox.java cx/ath/matthew/cgi/SubmitButton.java cx/ath/matthew/cgi/Password.java cx/ath/matthew/cgi/CGIInvalidContentFormatException.java cx/ath/matthew/cgi/CGITools.java cx/ath/matthew/cgi/Field.java cx/ath/matthew/cgi/HiddenField.java cx/ath/matthew/cgi/CGIErrorHandler.java cx/ath/matthew/cgi/CGIHeaderSentException.java cx/ath/matthew/cgi/Radio.java cx/ath/matthew/cgi/TextField.java cx/ath/matthew/cgi/DefaultErrorHandler.java cx/ath/matthew/cgi/NewTable.java cx/ath/matthew/cgi/DropDown.java cx/ath/matthew/cgi/TextArea.java cx/ath/matthew/utils/Hexdump.java
warning: [options] bootstrap class path not set in conjunction with -source 8
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
touch .classes
echo > Manifest
(cd classes; jar cfm ../unix-0.5.jar ../Manifest cx/ath/matthew/unix/*class)
(cd classes; jar cf ../cgi-0.6.jar cx/ath/matthew/cgi/*class)
make .enabledebug
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libmatthew-java-0.8'
mkdir -p classes
cpp -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -C -P -DDEBUGSETTING=true < cx/ath/matthew/debug/Debug.jpp > cx/ath/matthew/debug/Debug.java
javac -source 8  -cp classes -d classes cx/ath/matthew/debug/Debug.java cx/ath/matthew/utils/Hexdump.java
warning: [options] bootstrap class path not set in conjunction with -source 8
Note: cx/ath/matthew/debug/Debug.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
rm -f .disabledebug
touch .enabledebug
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libmatthew-java-0.8'
#echo "Class-Path: /usr/local/share/java/hexdump.jar" > Manifest
echo > Manifest
(cd classes;jar cfm ../debug-enable-1.1.jar ../Manifest cx/ath/matthew/debug/*.class)
make .disabledebug
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libmatthew-java-0.8'
mkdir -p classes
cpp -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -C -P -DDEBUGSETTING=false < cx/ath/matthew/debug/Debug.jpp > cx/ath/matthew/debug/Debug.java
javac -source 8  -cp classes -d classes cx/ath/matthew/debug/Debug.java cx/ath/matthew/utils/Hexdump.java
warning: [options] bootstrap class path not set in conjunction with -source 8
Note: cx/ath/matthew/debug/Debug.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
rm -f .enabledebug
touch .disabledebug
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libmatthew-java-0.8'
#echo "Class-Path: /usr/local/share/java/hexdump.jar" > Manifest
echo > Manifest
(cd classes;jar cfm ../debug-disable-1.1.jar ../Manifest cx/ath/matthew/debug/*.class)
(cd classes; jar cf ../io-0.1.jar cx/ath/matthew/io/*class)
(cd classes; jar cf ../hexdump-0.2.jar cx/ath/matthew/utils/Hexdump.class)
cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -std=c99 -fpic -fno-stack-protector -I/usr/lib/jvm/java-11-openjdk/include -I/usr/lib/jvm/java-11-openjdk/include/linux -c -o cgi-java.o cgi-java.c
cgi-java.c:28:10: fatal error: jni.h: No such file or directory
   28 | #include <jni.h>
      |          ^~~~~~~
compilation terminated.
make: *** [Makefile:76: cgi-java.o] Error 1
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.0TWLSI (%build)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.0TWLSI (%build)
I: [iurt_root_command] ERROR: chroot