+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pakemon-0.3.1nb12/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pakemon-0.3.1nb12/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for pakemon-0.3.1nb12 --- pakemon.o --- --- util.o --- --- pakemon.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c pakemon.c --- util.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c util.c --- pakemon.o --- In file included from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ --- util.o --- In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from util.c:26: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ --- pakemon.o --- pakemon.c: In function 'pakemon_syslog': pakemon.c:68:11: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] 68 | time( &log_time ); | ^~~~ pakemon.c:71:18: warning: implicit declaration of function 'ctime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 71 | ctime( &log_time ), nids_warnings[errnum], saddr, daddr); | ^~~~~ | utimes pakemon.c:70:21: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 70 | printf( "%s %s, packet (apparently) from %s to %s\n", | ~^ | | | char * | %d 71 | ctime( &log_time ), nids_warnings[errnum], saddr, daddr); | ~~~~~~~~~~~~~~~~~~ | | | int pakemon.c:87:32: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 87 | fprintf( alert_log,"%s %s, packet (apparently) from %s to %s\n", | ~^ | | | char * | %d 88 | ctime( &log_time ), nids_warnings[errnum], saddr, daddr); | ~~~~~~~~~~~~~~~~~~ | | | int pakemon.c:94:29: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 94 | fprintf(stderr, "%s Failed to open alert_log_file.\n", | ~^ | | | char * | %d 95 | ctime( &log_time ) ); | ~~~~~~~~~~~~~~~~~~ | | | int pakemon.c:111:34: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 111 | fprintf( alert_log,"%s %s\n", ctime( &log_time ), nids_warnings[errnum] ); | ~^ ~~~~~~~~~~~~~~~~~~ | | | | char * int | %d pakemon.c:118:31: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 118 | fprintf(stderr, "%s Failed to open alert_log_file.\n", ctime( &log_time )); | ~^ ~~~~~~~~~~~~~~~~~~ | | | | char * int | %d pakemon.c:134:23: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 134 | printf( "%s %s, packet (apparently) from %s to %s\n", | ~^ | | | char * | %d 135 | ctime( &log_time ), nids_warnings[errnum], saddr, daddr); | ~~~~~~~~~~~~~~~~~~ | | | int pakemon.c:153:22: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 153 | "%s %s,from %s:%hi to %s:%hi\n", ctime( &log_time ), | ~^ ~~~~~~~~~~~~~~~~~~ | | | | char * int | %d pakemon.c:165:24: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 165 | printf( "%s %s,from %s to %s\n", ctime( &log_time ), | ~^ ~~~~~~~~~~~~~~~~~~ | | | | char * int | %d pakemon.c:179:35: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 179 | fprintf( alert_log, "%s %s,from %s to %s\n", | ~^ | | | char * | %d 180 | ctime( &log_time ), | ~~~~~~~~~~~~~~~~~~ | | | int pakemon.c:229:19: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 229 | printf( "%s %s\n", ctime( &log_time), buf ); | ~^ ~~~~~~~~~~~~~~~~~ | | | | char * int | %d pakemon.c:240:32: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 240 | fprintf( alert_log, "%s %s\n", ctime( &log_time ), buf ); | ~^ ~~~~~~~~~~~~~~~~~~ | | | | char * int | %d pakemon.c:258:19: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 258 | printf( "%s Unknown warning number ?\n", ctime( &log_time ) ); | ~^ ~~~~~~~~~~~~~~~~~~ | | | | char * int | %d --- signature.o --- --- pakemon.o --- pakemon.c:269:32: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 269 | fprintf( alert_log, "%s Unknown warning number ?\n", | ~^ | | | char * | %d 270 | ctime( &log_time ) ); | ~~~~~~~~~~~~~~~~~~ | | | int 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:603:26: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 603 | printf("ALERT:%s %s %s(%lu)->%s(%lu) %s\n", | ~^ | | | char * | %d 604 | ctime( &detection_time ), | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | int pakemon.c:632:59: warning: format '%s' expects argument of type 'char *', but argument 8 has type 'int' [-Wformat=] 632 | fprintf( alert_log, "\n%s %s(%lu)->%s(%lu) %s", | ~^ | | | char * | %d ...... 636 | ctime( &detection_time ) | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | int pakemon.c:661:50: warning: format '%s' expects argument of type 'char *', but argument 8 has type 'int' [-Wformat=] 661 | fprintf( dump_log, "\n%s %s(%lu)->%s(%lu) %s", | ~^ | | | char * | %d ...... 665 | ctime( &detection_time ) | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | int 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/features.h:490, from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/bits/stdio2.h:28:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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/features.h:490, from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/bits/string_fortified.h:128:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 128 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ 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 *} In file included from /usr/include/features.h:490, from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/bits/string_fortified.h:128:1: note: expected 'const char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 128 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ 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 *} In file included from /usr/include/features.h:490, from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/bits/string_fortified.h:135:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 135 | __NTH (strncat (char *__restrict __dest, const char *__restrict __src, | ^~~~~ 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 *} In file included from /usr/include/features.h:490, from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/bits/string_fortified.h:135:1: note: expected 'const char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 135 | __NTH (strncat (char *__restrict __dest, const char *__restrict __src, | ^~~~~ 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 *} In file included from /usr/include/features.h:490, from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from pakemon.c:25: /usr/include/bits/string_fortified.h:135:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 135 | __NTH (strncat (char *__restrict __dest, const char *__restrict __src, | ^~~~~ pakemon.c: In function 'main': pakemon.c:1128:24: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1128 | if( pkmprm.uid != 0 )setuid( pkmprm.uid ); | ^~~~~~~~~~~~~~~~~~~~ --- signature.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c signature.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from signature.h:29, from signature.c:25: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ 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 signature.h:30, from signature.c:25: /usr/include/string.h:391:35: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ 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, from signature.c:25: 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 '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: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 *} In file included from match.h:37, from signature.h:39, from signature.c:25: 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 | ^~~~ --- interface.o --- --- signature.o --- signature.c: In function 'make_bin_pattern': signature.c:837:43: warning: '__builtin___sprintf_chk' writing a terminating nul past the end of the destination [-Wformat-overflow=] 837 | sprintf( bin_buffer, "%c%c%c", | ^ In file included from /usr/include/stdio.h:900, from signature.h:29, from signature.c:25: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 4 bytes into a destination of size 3 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ --- interface.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c interface.c --- signature.o --- signature.c: In function 'make_pattern': signature.c:733:53: warning: '__builtin___sprintf_chk' writing a terminating nul past the end of the destination [-Wformat-overflow=] 733 | sprintf( bin_buffer, "%c%c%c", | ^ In file included from /usr/include/stdio.h:900, from signature.h:29, from signature.c:25: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 4 bytes into a destination of size 3 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ --- interface.o --- In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from interface.h:35, from interface.c:25: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ 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 *); | ^~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from interface.h:41, from interface.c:25: In function 'strncpy', inlined from 'open_pcap' at interface.c:63:7: /usr/include/bits/string_fortified.h:95:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ interface.c: In function 'open_pcap': interface.c:56:28: note: length computed here 56 | device_name_length = strlen( device_name ); | ^~~~~~~~~~~~~~~~~~~~~ --- match.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c match.c In file included from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from match.c:25: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ --- tcp.o --- --- 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 --- tcp.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c tcp.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from signature.h:29, from tcp.c:26: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ --- udp.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c udp.c --- tcp.o --- tcp.c: In function 'tcp_callback': tcp.c:75:25: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 75 | ip_packet.payload = "[CONNECTION ESTABLISHED]"; | ^ tcp.c:77:48: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 77 | ip_packet.payload_len = strlen( ip_packet.payload ); | ~~~~~~~~~^~~~~~~~ | | | u_char * {aka unsigned char *} In file included from signature.h:30, from tcp.c:26: /usr/include/string.h:391:35: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ tcp.c:126:25: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 126 | ip_packet.payload = "[CONNECTION CLOSED]"; | ^ tcp.c:128:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 128 | ip_packet.payload_len = strlen(ip_packet.payload); | ~~~~~~~~~^~~~~~~~ | | | u_char * {aka unsigned char *} In file included from signature.h:30, from tcp.c:26: /usr/include/string.h:391:35: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ tcp.c:166:25: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 166 | ip_packet.payload = hlf->data; | ^ tcp.c:170:31: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 170 | ip_packet.endof_payload = hlf->data + a_tcp->read; | ^ tcp.c: In function 'read_tcp': tcp.c:245:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 245 | *( capital + ip_packet->payload_len ) = (u_char)NULL; | ^ tcp.c:328:7: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] 328 | time( &detection_time ); | ^~~~ tcp.c:334:18: warning: implicit declaration of function 'ctime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 334 | ctime( &detection_time ), | ^~~~~ | utimes tcp.c:333:26: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 333 | printf("ALERT %sTCP %s(%lu)->%s(%lu)%s \n", | ~^ | | | char * | %d 334 | ctime( &detection_time ), | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | int tcp.c:359:60: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat=] 359 | fprintf( alert_log, "\nTCP %s(%lu)->%s(%lu) %s", | ~^ | | | char * | %d ...... 362 | ctime( &detection_time ) | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | int tcp.c:388:51: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat=] 388 | fprintf( dump_log, "\nTCP %s(%lu)->%s(%lu) %s", | ~^ | | | char * | %d ...... 391 | ctime( &detection_time ) | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | int --- udp.o --- In file included from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from udp.c:25: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ --- icmp.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c icmp.c --- ./stamp-h.in --- cd . && autoheader --- icmp.o --- In file included from /usr/include/inttypes.h:25, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap-inttypes.h:98, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap/pcap.h:117, from /home/pbulk/build/security/pakemon/work/.buildlink/include/pcap.h:43, from pakemon.h:33, from icmp.c:25: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ --- ./stamp-h.in --- WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.in'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. --- stamp-h --- cd . && CONFIG_FILES= CONFIG_HEADERS=config.h /bin/bash ./config.status creating config.h config.h is unchanged --- config.h --- --- regex.o --- cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -c regex.c In file included from /usr/include/sys/types.h:25, from regex.c:46: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ regex.c: In function 're_match_2': regex.c:3796:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3796 | if ((int) old_regend[r] >= (int) regstart[r]) | ^ regex.c:3796:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3796 | if ((int) old_regend[r] >= (int) regstart[r]) | ^ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2438 | PUSH_FAILURE_ITEM (lowest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:3802:19: note: in expansion of macro 'PUSH_FAILURE_POINT' 3802 | PUSH_FAILURE_POINT (p1 + mcnt, d, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2441 | PUSH_FAILURE_ITEM (highest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:3802:19: note: in expansion of macro 'PUSH_FAILURE_POINT' 3802 | PUSH_FAILURE_POINT (p1 + mcnt, d, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2438 | PUSH_FAILURE_ITEM (lowest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:3949:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 3949 | PUSH_FAILURE_POINT (p + mcnt, NULL, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2441 | PUSH_FAILURE_ITEM (highest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:3949:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 3949 | PUSH_FAILURE_POINT (p + mcnt, NULL, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2438 | PUSH_FAILURE_ITEM (lowest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:4002:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 4002 | PUSH_FAILURE_POINT (p + mcnt, d, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2441 | PUSH_FAILURE_ITEM (highest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:4002:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 4002 | PUSH_FAILURE_POINT (p + mcnt, d, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2526:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2526 | high_reg = (unsigned) POP_FAILURE_ITEM (); \ | ^ regex.c:4108:13: note: in expansion of macro 'POP_FAILURE_POINT' 4108 | POP_FAILURE_POINT (sdummy, pdummy, | ^~~~~~~~~~~~~~~~~ regex.c:2529:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2529 | low_reg = (unsigned) POP_FAILURE_ITEM (); \ | ^ regex.c:4108:13: note: in expansion of macro 'POP_FAILURE_POINT' 4108 | POP_FAILURE_POINT (sdummy, pdummy, | ^~~~~~~~~~~~~~~~~ regex.c:4105:25: warning: variable 'sdummy' set but not used [-Wunused-but-set-variable] 4105 | const char *sdummy; | ^~~~~~ regex.c:4104:28: warning: variable 'pdummy' set but not used [-Wunused-but-set-variable] 4104 | unsigned char *pdummy; | ^~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2438 | PUSH_FAILURE_ITEM (lowest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:4141:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 4141 | PUSH_FAILURE_POINT (0, 0, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2441 | PUSH_FAILURE_ITEM (highest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:4141:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 4141 | PUSH_FAILURE_POINT (0, 0, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2438 | PUSH_FAILURE_ITEM (lowest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:4154:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 4154 | PUSH_FAILURE_POINT (0, 0, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2359 | fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item | ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' 2441 | PUSH_FAILURE_ITEM (highest_active_reg); \ | ^~~~~~~~~~~~~~~~~ regex.c:4154:11: note: in expansion of macro 'PUSH_FAILURE_POINT' 4154 | PUSH_FAILURE_POINT (0, 0, -2); | ^~~~~~~~~~~~~~~~~~ regex.c:2526:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2526 | high_reg = (unsigned) POP_FAILURE_ITEM (); \ | ^ regex.c:4322:11: note: in expansion of macro 'POP_FAILURE_POINT' 4322 | POP_FAILURE_POINT (d, p, | ^~~~~~~~~~~~~~~~~ regex.c:2529:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2529 | low_reg = (unsigned) POP_FAILURE_ITEM (); \ | ^ regex.c:4322:11: note: in expansion of macro 'POP_FAILURE_POINT' 4322 | POP_FAILURE_POINT (d, p, | ^~~~~~~~~~~~~~~~~ --- pakemon --- cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -Wl,-zrelro -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib64 -L/usr/pkg/lib -L/usr/pkg/lib/libnet10 -L/usr/pkg/lib -o pakemon pakemon.o util.o signature.o interface.o match.o tcp.o udp.o icmp.o regex.o -L/usr/pkg/lib -lnids -L/usr/pkg/lib/libnet10 -lnet -L/usr/pkg/lib -lpcap