+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pakemon-0.3.1nb12/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pakemon-0.3.1nb12/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for pakemon-0.3.1nb12 --- pakemon.o --- --- util.o --- --- signature.o --- --- interface.o --- --- pakemon.o --- gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/libnet10 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -Wall -DLIBNET_LIL_ENDIAN -c pakemon.c --- util.o --- gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/libnet10 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -Wall -DLIBNET_LIL_ENDIAN -c util.c --- signature.o --- gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/libnet10 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -Wall -DLIBNET_LIL_ENDIAN -c signature.c --- interface.o --- gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/libnet10 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -Wall -DLIBNET_LIL_ENDIAN -c interface.c --- signature.o --- signature.c: In function 'new_c_node': signature.c:138:63: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 138 | if( re_err = (char *)re_compile_pattern( pattern, strlen( pattern ),&(new_node->reg_pattern))){ | ^~~~~~~ | | | u_char * {aka unsigned char *} In file included from /usr/include/string.h:34, from signature.h:30, from signature.c:25: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ signature.c:138:46: warning: pointer targets in passing argument 1 of 're_compile_pattern' differ in signedness [-Wpointer-sign] 138 | if( re_err = (char *)re_compile_pattern( pattern, strlen( pattern ),&(new_node->reg_pattern))){ | ^~~~~~~ | | | u_char * {aka unsigned char *} In file included from match.h:37, from signature.h:39: regex.h:410:26: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 410 | _RE_ARGS ((const char *pattern, int length, | ~~~~~~~~~~~~^~~~~~~ regex.h:394:24: note: in definition of macro '_RE_ARGS' 394 | #define _RE_ARGS(args) args | ^~~~ signature.c:138:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 138 | if( re_err = (char *)re_compile_pattern( pattern, strlen( pattern ),&(new_node->reg_pattern))){ | ^~~~~~ signature.c: In function 'init_signature': signature.c:485:23: warning: implicit declaration of function 'index' [-Wimplicit-function-declaration] 485 | endof_sig = index( sig_reader + 1, '\"' ); | ^~~~~ signature.c:485:23: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] signature.c:506:23: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] 506 | endof_sig = index( sig_reader + 1, '\'' ); | ^~~~~ signature.c:525:23: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] 525 | endof_sig = index( sig_reader + 1, '>' ); | ^~~~~ signature.c: In function 'make_pattern': signature.c:736:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 736 | (char)NULL ); | ^ signature.c:743:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 743 | (char)NULL ); | ^ signature.c:769:29: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] 769 | char *endof_bin = index( sig_reader + 1, '|' ); | ^~~~~ signature.c:802:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 802 | *sig_writer = (u_char)NULL; | ^ signature.c: In function 'make_bin_pattern': signature.c:840:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 840 | (char)NULL ); | ^ signature.c:847:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 847 | (char)NULL ); | ^ signature.c: In function 'detect_signature': signature.c:885:21: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 885 | u_char *payload = (char *)NULL; | ^ signature.c:911:43: warning: pointer targets in passing argument 2 of 're_search' differ in signedness [-Wpointer-sign] 911 | ip_packet->payload, | ~~~~~~~~~^~~~~~~~~ | | | u_char * {aka unsigned char *} regex.h:426:60: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 426 | _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, | ~~~~~~~~~~~~^~~~~~ regex.h:394:24: note: in definition of macro '_RE_ARGS' 394 | #define _RE_ARGS(args) args | ^~~~ --- match.o --- --- interface.o --- interface.c: In function 'open_pcap': interface.c:48:7: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 48 | device_name = pcap_lookupdev( errbuf ); | ^~~~~~~~~~~ In file included from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from interface.h:36, from interface.c:25: /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:444:18: note: declared here 444 | PCAP_API char *pcap_lookupdev(char *); | ^~~~~~~~~~~~~~ interface.c: In function 'reset_promisc': interface.c:134:10: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 134 | if ( ioctl( sock, SIOCGIFFLAGS, &interface ) < 0) | ^~~~~ --- match.o --- gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/libnet10 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet10 -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -Wall -DLIBNET_LIL_ENDIAN -c match.c --- interface.o --- interface.c:134:23: error: 'SIOCGIFFLAGS' undeclared (first use in this function) 134 | if ( ioctl( sock, SIOCGIFFLAGS, &interface ) < 0) | ^~~~~~~~~~~~ interface.c:134:23: note: each undeclared identifier is reported only once for each function it appears in interface.c:147:27: error: 'SIOCSIFFLAGS' undeclared (first use in this function) 147 | if ( ioctl( sock, SIOCSIFFLAGS, &interface) < 0) | ^~~~~~~~~~~~ *** [interface.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/security/pakemon/work/pakemon-0.3.1 --- pakemon.o --- pakemon.c: In function 'read_payload': pakemon.c:586:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 586 | *( capital + ip_packet->payload_len ) = (u_char)NULL; | ^ pakemon.c: In function 'text_dump_payload': pakemon.c:718:16: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 718 | letter = ip_packet->payload + i; | ^ pakemon.c: In function 'bin_dump_payload': pakemon.c:765:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 765 | sprintf(tmp_buff, "%2x ", *letter); | ^~~~~~~~ | | | u_char * {aka unsigned char *} In file included from /usr/include/stdio.h:82, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:136, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ pakemon.c:766:16: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] 766 | strcat(bin_buff, tmp_buff); | ^~~~~~~~ | | | u_char * {aka unsigned char *} In file included from /usr/include/string.h:34, from interface.h:41, from pakemon.c:27: /usr/include/iso/string_iso.h:73:21: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ pakemon.c:766:26: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] 766 | strcat(bin_buff, tmp_buff); | ^~~~~~~~ | | | u_char * {aka unsigned char *} /usr/include/iso/string_iso.h:73:43: note: expected 'const char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ pakemon.c:769:20: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] 769 | strncat( text_buff, letter, 1); | ^~~~~~~~~ | | | u_char * {aka unsigned char *} /usr/include/iso/string_iso.h:80:22: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ pakemon.c:769:31: warning: pointer targets in passing argument 2 of 'strncat' differ in signedness [-Wpointer-sign] 769 | strncat( text_buff, letter, 1); | ^~~~~~ | | | u_char * {aka unsigned char *} /usr/include/iso/string_iso.h:80:44: note: expected 'const char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ pakemon.c:771:20: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] 771 | strncat( text_buff, ".", 1); | ^~~~~~~~~ | | | u_char * {aka unsigned char *} /usr/include/iso/string_iso.h:80:22: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ pakemon.c:771:11: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=] 771 | strncat( text_buff, ".", 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- match.o --- match.c: In function 'qd_match': match.c:93:12: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration] 93 | if( !memcmp( i_data, pattern, pattern_length ) ) | ^~~~~~ match.c:28:1: note: include '<string.h>' or provide a declaration of 'memcmp' 27 | #include "util.h" +++ |+#include <string.h> 28 | match.c:93:37: warning: 'memcmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 93 | if( !memcmp( i_data, pattern, pattern_length ) ) | ^~~~~~~~~~~~~~ <built-in>: note: built-in 'memcmp' declared here --- signature.o --- signature.c: In function 'make_bin_pattern': signature.c:837:43: warning: 'sprintf' writing a terminating nul past the end of the destination [-Wformat-overflow=] 837 | sprintf( bin_buffer, "%c%c%c", | ^ signature.c:837:15: note: 'sprintf' output 4 bytes into a destination of size 3 837 | sprintf( bin_buffer, "%c%c%c", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 838 | *bin_reader, | ~~~~~~~~~~~~ 839 | *(bin_reader + 1 ), | ~~~~~~~~~~~~~~~~~~~ 840 | (char)NULL ); | ~~~~~~~~~~~~ signature.c: In function 'make_pattern': signature.c:733:53: warning: 'sprintf' writing a terminating nul past the end of the destination [-Wformat-overflow=] 733 | sprintf( bin_buffer, "%c%c%c", | ^ signature.c:733:25: note: 'sprintf' output 4 bytes into a destination of size 3 733 | sprintf( bin_buffer, "%c%c%c", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 734 | *sig_reader, | ~~~~~~~~~~~~ 735 | *(sig_reader + 1 ), | ~~~~~~~~~~~~~~~~~~~ 736 | (char)NULL ); | ~~~~~~~~~~~~ bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/security/pakemon/work/pakemon-0.3.1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/pakemon *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/pakemon