Package: src:libkqueue
Version: 2.0.3-1.1
Severity: important
Tags: ftbfs

Doing a rebuild on arm64, I saw the following failure:

/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.   
-Wdate-time -D_FORTIFY_SOURCE=2 -I./src/common -I./include -Wall -Wextra 
-Wno-missing-field-initializers -Werror -g -O2 -std=c99 -D_XOPEN_SOURCE=600 
-fvisibility=hidden -g -O2 
-fdebug-prefix-map=/home/steve/debian/build/kqueue/libkqueue-2.0.3=. 
-fstack-protector-strong -Wformat -Werror=format-security -c -o 
src/common/libkqueue_la-kevent.lo `test -f 'src/common/kevent.c' || echo 
'./'`src/common/kevent.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 
-I./src/common -I./include -Wall -Wextra -Wno-missing-field-initializers 
-Werror -g -O2 -std=c99 -D_XOPEN_SOURCE=600 -fvisibility=hidden -g -O2 
-fdebug-prefix-map=/home/steve/debian/build/kqueue/libkqueue-2.0.3=. 
-fstack-protector-strong -Wformat -Werror=format-security -c 
src/common/kevent.c  -fPIC -DPIC -o src/common/.libs/libkqueue_la-kevent.o
src/common/kevent.c: In function 'kevent_dump':
src/common/kevent.c:107:37: error: '%s' directive output may be truncated 
writing up to 1023 bytes into a region of size between 931 and 1004 
[-Werror=format-truncation=]
src/common/kevent.c:98:28:
     return ((const char *) &buf[0]);
                            ~~~~~~~   
src/common/kevent.c:107:37:
             "{ ident=%d, filter=%s, %s, %s, data=%d, udata=%p }",
                                     ^~
src/common/kevent.c:107:13: note: using the range [-2147483648, 2147483647] for 
directive argument
             "{ ident=%d, filter=%s, %s, %s, data=%d, udata=%p }",
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

I can reporiduce just the same on amd64. Using -Werror with newere
compilers...

-- System Information:
Debian Release: 9.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to