Package: dietlibc-dev
Version: 0.34~cvs20160606-7
Severity: serious
Control: affects -1 src:util-vserver linux-libc-dev

linux-libc-dev 4.13.13-1 -> 4.14.2-1 makes util-vserver FTBFS:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/util-vserver.html

...
diet -Os gcc -DHAVE_CONFIG_H -I.  -I ./lib -I ./ensc_wrappers -D_GNU_SOURCE 
-D_REENTRANT -DNDEBUG -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-fstack-protector-strong -Wformat -Werror=format-security -std=c99 -Wall 
-pedantic -W -funit-at-a-time -MT 
lib_internal/lib_internal_libinternal_diet_a-util-cleanupmount.o -MD -MP -MF 
lib_internal/.deps/lib_internal_libinternal_diet_a-util-cleanupmount.Tpo -c -o 
lib_internal/lib_internal_libinternal_diet_a-util-cleanupmount.o `test -f 
'lib_internal/util-cleanupmount.c' || echo './'`lib_internal/util-cleanupmount.c
In file included from lib_internal/util-cleanupmount.c:25:0:
/usr/include/linux/fs.h:366:23: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '__kernel_rwf_t'
 typedef int __bitwise __kernel_rwf_t;
                       ^~~~~~~~~~~~~~
Makefile:7565: recipe for target 
'lib_internal/lib_internal_libinternal_diet_a-util-cleanupmount.o' failed
make[3]: *** [lib_internal/lib_internal_libinternal_diet_a-util-cleanupmount.o] 
Error 1


The root cause is:

/usr/lib/x86_64-linux-gnu/diet/include/linux/fs.h does not exist
but /usr/include/linux/fs.h does exist.

/usr/lib/x86_64-linux-gnu/diet/include/linux/types.h does exist.

The result is a combination of the linux-libc-dev linux/fs.h
and the dietlibc-dev linux/types.h.

__bitwise is defined in /usr/include/linux/types.h but not in
/usr/lib/x86_64-linux-gnu/diet/include/linux/types.h, and
/usr/include/linux/fs.h just started using it.

Reply via email to