Bug#872406: baresip FTBFS: error: storage size of 'timeout' isn't known

Adrian Bunk bunk at debian.org
Thu Aug 17 06:48:10 UTC 2017


Source: baresip
Version: 0.5.4-1
Severity: serious

https://buildd.debian.org/status/fetch.php?pkg=baresip&arch=amd64&ver=0.5.4-1%2Bb2&stamp=1502875243&raw=0

...
gcc -DRELEASE -Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wbad-function-cast -Wsign-compare -Wnested-externs -Wshadow -Waggregate-return -Wcast-align -g -O3   -Wuninitialized -Wno-strict-aliasing -fPIC -DLINUX -DOS=\"linux\" -std=c99 -pedantic -DARCH=\"x86_64\" -DUSE_OPENSSL -DUSE_TLS -DUSE_OPENSSL_DTLS -DUSE_DTLS -DUSE_OPENSSL_SRTP -DUSE_DTLS_SRTP -DUSE_ZLIB -DHAVE_PTHREAD -DHAVE_GETIFADDRS -DHAVE_STRERROR_R -DHAVE_GETOPT -DHAVE_INTTYPES_H -DHAVE_NET_ROUTE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STDBOOL_H -DHAVE_INET6 -DHAVE_RESOLV -DHAVE_SYSLOG -DHAVE_FORK -DHAVE_INET_NTOP -DHAVE_PWD_H -DHAVE_POLL	 -DHAVE_INET_PTON -DHAVE_SELECT -DHAVE_SELECT_H -DHAVE_SETRLIMIT -DHAVE_SIGNAL -DHAVE_SYS_TIME_H -DHAVE_EPOLL -DHAVE_UNAME -DHAVE_UNISTD_H -DHAVE_STRINGS_H -DHAVE_GAI_STRERROR -DVERSION=\"0.5.4\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Iinclude -I/usr/include/re -I/usr/inclu
 de -I/include -I/usr/local/include/rem -I/usr/include/rem -DUSE_VIDEO=1 -DMODULE_CONF -DPREFIX=\"/usr\" -DUSE_AVCODEC -DUSE_AVFORMAT -D_REENTRANT -isystem/usr/include/directfb \
	-c modules/directfb/directfb.c -o build-x86_64/modules/directfb/directfb.o -MD -MF build-x86_64/modules/directfb/directfb.d -MT build-x86_64/modules/directfb/directfb.o
In file included from /usr/include/directfb/direct/os/types.h:63:0,
                 from /usr/include/directfb/direct/os/waitqueue.h:36,
                 from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from modules/directfb/directfb.c:10:
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h: In function 'direct_waitqueue_wait_timeout':
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h:76:22: error: storage size of 'timeout' isn't known
      struct timespec timeout;
                      ^~~~~~~
mk/mod.mk:42: recipe for target 'build-x86_64/modules/directfb/directfb.o' failed
make[1]: *** [build-x86_64/modules/directfb/directfb.o] Error 1



/usr/include/directfb/direct/os/linux/glibc/waitqueue.h
needs the definition of struct timespec visible.

The strict mode -std=c99 set by /usr/share/re/re.mk
makes this definition not available by default.

Possible solutions:
- in re.mk, remove -std=c99 or make it -std=gnu99, or
- in re.mk, add -D_GNU_SOURCE (it already does that for kfreebsd), or
- in baresip, append one of -std=gnu99/-std=gnu11/-D_GNU_SOURCE



More information about the Pkg-voip-maintainers mailing list