_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wl,-z,relro,-z,now -c compat.c In file included from compat.c:12: compat.c: In function ‘sigpipe_handler’: our_syslog.h:38:62: error: implicit declaration of function ‘strerror’; did you mean ‘perror’? [-Werror=implicit-function-declaration] 38 | #define syslog_perror(s) syslog(LOG_ERR, "%s: %s", s, strerror(errno)) | ^~~~~~~~ compat.c:168:5: note: in expansion of macro ‘syslog_perror’ 168 | syslog_perror("sigpipe write"); | ^~~~~~~~~~~~~ our_syslog.h:38:49: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] 38 | #define syslog_perror(s) syslog(LOG_ERR, "%s: %s", s, strerror(errno)) | ^~~~~~~~ ~~~~~~~~~~~~~~~ | | | int compat.c:168:5: note: in expansion of macro ‘syslog_perror’ 168 | syslog_perror("sigpipe write"); | ^~~~~~~~~~~~~ our_syslog.h:38:55: note: format string is defined here 38 | #define syslog_perror(s) syslog(LOG_ERR, "%s: %s", s, strerror(errno)) | ~^ | | | char * | %d compat.c: In function ‘sigpipe_assign’: compat.c:178:3: error: implicit declaration of function ‘memset’ [-Werror=implicit-function-declaration] 178 | memset(&sa, 0, sizeof(sa)); | ^~~~~~ compat.c:131:1: note: ‘memset’ is defined in header ‘’; did you forget to ‘#include ’? 130 | #include +++ |+#include 131 | compat.c: In function ‘sigpipe_read’: our_syslog.h:38:49: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] 38 | #define syslog_perror(s) syslog(LOG_ERR, "%s: %s", s, strerror(errno)) | ^~~~~~~~ ~~~~~~~~~~~~~~~ | | | int compat.c:194:5: note: in expansion of macro ‘syslog_perror’ 194 | syslog_perror("sigpipe read"); | ^~~~~~~~~~~~~ our_syslog.h:38:55: note: format string is defined here 38 | #define syslog_perror(s) syslog(LOG_ERR, "%s: %s", s, strerror(errno)) | ~^ | | | char * | %d cc1: some warnings being treated as errors make[1]: *** [Makefile:387: compat.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/pptpd-1.4.0' make: *** [Makefile:277: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.ubfk0S (%build) Bad exit status from /var/tmp/rpm-tmp.ubfk0S (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pptpd.spec