x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc-status.c -o rc-status.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c _usage.c -o _usage.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc-misc.c -o rc-misc.o rc-status.c: In function ‘print_service’: rc-status.c:115:25: warning: ‘%02ld’ directive output may be truncated writing between 2 and 18 bytes into a region of size between 0 and 28 [-Wformat-truncation=] "%ld day(s) %02ld:%02ld:%02ld (%s)", ^~~~~ rc-status.c:115:7: note: directive argument in the range [0, 153722867280911939] "%ld day(s) %02ld:%02ld:%02ld (%s)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rc-status.c:115:7: note: directive argument in the range [-9223372036854775808, 9223372036854716339] In file included from /usr/include/stdio.h:862:0, from rc-status.c:19: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 21 or more bytes (assuming 83) into a destination of size 40 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rc-status.c:120:20: warning: ‘%02ld’ directive output may be truncated writing between 2 and 20 bytes into a region of size between 4 and 34 [-Wformat-truncation=] "%02ld:%02ld:%02ld (%s)", ^~~~~ rc-status.c:120:7: note: directive argument in the range [-9223372036854775808, 9223372036854716339] "%02ld:%02ld:%02ld (%s)", ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:862:0, from rc-status.c:19: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 12 or more bytes (assuming 60) into a destination of size 40 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc.c -o rc.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc-logger.c -o rc-logger.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc-plugin.c -o rc-plugin.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c openrc-run.c -o openrc-run.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc-service.c -o rc-service.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc-update.c -o rc-update.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c start-stop-daemon.c -o start-stop-daemon.o start-stop-daemon.c: In function ‘main’: start-stop-daemon.c:379:4: warning: this statement may fall through [-Wimplicit-fallthrough=] ewarn("WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ start-stop-daemon.c:380:3: note: here case 'u': /* --user <username>|<uid> */ ^~~~ x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c rc-schedules.c -o rc-schedules.o x86_64-pc-linux-gnu-gcc -I../includes -I../librc -I../libeinfo -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point -Werror=implicit-function-declaration -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DHAVE_TERMCAP -D_GNU_SOURCE -DHAVE_PAM -c supervise-daemon.c -o supervise-daemon.o supervise-daemon.c: In function ‘supervisor’: supervise-daemon.c:450:23: error: ‘SIGUNUSED’ undeclared (first use in this function); did you mean ‘SI_USER’? signal_setup_restart(SIGUNUSED, handle_signal); ^~~~~~~~~ SI_USER supervise-daemon.c:450:23: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [../../mk/prog.mk:35: supervise-daemon.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/tmp/portage/sys-apps/openrc-0.34/work/openrc-0.34/src/rc' make[1]: *** [../mk/subdir.mk:26: all] Error 2 make[1]: Leaving directory '/tmp/portage/sys-apps/openrc-0.34/work/openrc-0.34/src' make: *** [/tmp/portage/sys-apps/openrc-0.34/work/openrc-0.34//mk/subdir.mk:26: all] Error 2 * ERROR: sys-apps/openrc-0.34::gentoo failed (compile phase): Reproducible: Always
SIGUNUSED was deleted in sys-libs/glibc-2.26.
I pushed 0.34.1 to allow it to build on glibc-2.26. Which version of gcc are you running? I am not seeing the warnings you are. Thanks, William
(In reply to William Hubbs from comment #2) > I pushed 0.34.1 to allow it to build on glibc-2.26. > > Which version of gcc are you running? I am not seeing the warnings you > are. > > Thanks, > > William GCC-7.2.0
I guess we can close this then.