[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#965941: src:glibc: FTBFS with libselinux-dev (>= 3.1) due to deprecations warnings



Package: src:glibc
Version: 2.31-1
Severity: serious
Tags: upstream ftbfs
Justification: fails to build from source (but built successfully in the past)

Since the upload of libselinux 3.1 to unstable, glibc doesn't build
anymore due to deprecation warnings:

| ...
| x86_64-linux-gnu-gcc-10 makedb.c -c -std=gnu11 -fgnu89-inline  -pipe -O2 -g -fdebug-prefix-map=/home/aurel32/work/glibc/glibc-2.31=. -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fstack-protector-strong -Wstrict-prototypes -Wold-style-definition -fmath-errno   -fpie       -isystem /home/aurel32/work/glibc/glibc-2.31/debian/include  -I../include -I/home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc/nss  -I/home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc  -I../sysdeps/unix/sysv/linux/x86_64/64  -I../sysdeps/unix/sysv/linux/x86_64  -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/x86/nptl  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch  -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64  -I../sysdeps/x86  -I../sysdeps/ieee754/float128  -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -isystem /home/aurel32/work/glibc/glibc-2.31/debian/include  -D_LIBC_REENTRANT -include /home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc/libc-modules.h -DMODULE_NAME=nonlib -include ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -o /home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc/nss/makedb.o -MD -MP -MF /home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc/nss/makedb.o.dt -MT /home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc/nss/makedb.o
| makedb.c: In function 'set_file_creation_context':
| makedb.c:849:3: error: 'security_context_t' is deprecated [-Werror=deprecated-declarations]
|   849 |   security_context_t ctx;
|       |   ^~~~~~~~~~~~~~~~~~
| makedb.c:863:3: error: 'matchpathcon' is deprecated: Use selabel_lookup instead [-Werror=deprecated-declarations]
|   863 |   if (matchpathcon (outname, S_IFREG | mode, &ctx) == 0 && ctx != NULL)
|       |   ^~
| In file included from makedb.c:50:
| /usr/include/selinux/selinux.h:500:12: note: declared here
|   500 | extern int matchpathcon(const char *path,
|       |            ^~~~~~~~~~~~
| cc1: all warnings being treated as errors
| make[3]: *** [../o-iterator.mk:9: /home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc/nss/makedb.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[3]: Leaving directory '/home/aurel32/work/glibc/glibc-2.31/nss'
| make[2]: *** [Makefile:487: nss/others] Error 2
| make[2]: Leaving directory '/home/aurel32/work/glibc/glibc-2.31'
| make[1]: *** [Makefile:9: all] Error 2
| make[1]: Leaving directory '/home/aurel32/work/glibc/glibc-2.31/build-tree/amd64-libc'
| make: *** [debian/rules.d/build.mk:114: /home/aurel32/work/glibc/glibc-2.31/stamp-dir/build_libc] Error 2
| dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2


Reply to: