Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/jpcap.spec'], chrootPath='/var/lib/mock/f31-build-55966-28156/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548979200 Wrote: /builddir/build/SRPMS/jpcap-0.7-24.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/jpcap.spec'], chrootPath='/var/lib/mock/f31-build-55966-28156/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548979200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.RbqFAO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jpcap-0.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/jpcap-0.7.tar.gz + /usr/bin/tar -xof - + 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 BUILDSTDERR: dos2unix: converting file ChangeLog to Unix format... + dos2unix README BUILDSTDERR: dos2unix: converting file README to Unix format... + dos2unix doc/javadoc/package-list BUILDSTDERR: dos2unix: converting file doc/javadoc/package-list to Unix format... + dos2unix doc/javadoc/stylesheet.css BUILDSTDERR: dos2unix: converting file doc/javadoc/stylesheet.css to Unix format... + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NRNgwO + umask 022 + cd /builddir/build/BUILD + cd jpcap-0.7 + export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk + JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk + set JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk + mkdir bin + JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk + ant jar + cd src/c + make clean BUILDSTDERR: rm: cannot remove 'libjpcap.so': No such file or directory BUILDSTDERR: make: [Makefile:56: clean] Error 1 (ignored) + make -j4 'CC=gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC' BUILDSTDERR: JpcapCaptor.c:64: warning: ignoring #pragma export on [-Wunknown-pragmas] BUILDSTDERR: 64 | #pragma export on BUILDSTDERR: | BUILDSTDERR: JpcapCaptor.c:66: warning: ignoring #pragma export reset [-Wunknown-pragmas] BUILDSTDERR: 66 | #pragma export reset BUILDSTDERR: | BUILDSTDERR: JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_getDeviceList': BUILDSTDERR: JpcapCaptor.c:286:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] BUILDSTDERR: 286 | close(sd); BUILDSTDERR: | ^~~~~ BUILDSTDERR: | pclose BUILDSTDERR: JpcapCaptor.c:288:65: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 288 | (*env)->SetByteArrayRegion(env,mac,0,6,ifr.ifr_ifru.ifru_hwaddr.sa_data); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: JpcapCaptor.c:288:65: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: JpcapCaptor.c:190:9: warning: unused variable 'buf' [-Wunused-variable] BUILDSTDERR: 190 | u_char buf[6]; BUILDSTDERR: | ^~~ BUILDSTDERR: JpcapCaptor.c:173:14: warning: unused variable 'k' [-Wunused-variable] BUILDSTDERR: 173 | int i=0,j=0,k=0; BUILDSTDERR: | ^ BUILDSTDERR: JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_processPacket': BUILDSTDERR: JpcapCaptor.c:449:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: 449 | pkt_cnt=pcap_dispatch(pcds[id],cnt,dispatcher_handler,(u_char *)id); BUILDSTDERR: | ^ BUILDSTDERR: JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_loopPacket': BUILDSTDERR: JpcapCaptor.c:468:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: 468 | pkt_cnt=pcap_loop(pcds[id],cnt,dispatcher_handler,(u_char *)id); BUILDSTDERR: | ^ BUILDSTDERR: JpcapCaptor.c: In function 'dispatcher_handler': BUILDSTDERR: JpcapCaptor.c:682:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: 682 | int ID=(int)id; BUILDSTDERR: | ^ BUILDSTDERR: JpcapCaptor.c: In function 'get_packet': BUILDSTDERR: JpcapCaptor.c:894:51: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 894 | (*env)->SetByteArrayRegion(env,dataArray,0,hlen,orig_data); BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | u_char * {aka unsigned char *} BUILDSTDERR: JpcapCaptor.c:894:51: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} BUILDSTDERR: JpcapCaptor.c:900:60: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 900 | (*env)->SetByteArrayRegion(env,dataArray,0,(jsize)clen,data); BUILDSTDERR: | ^~~~ BUILDSTDERR: | | BUILDSTDERR: | u_char * {aka unsigned char *} BUILDSTDERR: JpcapCaptor.c:900:60: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from JpcapCaptor.c:33: BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'Java_jpcap_JpcapCaptor_getDeviceList' at JpcapCaptor.c:281:5: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: JpcapCaptor.c: In function 'get_packet': BUILDSTDERR: JpcapCaptor.c:789:5: warning: 'tproto' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 789 | if((tproto==IPPROTO_TCP && clenGetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 309 | length-IPv4HDRLEN,pointer); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: JpcapSender.c:309:27: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: JpcapSender.c:315:19: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 315 | length-40,pointer); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: JpcapSender.c:315:19: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: JpcapSender.c:329:29: warning: pointer targets in passing argument 3 of 'set_arp' differ in signedness [-Wpointer-sign] BUILDSTDERR: 329 | length+=set_arp(env,packet,pointer); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: JpcapSender.c:53:48: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' BUILDSTDERR: 53 | int set_arp(JNIEnv *env,jobject packet,u_char *pointer); BUILDSTDERR: | ~~~~~~~~^~~~~~~ BUILDSTDERR: JpcapSender.c:332:16: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 332 | length,pointer); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: JpcapSender.c:332:16: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: JpcapSender.c: In function 'Java_jpcap_JpcapSender_nativeCloseRawSocket': BUILDSTDERR: JpcapSender.c:403:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] BUILDSTDERR: 403 | close(soc_num); BUILDSTDERR: | ^~~~~ BUILDSTDERR: | pclose BUILDSTDERR: JpcapWriter.c:10: warning: ignoring #pragma export on [-Wunknown-pragmas] BUILDSTDERR: 10 | #pragma export on BUILDSTDERR: | BUILDSTDERR: JpcapWriter.c:12: warning: ignoring #pragma export reset [-Wunknown-pragmas] BUILDSTDERR: 12 | #pragma export reset BUILDSTDERR: | BUILDSTDERR: JpcapWriter.c: In function 'Java_jpcap_JpcapWriter_close': BUILDSTDERR: JpcapWriter.c:47:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] BUILDSTDERR: 47 | free(pcdd); BUILDSTDERR: | ^~~~ BUILDSTDERR: JpcapWriter.c:47:3: warning: incompatible implicit declaration of built-in function 'free' BUILDSTDERR: JpcapWriter.c:15:1: note: include '' or provide a declaration of 'free' BUILDSTDERR: 14 | #include"Jpcap_sub.h" BUILDSTDERR: +++ |+#include BUILDSTDERR: 15 | BUILDSTDERR: JpcapWriter.c: In function 'Java_jpcap_JpcapWriter_writePacket': BUILDSTDERR: JpcapWriter.c:71:47: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 71 | (*env)->GetByteArrayRegion(env,header,0,hlen,buf); BUILDSTDERR: | ^~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: JpcapWriter.c:71:47: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: JpcapWriter.c:72:45: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 72 | (*env)->GetByteArrayRegion(env,body,0,blen,(char *)(buf+hlen)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: JpcapWriter.c:72:45: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: JpcapWriter.c:74:31: warning: pointer targets in passing argument 3 of 'pcap_dump' differ in signedness [-Wpointer-sign] BUILDSTDERR: 74 | pcap_dump((u_char *)pdt,&hdr,buf); BUILDSTDERR: | ^~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from JpcapWriter.c:1: BUILDSTDERR: /usr/include/pcap/pcap.h:493:63: note: expected 'const u_char *' {aka 'const unsigned char *'} but argument is of type 'char *' BUILDSTDERR: 493 | PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: packet_arp.c: In function 'analyze_arp': BUILDSTDERR: packet_arp.c:35:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 35 | (*env)->SetByteArrayRegion(env,sha,0,hl,(char *)(data+sizeof(struct arphdr))); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_arp.c:35:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_arp.c:37:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 37 | (*env)->SetByteArrayRegion(env,spa,0,pl,(char *)(data+sizeof(struct arphdr)+hl)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_arp.c:37:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_arp.c:39:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 39 | (*env)->SetByteArrayRegion(env,tha,0,hl,(char *)(data+sizeof(struct arphdr)+hl+pl)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_arp.c:39:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_arp.c:41:43: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 41 | (*env)->SetByteArrayRegion(env,tpa,0,pl,(char *)(data+sizeof(struct arphdr)+hl+pl+hl)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_arp.c:41:43: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_arp.c: In function 'set_arp': BUILDSTDERR: packet_arp.c:69:22: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 69 | 0,arp->arp_hln,arp->arp_sha); BUILDSTDERR: | ~~~^~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | uint8_t * {aka unsigned char *} BUILDSTDERR: packet_arp.c:69:22: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} BUILDSTDERR: packet_arp.c:72:22: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 72 | 0,arp->arp_pln,arp->arp_spa); BUILDSTDERR: | ~~~^~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | uint8_t * {aka unsigned char *} BUILDSTDERR: packet_arp.c:72:22: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} BUILDSTDERR: packet_arp.c:75:22: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 75 | 0,arp->arp_hln,arp->arp_tha); BUILDSTDERR: | ~~~^~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | uint8_t * {aka unsigned char *} BUILDSTDERR: packet_arp.c:75:22: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} BUILDSTDERR: packet_arp.c:78:22: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 78 | 0,arp->arp_pln,arp->arp_tpa); BUILDSTDERR: | ~~~^~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | uint8_t * {aka unsigned char *} BUILDSTDERR: packet_arp.c:78:22: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'} BUILDSTDERR: packet_datalink.c: In function 'set_ether': BUILDSTDERR: packet_datalink.c:59:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 59 | (*env)->GetByteArrayRegion(env,src,0,6,(char *)ðer_hdr->ether_src); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_datalink.c:59:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_datalink.c:60:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 60 | (*env)->GetByteArrayRegion(env,dst,0,6,(char *)ðer_hdr->ether_dest); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_datalink.c:60:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_icmp.c: In function 'analyze_icmp': BUILDSTDERR: packet_icmp.c:47:8: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 47 | (char *)&icmp_pkt->icmp_gwaddr); BUILDSTDERR: | ^ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_icmp.c:47:8: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: In file included from packet_icmp.c:16: BUILDSTDERR: packet_icmp.c:82:7: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] BUILDSTDERR: 82 | inet_ntoa(*(struct in_addr *)(icmp_pkt->icmp_data+8+(i<<3)))); BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: Jpcap_sub.h:29:54: note: in definition of macro 'NewString' BUILDSTDERR: 29 | #define NewString(str) (*env)->NewStringUTF(env,str) BUILDSTDERR: | ^~~ BUILDSTDERR: packet_icmp.c:81:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: 81 | jstring addr_str=NewString((const char *) BUILDSTDERR: | ^ BUILDSTDERR: Jpcap_sub.h:29:54: note: in definition of macro 'NewString' BUILDSTDERR: 29 | #define NewString(str) (*env)->NewStringUTF(env,str) BUILDSTDERR: | ^~~ BUILDSTDERR: packet_icmp.c:83:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: 83 | prefs[i]=(int)(icmp_pkt->icmp_data+8+(i<<3)+4); BUILDSTDERR: | ^ BUILDSTDERR: packet_icmp.c: In function 'set_icmp': BUILDSTDERR: packet_icmp.c:136:48: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 136 | (*env)->GetByteArrayRegion(env,data,0,length,(u_char *)icmp->icmp_data); BUILDSTDERR: | ^ BUILDSTDERR: | | BUILDSTDERR: | u_char * {aka unsigned char *} BUILDSTDERR: packet_icmp.c:136:48: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} BUILDSTDERR: packet_icmp.c:143:45: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 143 | (*env)->GetByteArrayRegion(env,addr,0,4,(char *)&icmp->icmp_gwaddr); BUILDSTDERR: | ^ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_icmp.c:143:45: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_icmp.c:151:23: warning: pointer targets in passing argument 3 of 'set_ip' differ in signedness [-Wpointer-sign] BUILDSTDERR: 151 | set_ip(env,ippacket,(u_char *)&icmp->icmp_ip); BUILDSTDERR: | ^ BUILDSTDERR: | | BUILDSTDERR: | u_char * {aka unsigned char *} BUILDSTDERR: packet_icmp.c:19:46: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} BUILDSTDERR: 19 | void set_ip(JNIEnv *env,jobject packet,char *pointer); BUILDSTDERR: | ~~~~~~^~~~~~~ BUILDSTDERR: packet_icmp.c: In function 'analyze_icmp': BUILDSTDERR: packet_icmp.c:84:3: warning: 'addr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 84 | (*env)->SetObjectArrayElement(env,addrArray,i,addr); BUILDSTDERR: | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: packet_ip.c: In function 'analyze_ip': BUILDSTDERR: packet_ip.c:39:47: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 39 | (*env)->SetByteArrayRegion(env,src_addr,0,4,(char *)&ip_pkt->ip_src); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ip.c:39:47: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_ip.c:40:47: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 40 | (*env)->SetByteArrayRegion(env,dst_addr,0,4,(char *)&ip_pkt->ip_dst); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ip.c:40:47: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_ip.c:67:70: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 67 | (*env)->SetByteArrayRegion(env,dataArray,0,hdrlen-IPv4HDRLEN,data+IPv4HDRLEN); BUILDSTDERR: packet_ip.c:67:70: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} BUILDSTDERR: packet_ip.c: In function 'set_ip': BUILDSTDERR: packet_ip.c:97:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 97 | (*env)->GetByteArrayRegion(env,src,0,4,(char *)&ip->ip_src); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ip.c:97:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_ip.c:98:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 98 | (*env)->GetByteArrayRegion(env,dst,0,4,(char *)&ip->ip_dst); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ip.c:98:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_ipv6.c: In function 'analyze_ipv6': BUILDSTDERR: packet_ipv6.c:74:29: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 74 | (char *)&v6_pkt->ip6_src); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ipv6.c:74:29: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_ipv6.c:76:29: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 76 | (char *)&v6_pkt->ip6_dst); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ipv6.c:76:29: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_ipv6.c: In function 'set_ipv6': BUILDSTDERR: packet_ipv6.c:196:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 196 | (*env)->GetByteArrayRegion(env,src,0,16,(char *)&v6_pkt->ip6_src); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ipv6.c:196:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_ipv6.c:197:42: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 197 | (*env)->GetByteArrayRegion(env,dst,0,16,(char *)&v6_pkt->ip6_dst); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | char * BUILDSTDERR: packet_ipv6.c:197:42: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'char *' BUILDSTDERR: packet_tcp.c: In function 'analyze_tcp': BUILDSTDERR: packet_tcp.c:55:69: warning: pointer targets in passing argument 5 of '(*env)->SetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 55 | (*env)->SetByteArrayRegion(env,dataArray,0,hdrlen-TCPHDRLEN,data+TCPHDRLEN); BUILDSTDERR: packet_tcp.c:55:69: note: expected 'const jbyte *' {aka 'const signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} BUILDSTDERR: packet_tcp.c: In function 'set_tcp': BUILDSTDERR: packet_tcp.c:101:9: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 101 | (u_char *)(pointer+TCPHDRLEN)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | u_char * {aka unsigned char *} BUILDSTDERR: packet_tcp.c:101:9: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} BUILDSTDERR: packet_udp.c: In function 'set_udp': BUILDSTDERR: packet_udp.c:52:9: warning: pointer targets in passing argument 5 of '(*env)->GetByteArrayRegion' differ in signedness [-Wpointer-sign] BUILDSTDERR: 52 | (u_char *)(pointer+UDPHDRLEN)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | u_char * {aka unsigned char *} BUILDSTDERR: packet_udp.c:52:9: note: expected 'jbyte *' {aka 'signed char *'} but argument is of type 'u_char *' {aka 'unsigned char *'} + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 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: 4 minutes 31 seconds rm libjpcap.so gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -shared -L. -I/usr/lib/jvm/java-1.8.0-openjdk/include -I/usr/lib/jvm/java-1.8.0-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 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3rZ2BQ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64 + cd jpcap-0.7 + rm -rf /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64 + install -D src/c/libjpcap.so /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/lib64/jpcap/libjpcap.so + install -D lib/jpcap.jar /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/lib64/jpcap/jpcap.jar + mkdir -p /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/share/javadoc/jpcap + cp -rp doc/javadoc/ /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/share/javadoc/jpcap + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.7-24.fc31 --unique-debug-suffix -0.7-24.fc31.riscv64 --unique-debug-src-base jpcap-0.7-24.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/jpcap-0.7 BUILDSTDERR: 135 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/lib64/jpcap/libjpcap.so extracting debug info from /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/lib64/jpcap/libjpcap.so original debug info size: 296kB, size after compression: 168kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Processing files: jpcap-0.7-24.fc31.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.f8LBGN + umask 022 + cd /builddir/build/BUILD + cd jpcap-0.7 + DOCDIR=/builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/share/doc/jpcap + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/share/doc/jpcap + cp -pr README /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/share/doc/jpcap + cp -pr COPYING /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/share/doc/jpcap + cp -pr ChangeLog /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64/usr/share/doc/jpcap + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Provides: jpcap = 0.7-24.fc31 jpcap(riscv-64) = 0.7-24.fc31 libjpcap.so()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libpcap.so.1()(64bit) rtld(GNU_HASH) Processing files: jpcap-javadoc-0.7-24.fc31.riscv64 Provides: jpcap-javadoc = 0.7-24.fc31 jpcap-javadoc(riscv-64) = 0.7-24.fc31 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-24.fc31.riscv64 Provides: jpcap-debugsource = 0.7-24.fc31 jpcap-debugsource(riscv-64) = 0.7-24.fc31 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-24.fc31.riscv64 Provides: debuginfo(build-id) = b6fe8e12efbbd57a0efc32f5ca161a8f2abdcfd2 jpcap-debuginfo = 0.7-24.fc31 jpcap-debuginfo(riscv-64) = 0.7-24.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: jpcap-debugsource(riscv-64) = 0.7-24.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64 Wrote: /builddir/build/RPMS/jpcap-0.7-24.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/jpcap-debugsource-0.7-24.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/jpcap-debuginfo-0.7-24.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/jpcap-javadoc-0.7-24.fc31.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.YuvFgR + umask 022 + cd /builddir/build/BUILD + cd jpcap-0.7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/jpcap-0.7-24.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0