+ 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/irrd-2.3.9nb11/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/irrd-2.3.9nb11/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for irrd-2.3.9nb11 Making lib cd config; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c config_file.c config_file.c: In function 'config_del_module': config_file.c:82:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (arg && (module->arg != arg)) ^~ config_file.c:86:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (strcmp (module->name, "!") == 0) ^~ config_file.c: In function 'config_access_list': config_file.c:301:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ config_file.c:314:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ a - config_file.o cd mrt; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c util.c a - util.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c prefix.c a - prefix.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c mrt.c a - mrt.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c user.c user.c: In function 'uii_accept_connection': user.c:221:9: warning: variable 'port' set but not used [-Wunused-but-set-variable] int port, family; ^~~~ user.c: In function 'uii_call_callback_fn': user.c:1170:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] args[nargs++] = (void *) atoi (utoken); ^ user.c:1199:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] args[optional_arg] = (void *) optional; ^ a - user.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c schedule.c a - schedule.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c alist.c a - alist.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c trace.c a - trace.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c select.c select.c: In function 'init_select': select.c:41:5: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe (fd); ^~~~~~~~~ select.c: In function 'select_add_fd_event_timed_vp': select.c:146:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ select.c: In function 'select_delete_fd_mask': select.c:254:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ select.c: In function 'mrt_select2': select.c:382:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (SELECT_MASTER->interrupt_fd[0], &c, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ select.c: In function 'select_disable_fd_mask': select.c:508:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ select.c: In function 'select_enable_fd_mask': select.c:562:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a - select.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c connect.c connect.c: In function 'nonblock_connect': connect.c:87:9: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] &size); ^~~~~ In file included from ../../include/mrt.h:33, from connect.c:5: /usr/include/sys/socket.h:210:32: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} socklen_t *__restrict __optlen) __THROW; ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ a - connect.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c reboot.c reboot.c: In function 'init_mrt_reboot': reboot.c:10:3: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd (tmp, BUFSIZE); ^~~~~~~~~~~~~~~~~~~~~ a - reboot.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c user_old.c user_old.c: In function 'parse_line': user_old.c:29:9: warning: variable 'state' set but not used [-Wunused-but-set-variable] int state; ^~~~~ a - user_old.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c user_util.c user_util.c: In function 'find_matching_commands': user_util.c:249:7: warning: variable 'optional' set but not used [-Wunused-but-set-variable] int optional; ^~~~~~~~ user_util.c:247:30: warning: variable 'last_utoken' set but not used [-Wunused-but-set-variable] char *last_ctoken = NULL, *last_utoken = NULL; ^~~~~~~~~~~ a - user_util.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c compat.c a - compat.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c buffer.c a - buffer.o cd radix; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c radix.c a - radix.o cd struct; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c New.c New.c: In function 'Reallocate_DefaultHandler': New.c:240:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)ptr, ptr_name, size, name, strerror(errno), file, line); ^ New.c:242:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)ptr, size, strerror(errno)); ^ New.c: In function 'Delete_DefaultHandler': New.c:263:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)ptr, name, strerror(errno), file, line); ^ New.c:264:69: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] else fprintf(out, "Delete: Error freeing 0x%.8x. \"%s\"\n", (u_int)ptr, strerror(errno)); ^ a - New.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c stack.c stack.c: In function 'STACK_DefaultHandler': stack.c:196:73: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf(out, "STACK: 0x%.8x Error in function %s. \"%s\" {%u/%u}\n", (u_int)stack, name, ^ stack.c: In function 'STACK_Print': stack.c:220:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("STACK: 0x%.8x Print(0x%.8x) {%u/%u}\n", (u_int)stack, (u_int)print, (u_int)stack->top, (u_int)stack->size); ^ stack.c:220:66: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("STACK: 0x%.8x Print(0x%.8x) {%u/%u}\n", (u_int)stack, (u_int)print, (u_int)stack->top, (u_int)stack->size); ^ a - stack.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c linked_list.c linked_list.c: In function 'LL_DefaultHandler': linked_list.c:1650:71: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf(out, "LINKED LIST: 0x%.8x Error in function %s: \"%s\"\n", (u_int)ll, name, LL_errlist[num]); ^ a - linked_list.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c hash.c hash.c: In function 'HASH_DefaultHandler': hash.c:923:70: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf(out, "HASH TABLE: 0x%.8x Error in function %s: \"%s\"\n", (u_int)h, fn, HASH_errlist[num]); ^ hash.c: In function 'HASH_Print': hash.c:1009:58: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("HASH TABLE: 0x%.8x attributes: %s, %s, %s\n", (u_int)h, ^ hash.c:1013:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("HASH TABLE: 0x%.8x size = %u\n", (u_int)h, h->size); ^ hash.c:1016:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, h->key_offset, h->next_offset); ^ hash.c:1019:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("HASH TABLE: 0x%.8x key offset = %u\n", (u_int)h, h->key_offset); ^ hash.c:1022:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c:1022:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c:1022:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c:1022:48: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c: In function 'HASH_DefaultPrinter': hash.c:1052:57: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("%3d: 0x%.8x key = 0x%.8x = \"%s\"\n", index, (u_int)data, (u_int)key, (char *)key); ^ hash.c:1052:70: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("%3d: 0x%.8x key = 0x%.8x = \"%s\"\n", index, (u_int)data, (u_int)key, (char *)key); ^ a - hash.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c array.c array.c: In function 'ARRAY_MergeSort': array.c:280:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] while ((unsigned)tmp[0] != size-1) { ^ array.c:281:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((unsigned)tmp[p] == r) { /* AUTO-MERGE, all sub-arrays processed */ ^ array.c:283:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] r = (unsigned)tmp[q+1]; ^ array.c:305:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tmp[p] = (DATA_PTR)r; ^ array.c:326:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tmp[p] = (DATA_PTR)r; ^ array.c:331:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tmp[p] = (DATA_PTR)p; ^ a - array.o cd timer; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c timer.c a - timer.o cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c signal.c a - signal.o Making programs for i in atomic_ops compat IRRd hdr_comm pgp irr_rpsl_check irrd_ops irr_notify irr_rpsl_submit; do (echo "cd $i; /usr/pkg/bin/bmake"; cd $i; /usr/pkg/bin/bmake; cd ..); done cd atomic_ops; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c atomic_ops.c ar crv libatomic_ops.a atomic_ops.o a - atomic_ops.o ranlib libatomic_ops.a cd compat; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c snprintf.c snprintf.c:413:13: warning: 'credits' defined but not used [-Wunused-variable] static char credits[] = "\n\ ^~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c mktemp.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c inet_ntop.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c inet_pton.c ar crv libcompat.a snprintf.o mktemp.o inet_ntop.o inet_pton.o a - snprintf.o a - mktemp.o a - inet_ntop.o a - inet_pton.o ranlib libcompat.a cd IRRd; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c main.c main.c: In function 'daemonize': main.c:371:14: warning: variable 't' set but not used [-Wunused-but-set-variable] int pid, t; ^ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c telnet.c telnet.c: In function 'listen_telnet': telnet.c:318:64: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] select_add_fd (sockfd, 1, (void_fn_t) irr_accept_connection, (void *) sockfd); ^ telnet.c: In function 'irr_write_direct': telnet.c:681:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(final_answer->ptr, 1, bytes, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c scan.c scan.c: In function 'scan_irr_serial': scan.c:106:24: warning: '.CURRENTSERIAL' directive writing 14 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf (file, "%s/%s.CURRENTSERIAL", IRR.database_dir, tmp); ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from scan.c:8: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 16 or more bytes (assuming 1039) into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ scan.c: In function 'write_irr_serial': scan.c:152:24: warning: '.CURRENTSERIAL' directive writing 14 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf (file, "%s/%s.CURRENTSERIAL", IRR.database_dir, dbname); ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from scan.c:8: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 16 or more bytes (assuming 1039) into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ scan.c: In function 'write_irr_serial_export': scan.c:183:24: warning: '.CURRENTSERIAL' directive writing 14 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf (file, "%s/%s.CURRENTSERIAL", IRR.ftp_dir, db); ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from scan.c:8: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 16 or more bytes (assuming 1039) into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c config.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c commands.c commands.c: In function 'irr_more_all': commands.c:991:37: warning: variable 'last_node' set but not used [-Wunused-but-set-variable] radix_node_t *node, *start_node, *last_node; ^~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c database.c database.c: In function 'database_clear': database.c:49:24: warning: iteration 21 invokes undefined behavior [-Waggressive-loop-optimizations] db->num_objects[i] = 0; ~~~~~~~~~~~~~~~~~~~^~~ database.c:48:3: note: within this loop for (i=0; i< IRR_MAX_KEYS; i++) ^~~ database.c: In function 'replace_cache_db': database.c:627:24: warning: '.CURRENTSERIAL' directive writing 14 bytes into a region of size between 2 and 1025 [-Wformat-overflow=] sprintf (fname, "%s.CURRENTSERIAL", uc); ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from database.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 1038 bytes into a destination of size 1025 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ database.c: In function 'irr_database_export': database.c:443:33: warning: '%s' directive writing up to 1023 bytes into a region of size 970 [-Wformat-overflow=] sprintf (command, "%s -q -c %s > %s", GZIP_CMD, tmp_export, tmp_export_gz); ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from database.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 58 and 2104 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ database.c:441:29: warning: ' > ' directive writing 3 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf (command, "%s %s > %s", database->compress_script, tmp_export, tmp_export_gz); ^~~ In file included from /usr/include/stdio.h:873, from database.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 2051) into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c update.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c mirror.c mirror.c: In function 'request_mirror': mirror.c:95:23: warning: '%s' directive writing up to 1023 bytes into a region of size 1021 [-Wformat-overflow=] sprintf (tmp, "-g %s:1:%u-%u\n", name, db->serial_number+1, last); ^~ ~~~~ mirror.c:95:19: note: using the range [0, 4294967295] for directive argument sprintf (tmp, "-g %s:1:%u-%u\n", name, db->serial_number+1, last); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from mirror.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 11 and 1052 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ mirror.c:93:23: warning: '%s' directive writing up to 1023 bytes into a region of size 1021 [-Wformat-overflow=] sprintf (tmp, "-g %s:1:%u-LAST\n", name, db->serial_number+1); ^~ ~~~~ mirror.c:93:19: note: using the range [0, 4294967295] for directive argument sprintf (tmp, "-g %s:1:%u-LAST\n", name, db->serial_number+1); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from mirror.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 14 and 1046 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ mirror.c: In function 'irr_service_mirror_request': mirror.c:389:70: warning: '%s' directive writing up to 1023 bytes into a region of size 984 [-Wformat-overflow=] sprintf (buffer1, "\n\n\n%% ERROR: syntax error in 'to' value (%s)\n", buffer); ^~ ~~~~~~ In file included from /usr/include/stdio.h:873, from mirror.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ mirror.c:410:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1011 [-Wformat-overflow=] sprintf (buffer, "\n\n\n%% ERROR: (%s).CURRENTSERIAL file missing or corrupted!\n", name); ^~ ~~~~ In file included from /usr/include/stdio.h:873, from mirror.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 57 and 1080 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ mirror.c:397:51: warning: '%s' directive writing up to 1023 bytes into a region of size 1000 [-Wformat-overflow=] sprintf (buffer, "\n\n\n%% ERROR: Unknown db (%s) in mirror request\n", name); ^~ ~~~~ In file included from /usr/include/stdio.h:873, from mirror.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 45 and 1068 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ mirror.c:383:71: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] sprintf (buffer, "\n\n\n%% ERROR: syntax error in 'from' value (%s)\n", buffer1); ^~ ~~~~~~~ In file included from /usr/include/stdio.h:873, from mirror.c:6: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 45 and 1068 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c uii_commands.c uii_commands.c: In function 'uii_show_ip_more': uii_commands.c:581:37: warning: variable 'last_node' set but not used [-Wunused-but-set-variable] radix_node_t *node, *start_node, *last_node; ^~~~~~~~~ uii_commands.c: In function 'run_cmd': uii_commands.c:711:5: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe (pin); ^~~~~~~~~~ uii_commands.c:714:5: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe (pout); ^~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c journal.c journal.c: In function 'journal_irr_update': journal.c:43:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (db->journal_fd, sadd, strlen (sadd)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ journal.c:45:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (db->journal_fd, sdelete, strlen (sdelete)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ journal.c:64:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (db->journal_fd, buffer, fread_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ journal.c:71:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (db->journal_fd, "\n", 1); /* write the final newline */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ journal.c: In function 'journal_log_serial_number': journal.c:86:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (database->journal_fd, buffer, strlen (buffer)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ journal.c: In function 'get_current_serial': journal.c:157:22: warning: '%s' directive writing up to 1023 bytes into a region of size 255 [-Wformat-overflow=] sprintf (file, "%s/%s.CURRENTSERIAL", IRR.database_dir, tmp); ^~ ~~~ In file included from /usr/include/stdio.h:873, from journal.c:8: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 16 or more bytes (assuming 1039) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c indicies.c indicies.c: In function 'irr_database_find_matches': indicies.c:117:17: warning: variable '_p_or_s' set but not used [-Wunused-but-set-variable] u_char _type, _p_or_s; ^~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c rpsl_commands.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c route.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c hash_spec.c hash_spec.c: In function 'memory_hash_spec_store': hash_spec.c:334:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (id == GASX6) ^~ hash_spec.c:343:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' switch (id) { ^~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c templates.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c irrd_util.c irrd_util.c: In function 'interactive_io': irrd_util.c:755:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets (buf, BUFSIZE, stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c mirrorstatus.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c statusfile.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c atomic_trans.c echo "Linking: cc -Wl,-zrelro -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib main.o telnet.o scan.o config.o commands.o database.o update.o mirror.o uii_commands.o journal.o indicies.o rpsl_commands.o route.o hash_spec.o templates.o irrd_util.o mirrorstatus.o statusfile.o atomic_trans.o ../../lib/libmrt.a ../../lib/libcfg.a -o irrd" Linking: cc -Wl,-zrelro -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib main.o telnet.o scan.o config.o commands.o database.o update.o mirror.o uii_commands.o journal.o indicies.o rpsl_commands.o route.o hash_spec.o templates.o irrd_util.o mirrorstatus.o statusfile.o atomic_trans.o ../../lib/libmrt.a ../../lib/libcfg.a -o irrd cc -Wl,-zrelro -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib main.o telnet.o scan.o config.o commands.o database.o update.o mirror.o uii_commands.o journal.o indicies.o rpsl_commands.o route.o hash_spec.o templates.o irrd_util.o mirrorstatus.o statusfile.o atomic_trans.o ../../lib/libmrt.a ../../lib/libcfg.a -o irrd -lpthread -lrt -L../atomic_ops -latomic_ops -L../compat -lcompat cd hdr_comm; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c hdr_comm.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c hdr_fields.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c read_conf.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c trace.c trace.c: In function 'trace': trace.c:71:22: warning: ' [' directive writing 2 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] sprintf (tmp, "%s [%d] ", ptime, (int) getpid ()); ^~ In file included from /usr/include/stdio.h:873, from trace.c:5: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 6 and 4111 bytes into a destination of size 4096 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ ar crv libhdrs.a hdr_comm.o hdr_fields.o read_conf.o trace.o a - hdr_comm.o a - hdr_fields.o a - read_conf.o a - trace.o ranlib libhdrs.a cd pgp; /usr/pkg/bin/bmake cd gpg; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -I../../../include -c gpg.c gpg.c: In function 'run_cmd': gpg.c:58:5: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe (pin); ^~~~~~~~~~ gpg.c:61:5: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe (pout); ^~~~~~~~~~~ ar crv libirrpgp.a gpg.o a - gpg.o ranlib libirrpgp.a cp libirrpgp.a ../ cp gpg.o ../pgp.o cd irr_rpsl_check; /usr/pkg/bin/bmake /usr/pkg/bin/bison -y -v -d rpsl.y rpsl.y: warning: 1 shift/reduce conflict [-Wconflicts-sr] rpsl.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples /home/pbulk/build/net/irrd/work/.tools/bin/flex rpsl.fl cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c lex.yy.c lex.yy.c:6209:16: warning: 'input' defined but not used [-Wunused-function] #else ^ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c y.tab.c rpsl.y: In function 'start_new_attr': rpsl.y:1869:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&lrec, sizeof (canon_line_t), 1, canon_obj.lfd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c irr_attrs.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c prefix.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c util.c util.c: In function 'error_msg_queue': util.c:330:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] fprintf (dfile, "error_msg_queue(), copied n bytes-(%d) curr attr-(%d)\n",n,obj->curr_attr); ~^ ~ %ld cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c syntax_attrs.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c canonical.c canonical.c: In function 'canon_put_str': canonical.c:532:56: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] fprintf (dfile, "canon_put_str mem (%s) offset (%d): exit\n", strp, cn->bufp - parse_buf); ~^ ~~~~~~~~~~~~~~~~~~~~ %ld canonical.c: In function 'display_canonicalized_object': canonical.c:82:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&lrec, sizeof (canon_line_t), 1, canon_info->lfd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ canonical.c:119:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&lrec, sizeof (canon_line_t), 1, canon_info->lfd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ canonical.c: In function 'init_attr_weights': canonical.c:704:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&lrec, sizeof (canon_line_t), 1, cn->lfd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ canonical.c: In function 'lget': canonical.c:820:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (lrec, sizeof (canon_line_t), 1, cn->lfd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c hdr_build.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c dictionary.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c main.c Linking: cc -Wl,-zrelro -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib lex.yy.o y.tab.o irr_attrs.o prefix.o util.o syntax_attrs.o canonical.o hdr_build.o dictionary.o main.o -o irr_rpsl_check -L../hdr_comm -lhdrs -L../pgp -lirrpgp -L../compat -lcompat -lpthread -lrt ar crv librpslchk.a lex.yy.o y.tab.o irr_attrs.o prefix.o util.o syntax_attrs.o canonical.o hdr_build.o dictionary.o a - lex.yy.o a - y.tab.o a - irr_attrs.o a - prefix.o a - util.o a - syntax_attrs.o a - canonical.o a - hdr_build.o a - dictionary.o ranlib librpslchk.a cd irrd_ops; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c irrd_ops.c ar crv libirrd_ops.a irrd_ops.o a - irrd_ops.o ranlib libirrd_ops.a cd irr_notify; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c notify.c notify.c: In function 'perform_transactions': notify.c:977:22: warning: variable 'abort_trans' set but not used [-Wunused-but-set-variable] int open_conn = 0, abort_trans = 0; ^~~~~~~~~~~ notify.c:1050:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets (buf, MAXLINE, fin); ^~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c trans_hdrs.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c notify_msgs.c notify_msgs.c: In function 'sender_response': notify_msgs.c:503:13: warning: variable 'notify_str' set but not used [-Wunused-but-set-variable] char *notify_str; ^~~~~~~~~~ notify_msgs.c: In function 'maint_request': notify_msgs.c:163:27: warning: '%s' directive writing up to 4095 bytes into a region of size 236 [-Wformat-overflow=] sprintf (email, "%s < %s", SENDMAIL_CMD, buf); ^~ ~~~ In file included from /usr/include/stdio.h:873, from notify_msgs.c:5: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 21 and 4116 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c util.c util.c: In function 'put_transaction_code_new': util.c:99:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ util.c:107:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' if (irrd_ret_code == NULL) ^~ util.c: In function 'put_transaction_code': util.c:141:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ util.c:144:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' if (irrd_ret_code != NULL && *irrd_ret_code == 'C') ^~ util.c: In function 'update_pgp_ring': util.c:350:3: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe(p); ^~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c main.c Linking: -Wl,-zrelro -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib cc notify.o trans_hdrs.o notify_msgs.o util.o main.o -o irr_notify -L../irrd_ops -lirrd_ops -L../hdr_comm -lhdrs -L../pgp -lirrpgp -L/lib -L../compat -lcompat ar crv libnfy.a notify.o trans_hdrs.o notify_msgs.o util.o ../hdr_comm/hdr_comm.o ../irrd_ops/irrd_ops.o ../pgp/pgp.o a - notify.o a - trans_hdrs.o a - notify_msgs.o a - util.o a - ../hdr_comm/hdr_comm.o a - ../irrd_ops/irrd_ops.o a - ../pgp/pgp.o ranlib libnfy.a cd irr_rpsl_submit; /usr/pkg/bin/bmake cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c call_pipeline.c call_pipeline.c: In function 'call_pipeline': call_pipeline.c:38:56: warning: passing argument 3 of 'getpeername' from incompatible pointer type [-Wincompatible-pointer-types] if(!getpeername(sock_fd, (struct sockaddr *)&myaddr, &sock_length)) { ^~~~~~~~~~~~ In file included from call_pipeline.c:12: /usr/include/sys/socket.h:131:26: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} socklen_t *__restrict __len) __THROW; ~~~~~~~~~~~~~~~~~~~~~~^~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c auth.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c pgpchk.c pgpchk.c: In function 'pgpdecodefile_new': pgpchk.c:108:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] n != (int) "\n"); ^ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c mailchk.c mailchk.c: In function 'addmailcookies': mailchk.c:109:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (seen_reply_to == 0 && from_line[0] != '\0') ^~ mailchk.c:116:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' strcat (email_info, from_line); ^~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c main.c main.c: In function 'main': main.c:38:3: warning: ignoring return value of 'setreuid', declared with attribute warn_unused_result [-Wunused-result] setreuid(geteuid(), -1); ^~~~~~~~~~~~~~~~~~~~~~~ main.c:39:3: warning: ignoring return value of 'setregid', declared with attribute warn_unused_result [-Wunused-result] setregid(getegid(), -1); ^~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c comdata.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c util.c util.c: In function 'log_roll': util.c:490:21: warning: '.1' directive writing 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf (oldfn, "%s.1", logfn); ^~ In file included from /usr/include/stdio.h:873, from util.c:5: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 258 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __glibc_objsize (__s), __fmt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __va_arg_pack ()); ~~~~~~~~~~~~~~~~~ cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c notifyif.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c synchkif.c cc -pipe -O2 -pthread -I/usr/include -I/usr/pkg/include -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -DFUNCPROTO -I../../include -c trans_list.c Linking: cc -Wl,-zrelro -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib call_pipeline.o auth.o pgpchk.o mailchk.o main.o comdata.o util.o notifyif.o synchkif.o trans_list.o ../hdr_comm/libhdrs.a ../irr_rpsl_check/librpslchk.a ../irr_notify/libnfy.a ../irrd_ops/libirrd_ops.a ../compat/libcompat.a -o irr_rpsl_submit cc -Wl,-zrelro -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib call_pipeline.o auth.o pgpchk.o mailchk.o main.o comdata.o util.o notifyif.o synchkif.o trans_list.o ../hdr_comm/libhdrs.a ../irr_rpsl_check/librpslchk.a ../irr_notify/libnfy.a ../irrd_ops/libirrd_ops.a ../compat/libcompat.a -o irr_rpsl_submit -lpthread -lrt -lcrypt -L../../lib/ => Creating /home/pbulk/build/net/irrd/work/.rc.d/irrd