+ 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 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- 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 --- pakemon.o --- pakemon.c: In function 'pakemon_syslog': pakemon.c:68:4: warning: implicit declaration of function 'time'; did you mean 'nice'? [-Wimplicit-function-declaration] time( &log_time ); ^~~~ nice pakemon.c:71:4: warning: implicit declaration of function 'ctime'; did you mean 'utimes'? [-Wimplicit-function-declaration] ctime( &log_time ), nids_warnings[errnum], saddr, daddr); ^~~~~ utimes pakemon.c:70:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] printf( "%s %s, packet (apparently) from %s to %s\n", ~^ %d ctime( &log_time ), nids_warnings[errnum], saddr, daddr); ~~~~~~~~~~~~~~~~~~ pakemon.c:87:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf( alert_log,"%s %s, packet (apparently) from %s to %s\n", ~^ %d ctime( &log_time ), nids_warnings[errnum], saddr, daddr); ~~~~~~~~~~~~~~~~~~ pakemon.c:94:22: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf(stderr, "%s Failed to open alert_log_file.\n", ~^ %d ctime( &log_time ) ); ~~~~~~~~~~~~~~~~~~ pakemon.c:111:27: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf( alert_log,"%s %s\n", ctime( &log_time ), nids_warnings[errnum] ); ~^ ~~~~~~~~~~~~~~~~~~ %d pakemon.c:118:24: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf(stderr, "%s Failed to open alert_log_file.\n", ctime( &log_time )); ~^ ~~~~~~~~~~~~~~~~~~ %d pakemon.c:134:16: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] printf( "%s %s, packet (apparently) from %s to %s\n", ~^ %d ctime( &log_time ), nids_warnings[errnum], saddr, daddr); ~~~~~~~~~~~~~~~~~~ pakemon.c:153:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] "%s %s,from %s:%hi to %s:%hi\n", ctime( &log_time ), ~^ ~~~~~~~~~~~~~~~~~~ %d pakemon.c:165:17: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] printf( "%s %s,from %s to %s\n", ctime( &log_time ), ~^ ~~~~~~~~~~~~~~~~~~ %d pakemon.c:179:28: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf( alert_log, "%s %s,from %s to %s\n", ~^ %d ctime( &log_time ), ~~~~~~~~~~~~~~~~~~ pakemon.c:229:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] printf( "%s %s\n", ctime( &log_time), buf ); ~^ ~~~~~~~~~~~~~~~~~ %d pakemon.c:240:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf( alert_log, "%s %s\n", ctime( &log_time ), buf ); ~^ ~~~~~~~~~~~~~~~~~~ %d pakemon.c:258:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] printf( "%s Unknown warning number ?\n", ctime( &log_time ) ); ~^ ~~~~~~~~~~~~~~~~~~ %d pakemon.c:269:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf( alert_log, "%s Unknown warning number ?\n", ~^ %d ctime( &log_time ) ); ~~~~~~~~~~~~~~~~~~ pakemon.c: In function 'read_payload': pakemon.c:586:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] *( capital + ip_packet->payload_len ) = (u_char)NULL; ^ pakemon.c:603:19: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] printf("ALERT:%s %s %s(%lu)->%s(%lu) %s\n", ~^ %d ctime( &detection_time ), ~~~~~~~~~~~~~~~~~~~~~~~~ pakemon.c:632:52: warning: format '%s' expects argument of type 'char *', but argument 8 has type 'int' [-Wformat=] fprintf( alert_log, "\n%s %s(%lu)->%s(%lu) %s", ~^ %d pakemon.c:636:10: ctime( &detection_time ) ~~~~~~~~~~~~~~~~~~~~~~~~ pakemon.c:661:50: warning: format '%s' expects argument of type 'char *', but argument 8 has type 'int' [-Wformat=] fprintf( dump_log, "\n%s %s(%lu)->%s(%lu) %s", ~^ %d pakemon.c:665:9: ctime( &detection_time ) ~~~~~~~~~~~~~~~~~~~~~~~~ pakemon.c: In function 'text_dump_payload': pakemon.c:718:9: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] letter = ip_packet->payload + i; ^ pakemon.c: In function 'bin_dump_payload': pakemon.c:765:10: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(tmp_buff, "%2x ", *letter); ^~~~~~~~ In file included from /usr/include/features.h:438, 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:34:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^~~~~ pakemon.c:766:9: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(bin_buff, tmp_buff); ^~~~~~~~ In file included from /usr/include/features.h:438, 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:141:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^~~~~ pakemon.c:766:19: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(bin_buff, tmp_buff); ^~~~~~~~ In file included from /usr/include/features.h:438, 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:141:1: note: expected 'const char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^~~~~ pakemon.c:769:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat( text_buff, letter, 1); ^~~~~~~~~ In file included from /usr/include/features.h:438, 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:148:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^~~~~ pakemon.c:769:24: warning: pointer targets in passing argument 2 of 'strncat' differ in signedness [-Wpointer-sign] strncat( text_buff, letter, 1); ^~~~~~ In file included from /usr/include/features.h:438, 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:148:1: note: expected 'const char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^~~~~ pakemon.c:771:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat( text_buff, ".", 1); ^~~~~~~~~ In file included from /usr/include/features.h:438, 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:148:1: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} __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] if( pkmprm.uid != 0 )setuid( pkmprm.uid ); ^~~~~~~~~~~~~~~~~~~~ --- signature.o --- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # 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] if( re_err = (char *)re_compile_pattern( pattern, strlen( pattern ),&(new_node->reg_pattern))){ ^~~~~~~ In file included from signature.h:30, from signature.c:25: /usr/include/string.h:385:15: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 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] if( re_err = (char *)re_compile_pattern( pattern, strlen( pattern ),&(new_node->reg_pattern))){ ^~~~~~~ In file included from match.h:37, from signature.h:39, from signature.c:25: regex.h:409:20: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} extern const char *re_compile_pattern ^~~~~~~~~~~~~~~~~~ signature.c:138:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if( re_err = (char *)re_compile_pattern( pattern, strlen( pattern ),&(new_node->reg_pattern))){ ^~~~~~ signature.c: In function 'make_pattern': signature.c:736:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (char)NULL ); ^ signature.c:743:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (char)NULL ); ^ signature.c:802:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] *sig_writer = (u_char)NULL; ^ signature.c: In function 'make_bin_pattern': signature.c:840:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (char)NULL ); ^ signature.c:847:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (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] u_char *payload = (char *)NULL; ^ signature.c:911:15: warning: pointer targets in passing argument 2 of 're_search' differ in signedness [-Wpointer-sign] ip_packet->payload, ~~~~~~~~~^~~~~~~~~ In file included from match.h:37, from signature.h:39, from signature.c:25: regex.h:425:12: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} extern int re_search ^~~~~~~~~ signature.c: In function 'make_bin_pattern': signature.c:837:36: warning: '__builtin___sprintf_chk' writing a terminating nul past the end of the destination [-Wformat-overflow=] sprintf( bin_buffer, "%c%c%c", ^ In file included from /usr/include/stdio.h:873, from signature.h:29, from signature.c:25: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 bytes into a destination of size 3 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ signature.c: In function 'make_pattern': signature.c:733:32: warning: '__builtin___sprintf_chk' writing a terminating nul past the end of the destination [-Wformat-overflow=] sprintf( bin_buffer, "%c%c%c", ^ In file included from /usr/include/stdio.h:873, from signature.h:29, from signature.c:25: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 bytes into a destination of size 3 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __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 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- 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 --- 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] 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:16: note: declared here PCAP_API char *pcap_lookupdev(char *); ^~~~~~~~~~~~~~ --- match.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 match.c:25: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- match.o --- match.c: In function 'qd_match': match.c:93:12: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration] if( !memcmp( i_data, pattern, pattern_length ) ) ^~~~~~ --- 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] ip_packet.payload = "[CONNECTION ESTABLISHED]"; ^ tcp.c:77:48: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ip_packet.payload_len = strlen( ip_packet.payload ); ~~~~~~~~~^~~~~~~~ In file included from signature.h:30, from tcp.c:26: /usr/include/string.h:385:15: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 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] ip_packet.payload = "[CONNECTION CLOSED]"; ^ tcp.c:128:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ip_packet.payload_len = strlen(ip_packet.payload); ~~~~~~~~~^~~~~~~~ In file included from signature.h:30, from tcp.c:26: /usr/include/string.h:385:15: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 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] 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] 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] *( capital + ip_packet->payload_len ) = (u_char)NULL; ^ tcp.c:328:7: warning: implicit declaration of function 'time'; did you mean 'nice'? [-Wimplicit-function-declaration] time( &detection_time ); ^~~~ nice tcp.c:334:4: warning: implicit declaration of function 'ctime'; did you mean 'utimes'? [-Wimplicit-function-declaration] ctime( &detection_time ), ^~~~~ utimes tcp.c:333:19: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] printf("ALERT %sTCP %s(%lu)->%s(%lu)%s \n", ~^ %d ctime( &detection_time ), ~~~~~~~~~~~~~~~~~~~~~~~~ tcp.c:359:53: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat=] fprintf( alert_log, "\nTCP %s(%lu)->%s(%lu) %s", ~^ %d tcp.c:362:10: ctime( &detection_time ) ~~~~~~~~~~~~~~~~~~~~~~~~ tcp.c:388:51: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat=] fprintf( dump_log, "\nTCP %s(%lu)->%s(%lu) %s", ~^ %d tcp.c:391:9: ctime( &detection_time ) ~~~~~~~~~~~~~~~~~~~~~~~~ --- 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 --- 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 --- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- ./stamp-h.in --- cd . && autoheader 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # 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] 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] 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] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (lowest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:3802:19: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (p1 + mcnt, d, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (highest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:3802:19: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (p1 + mcnt, d, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (lowest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:3949:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (p + mcnt, NULL, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (highest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:3949:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (p + mcnt, NULL, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (lowest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:4002:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (p + mcnt, d, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (highest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:4002:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (p + mcnt, d, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2526:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] high_reg = (unsigned) POP_FAILURE_ITEM (); \ ^ regex.c:4108:13: note: in expansion of macro 'POP_FAILURE_POINT' POP_FAILURE_POINT (sdummy, pdummy, ^~~~~~~~~~~~~~~~~ regex.c:2529:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] low_reg = (unsigned) POP_FAILURE_ITEM (); \ ^ regex.c:4108:13: note: in expansion of macro 'POP_FAILURE_POINT' POP_FAILURE_POINT (sdummy, pdummy, ^~~~~~~~~~~~~~~~~ regex.c:4105:25: warning: variable 'sdummy' set but not used [-Wunused-but-set-variable] const char *sdummy; ^~~~~~ regex.c:4104:28: warning: variable 'pdummy' set but not used [-Wunused-but-set-variable] unsigned char *pdummy; ^~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (lowest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:4141:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (highest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:4141:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2438:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (lowest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:4154:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2359:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2441:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (highest_active_reg); \ ^~~~~~~~~~~~~~~~~ regex.c:4154:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^~~~~~~~~~~~~~~~~~ regex.c:2526:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] high_reg = (unsigned) POP_FAILURE_ITEM (); \ ^ regex.c:4322:11: note: in expansion of macro 'POP_FAILURE_POINT' POP_FAILURE_POINT (d, p, ^~~~~~~~~~~~~~~~~ regex.c:2529:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] low_reg = (unsigned) POP_FAILURE_ITEM (); \ ^ regex.c:4322:11: note: in expansion of macro 'POP_FAILURE_POINT' 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