gcc -I. -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -DHAVE_CONFIG_H -Wall -W -Wdate-time -D_FORTIFY_SOURCE=2 -c lib/snprintf.c -o lib/snprintf.o
lib/snprintf.c: In function ‘dopr’:
lib/snprintf.c:504:44: warning: this statement may fall through [-Wimplicit-fallthrough=]
504 | cnk->flags |= DP_F_UP;
| ^
lib/snprintf.c:505:25: note: here
505 | case 'x':
| ^~~~
lib/snprintf.c:514:44: warning: this statement may fall through [-Wimplicit-fallthrough=]
514 | cnk->flags |= DP_F_UP;
| ^
lib/snprintf.c:515:25: note: here
515 | case 'a':
| ^~~~
lib/compat.c: In function ‘sys_gettimeofday’:
lib/compat.c:154:16: error: too few arguments to function ‘gettimeofday’
154 | return gettimeofday(tv);
| ^~~~~~~~~~~~
In file included from ./rsync.h:365,
from lib/compat.c:22: /usr/include/x86_64-linux-gnu/sys/time.h:67:12: note: declared here
67 | extern int gettimeofday (struct timeval *__restrict __tv,
| ^~~~~~~~~~~~
lib/compat.c:156:1: warning: control reaches end of non-void function [-Wreturn-type]
156 | }
| ^
make[1]: *** [Makefile:65: lib/compat.o] Error 1
[…]
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
[…]
This fixes the build:
--- a/configure.ac
+++ b/configure.ac
@@ -852,6 +852,7 @@ fi
AC_CACHE_CHECK([if gettimeofday takes tz argument],rsync_cv_HAVE_GETTIMEOFDAY_TZ,[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>
+#include <stdlib.h>
#include <unistd.h>]], [[struct timeval tv; exit(gettimeofday(&tv, NULL));]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])])
if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday()
takes a time-zone arg])
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:06:23 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,979 |