Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/jpcap.spec'], chrootPath='/var/lib/mock/fedora-rawhide-ppc64le-1672288615.047047/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n98izza9:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n98izza9:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8b650c972ffc4d42842371f0cef425c8', '-D', '/var/lib/mock/fedora-rawhide-ppc64le-1672288615.047047/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n98izza9:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/jpcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1660348800 Wrote: /builddir/build/SRPMS/jpcap-0.7-34.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/jpcap.spec'], chrootPath='/var/lib/mock/fedora-rawhide-ppc64le-1672288615.047047/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n98izza9:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n98izza9:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '0b986cf9350e43689a09492af0e2a0ed', '-D', '/var/lib/mock/fedora-rawhide-ppc64le-1672288615.047047/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n98izza9:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/jpcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1660348800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CVQoYO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jpcap-0.7 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/jpcap-0.7.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd jpcap-0.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's:System.loadLibrary("jpcap"):System.load("/usr/lib64/jpcap/libjpcap.so"):g' src/java/jpcap/JpcapWriter.java + sed -i 's:System.loadLibrary("jpcap"):System.load("/usr/lib64/jpcap/libjpcap.so"):g' src/java/jpcap/JpcapCaptor.java + rm -rf lib/Jpcap.dll lib/jpcap.jar + dos2unix ChangeLog dos2unix: converting file ChangeLog to Unix format... + dos2unix README dos2unix: converting file README to Unix format... + dos2unix doc/javadoc/package-list dos2unix: converting file doc/javadoc/package-list to Unix format... + dos2unix doc/javadoc/stylesheet.css dos2unix: converting file doc/javadoc/stylesheet.css to Unix format... + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.k1abNZ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd jpcap-0.7 + export JAVA_HOME=/usr/lib/jvm/java-17-openjdk + JAVA_HOME=/usr/lib/jvm/java-17-openjdk + set JAVA_HOME=/usr/lib/jvm/java-17-openjdk + mkdir bin + JAVA_HOME=/usr/lib/jvm/java-17-openjdk + ant jar Buildfile: /builddir/build/BUILD/jpcap-0.7/build.xml compile: [javac] /builddir/build/BUILD/jpcap-0.7/build.xml:29: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 16 source files to /builddir/build/BUILD/jpcap-0.7/bin [javac] Note: /builddir/build/BUILD/jpcap-0.7/src/java/jpcap/packet/IPPacket.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. jar: [jar] Building jar: /builddir/build/BUILD/jpcap-0.7/lib/jpcap.jar BUILD SUCCESSFUL Total time: 1 second + cd src/c + make clean rm libjpcap.so rm: cannot remove 'libjpcap.so': No such file or directory make: [Makefile:56: clean] Error 1 (ignored) + make -j5 'CC=gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -shared -L. -I/usr/lib/jvm/java-17-openjdk/include -I/usr/lib/jvm/java-17-openjdk/include/linux\ -I/usr/include\ JpcapCaptor.c JpcapSender.c JpcapWriter.c\ packet_arp.c packet_datalink.c packet_icmp.c packet_ip.c\ packet_ipv6.c packet_tcp.c packet_udp.c\ -o libjpcap.so -lpcap JpcapCaptor.c:64: warning: ignoring '#pragma export on' [-Wunknown-pragmas] 64 | #pragma export on | JpcapCaptor.c:66: warning: ignoring '#pragma export reset' [-Wunknown-pragmas] 66 | #pragma export reset | JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_getDeviceList': JpcapCaptor.c:286:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 286 | close(sd); | ^~~~~ | pclose JpcapCaptor.c:288:72: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 288 | (*env)->SetByteArrayRegion(env,mac,0,6,ifr.ifr_ifru.ifru_hwaddr.sa_data); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | char * JpcapCaptor.c:288:72: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' JpcapCaptor.c:190:16: warning: unused variable 'buf' [-Wunused-variable] 190 | u_char buf[6]; | ^~~ JpcapCaptor.c:173:21: warning: unused variable 'k' [-Wunused-variable] 173 | int i=0,j=0,k=0; | ^ JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_processPacket': JpcapCaptor.c:449:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 449 | pkt_cnt=pcap_dispatch(pcds[id],cnt,dispatcher_handler,(u_char *)id); | ^ JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_loopPacket': JpcapCaptor.c:468:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 468 | pkt_cnt=pcap_loop(pcds[id],cnt,dispatcher_handler,(u_char *)id); | ^ JpcapCaptor.c: In function 'dispatcher_handler': JpcapCaptor.c:682:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 682 | int ID=(int)id; | ^ JpcapCaptor.c: In function 'get_packet': JpcapCaptor.c:894:51: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 894 | (*env)->SetByteArrayRegion(env,dataArray,0,hlen,orig_data); | ^~~~~~~~~ | | | u_char * {aka unsigned char *} JpcapCaptor.c:894:51: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} JpcapCaptor.c:900:60: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 900 | (*env)->SetByteArrayRegion(env,dataArray,0,(jsize)clen,data); | ^~~~ | | | u_char * {aka unsigned char *} JpcapCaptor.c:900:60: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} JpcapCaptor.c:789:5: warning: 'tproto' may be used uninitialized [-Wmaybe-uninitialized] 789 | if((tproto==IPPROTO_TCP && clenGetByteArrayRegion' differ in signedness [-Wpointer-sign] 309 | length-IPv4HDRLEN,pointer); | ^~~~~~~ | | | char * JpcapSender.c:309:62: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' JpcapSender.c:315:54: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 315 | length-40,pointer); | ^~~~~~~ | | | char * JpcapSender.c:315:54: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' JpcapSender.c:329:36: warning: pointer targets in passing argument 3 of 'set_arp' differ in signedness [-Wpointer-sign] 329 | length+=set_arp(env,packet,pointer); | ^~~~~~~ | | | char * JpcapSender.c:53:48: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 53 | int set_arp(JNIEnv *env,jobject packet,u_char *pointer); | ~~~~~~~~^~~~~~~ JpcapSender.c:332:51: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 332 | length,pointer); | ^~~~~~~ | | | char * JpcapSender.c:332:51: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' JpcapSender.c: In function 'Java_jpcap_JpcapSender_nativeCloseRawSocket': JpcapSender.c:403:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 403 | close(soc_num); | ^~~~~ | pclose JpcapWriter.c:10: warning: ignoring '#pragma export on' [-Wunknown-pragmas] 10 | #pragma export on | JpcapWriter.c:12: warning: ignoring '#pragma export reset' [-Wunknown-pragmas] 12 | #pragma export reset | JpcapWriter.c: In function 'Java_jpcap_JpcapWriter_close': JpcapWriter.c:47:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 47 | free(pcdd); | ^~~~ JpcapWriter.c:15:1: note: include '' or provide a declaration of 'free' 14 | #include"Jpcap_sub.h" +++ |+#include 15 | JpcapWriter.c:47:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 47 | free(pcdd); | ^~~~ JpcapWriter.c:47:17: note: include '' or provide a declaration of 'free' JpcapWriter.c: In function 'Java_jpcap_JpcapWriter_writePacket': JpcapWriter.c:71:54: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 71 | (*env)->GetByteArrayRegion(env,header,0,hlen,buf); | ^~~ | | | char * JpcapWriter.c:71:54: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' JpcapWriter.c:72:52: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 72 | (*env)->GetByteArrayRegion(env,body,0,blen,(char *)(buf+hlen)); | ^~~~~~~~~~~~~~~~~~ | | | char * JpcapWriter.c:72:52: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' JpcapWriter.c:74:38: warning: pointer targets in passing argument 3 of 'pcap_dump' differ in signedness [-Wpointer-sign] 74 | pcap_dump((u_char *)pdt,&hdr,buf); | ^~~ | | | char * In file included from /usr/include/pcap.h:43, from JpcapWriter.c:1: /usr/include/pcap/pcap.h:742:65: note: expected 'const u_char *' {aka 'const unsigned char *'} but argument is of type 'char *' 742 | PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); | ^~~~~~~~~~~~~~ packet_arp.c: In function 'analyze_arp': packet_arp.c:35:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 35 | (*env)->SetByteArrayRegion(env,sha,0,hl,(char *)(data+sizeof(struct arphdr))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_arp.c:35:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_arp.c:37:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 37 | (*env)->SetByteArrayRegion(env,spa,0,pl,(char *)(data+sizeof(struct arphdr)+hl)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_arp.c:37:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_arp.c:39:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 39 | (*env)->SetByteArrayRegion(env,tha,0,hl,(char *)(data+sizeof(struct arphdr)+hl+pl)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_arp.c:39:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_arp.c:41:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 41 | (*env)->SetByteArrayRegion(env,tpa,0,pl,(char *)(data+sizeof(struct arphdr)+hl+pl+hl)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_arp.c:41:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_arp.c: In function 'set_arp': packet_arp.c:69:29: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 69 | 0,arp->arp_hln,arp->arp_sha); | ~~~^~~~~~~~~ | | | uint8_t * {aka unsigned char *} packet_arp.c:69:29: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} packet_arp.c:72:29: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 72 | 0,arp->arp_pln,arp->arp_spa); | ~~~^~~~~~~~~ | | | uint8_t * {aka unsigned char *} packet_arp.c:72:29: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} packet_arp.c:75:29: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 75 | 0,arp->arp_hln,arp->arp_tha); | ~~~^~~~~~~~~ | | | uint8_t * {aka unsigned char *} packet_arp.c:75:29: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} packet_arp.c:78:29: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 78 | 0,arp->arp_pln,arp->arp_tpa); | ~~~^~~~~~~~~ | | | uint8_t * {aka unsigned char *} packet_arp.c:78:29: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} packet_datalink.c: In function 'set_ether': packet_datalink.c:59:56: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 59 | (*env)->GetByteArrayRegion(env,src,0,6,(char *)ðer_hdr->ether_src); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_datalink.c:59:56: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' packet_datalink.c:60:56: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 60 | (*env)->GetByteArrayRegion(env,dst,0,6,(char *)ðer_hdr->ether_dest); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_datalink.c:60:56: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' packet_icmp.c: In function 'analyze_icmp': packet_icmp.c:47:36: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 47 | (char *)&icmp_pkt->icmp_gwaddr); | ^ | | | char * packet_icmp.c:47:36: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_icmp.c:83:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 83 | prefs[i]=(int)(icmp_pkt->icmp_data+8+(i<<3)+4); | ^ packet_icmp.c: In function 'set_icmp': packet_icmp.c:136:62: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 136 | (*env)->GetByteArrayRegion(env,data,0,length,(u_char *)icmp->icmp_data); | ^ | | | u_char * {aka unsigned char *} packet_icmp.c:136:62: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} packet_icmp.c:143:45: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 143 | (*env)->GetByteArrayRegion(env,addr,0,4,(char *)&icmp->icmp_gwaddr); | ^ | | | char * packet_icmp.c:143:45: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' packet_icmp.c:151:37: warning: pointer targets in passing argument 3 of 'set_ip' differ in signedness [-Wpointer-sign] 151 | set_ip(env,ippacket,(u_char *)&icmp->icmp_ip); | ^ | | | u_char * {aka unsigned char *} packet_icmp.c:19:46: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 19 | void set_ip(JNIEnv *env,jobject packet,char *pointer); | ~~~~~~^~~~~~~ packet_icmp.c: In function 'analyze_icmp': packet_icmp.c:84:10: warning: 'addr' may be used uninitialized [-Wmaybe-uninitialized] 84 | (*env)->SetObjectArrayElement(env,addrArray,i,addr); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet_icmp.c:25:14: note: 'addr' was declared here 25 | jbyteArray addr; | ^~~~ packet_ip.c: In function 'analyze_ip': packet_ip.c:39:47: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 39 | (*env)->SetByteArrayRegion(env,src_addr,0,4,(char *)&ip_pkt->ip_src); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_ip.c:39:47: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_ip.c:40:47: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 40 | (*env)->SetByteArrayRegion(env,dst_addr,0,4,(char *)&ip_pkt->ip_dst); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_ip.c:40:47: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_ip.c:67:70: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 67 | (*env)->SetByteArrayRegion(env,dataArray,0,hdrlen-IPv4HDRLEN,data+IPv4HDRLEN); packet_ip.c:67:70: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} packet_ip.c: In function 'set_ip': packet_ip.c:97:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 97 | (*env)->GetByteArrayRegion(env,src,0,4,(char *)&ip->ip_src); | ^~~~~~~~~~~~~~~~~~~ | | | char * packet_ip.c:97:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' packet_ip.c:98:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 98 | (*env)->GetByteArrayRegion(env,dst,0,4,(char *)&ip->ip_dst); | ^~~~~~~~~~~~~~~~~~~ | | | char * packet_ip.c:98:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' packet_ipv6.c: In function 'analyze_ipv6': packet_ipv6.c:74:36: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 74 | (char *)&v6_pkt->ip6_src); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_ipv6.c:74:36: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_ipv6.c:76:36: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 76 | (char *)&v6_pkt->ip6_dst); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_ipv6.c:76:36: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' packet_ipv6.c: In function 'set_ipv6': packet_ipv6.c:196:49: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 196 | (*env)->GetByteArrayRegion(env,src,0,16,(char *)&v6_pkt->ip6_src); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_ipv6.c:196:49: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' packet_ipv6.c:197:49: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 197 | (*env)->GetByteArrayRegion(env,dst,0,16,(char *)&v6_pkt->ip6_dst); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packet_ipv6.c:197:49: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' packet_tcp.c: In function 'analyze_tcp': packet_tcp.c:55:69: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] 55 | (*env)->SetByteArrayRegion(env,dataArray,0,hdrlen-TCPHDRLEN,data+TCPHDRLEN); packet_tcp.c:55:69: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} packet_tcp.c: In function 'set_tcp': packet_tcp.c:101:30: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 101 | (u_char *)(pointer+TCPHDRLEN)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_char * {aka unsigned char *} packet_tcp.c:101:30: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} packet_udp.c: In function 'set_udp': packet_udp.c:52:30: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] 52 | (u_char *)(pointer+UDPHDRLEN)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_char * {aka unsigned char *} packet_udp.c:52:30: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.uI16HX + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le '!=' / ']' + rm -rf /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le ++ dirname /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd jpcap-0.7 + rm -rf /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le + install -D src/c/libjpcap.so /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/lib64/jpcap/libjpcap.so + install -D lib/jpcap.jar /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/lib64/jpcap/jpcap.jar + mkdir -p /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/share/javadoc/jpcap + cp -rp doc/javadoc/ /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/share/javadoc/jpcap + /usr/bin/find-debuginfo -j5 --strict-build-id -m -i --build-id-seed 0.7-34.fc38 --unique-debug-suffix -0.7-34.fc38.ppc64le --unique-debug-src-base jpcap-0.7-34.fc38.ppc64le --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/jpcap-0.7 extracting debug info from /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/lib64/jpcap/libjpcap.so original debug info size: 256kB, size after compression: 192kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 135 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: jpcap-0.7-34.fc38.ppc64le Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Aa83xD + umask 022 + cd /builddir/build/BUILD + cd jpcap-0.7 + DOCDIR=/builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/share/doc/jpcap + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/share/doc/jpcap + cp -pr README /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/share/doc/jpcap + cp -pr COPYING /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/share/doc/jpcap + cp -pr ChangeLog /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le/usr/share/doc/jpcap + RPM_EC=0 ++ jobs -p + exit 0 Provides: jpcap = 0.7-34.fc38 jpcap(ppc-64) = 0.7-34.fc38 libjpcap.so()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.32)(64bit) libpcap.so.1()(64bit) rtld(GNU_HASH) Processing files: jpcap-javadoc-0.7-34.fc38.ppc64le Provides: jpcap-javadoc = 0.7-34.fc38 jpcap-javadoc(ppc-64) = 0.7-34.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: jpcap-debugsource-0.7-34.fc38.ppc64le Provides: jpcap-debugsource = 0.7-34.fc38 jpcap-debugsource(ppc-64) = 0.7-34.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: jpcap-debuginfo-0.7-34.fc38.ppc64le Provides: debuginfo(build-id) = bb88f0a686f4a54ad4e376fdaf3bab2fb8c20217 jpcap-debuginfo = 0.7-34.fc38 jpcap-debuginfo(ppc-64) = 0.7-34.fc38 libjpcap.so-0.7-34.fc38.ppc64le.debug()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: jpcap-debugsource(ppc-64) = 0.7-34.fc38 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le Wrote: /builddir/build/RPMS/jpcap-debugsource-0.7-34.fc38.ppc64le.rpm Wrote: /builddir/build/RPMS/jpcap-debuginfo-0.7-34.fc38.ppc64le.rpm Wrote: /builddir/build/RPMS/jpcap-0.7-34.fc38.ppc64le.rpm Wrote: /builddir/build/RPMS/jpcap-javadoc-0.7-34.fc38.ppc64le.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.5TAZwX + umask 022 + cd /builddir/build/BUILD + cd jpcap-0.7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/jpcap-0.7-34.fc38.ppc64le + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.x1s9lV + umask 022 + cd /builddir/build/BUILD + rm -rf jpcap-0.7 jpcap-0.7.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0