Source: man-db
Version: 2.13.1-1
Severity: important
Tags: ftbfs upstream
Justification: fails to build from source
User: [email protected]
Usertags: glibc-2.43

Dear maintainer,

man-db fails to build from source with glibc 2.43, currently in
experimental. From the build log:

| libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../gl/lib -I../.. 
-Wdate-time -D_FORTIFY_SOURCE=2 -Wno-cast-qual -Wno-conversion -Wno-float-equal 
-Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter 
-Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion 
-Wno-type-limits -Wno-unused-const-variable -Wno-unsuffixed-float-constants 
-Wno-error -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/man-db-2.13.1=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wall -c 
../../../../gl/lib/argp-fmtstream.c  -fPIC -DPIC -o 
.libs/libgnu_la-argp-fmtstream.o
| In file included from /usr/include/features.h:539,
|                  from 
/usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
|                  from /usr/include/stdlib.h:26,
|                  from ./stdlib.h:51,
|                  from ../../../../gl/lib/argp-fmtstream.c:26:
| ./stdlib.h:820:20: error: expected identifier or '(' before '_Generic'
|   820 | _GL_EXTERN_C void *bsearch (const void *__key,
|       |                    ^~~~~~~
| make[5]: *** [Makefile:3777: libgnu_la-argp-fmtstream.lo] Error 1
| make[5]: Leaving directory 
'/build/reproducible-path/man-db-2.13.1/debian/build/gl/lib'
| make[4]: *** [Makefile:5653: all-recursive] Error 1
| make[4]: Leaving directory 
'/build/reproducible-path/man-db-2.13.1/debian/build/gl/lib'
| make[3]: *** [Makefile:3296: all] Error 2
| make[3]: Leaving directory 
'/build/reproducible-path/man-db-2.13.1/debian/build/gl/lib'
| make[2]: *** [Makefile:2289: all-recursive] Error 1
| make[2]: Leaving directory 
'/build/reproducible-path/man-db-2.13.1/debian/build'
| make[1]: *** [Makefile:2221: all] Error 2
| make[1]: Leaving directory 
'/build/reproducible-path/man-db-2.13.1/debian/build'
| dh_auto_build: error: cd debian/build && make -j1 returned exit code 2
| make: *** [debian/rules:3: binary] Error 25
| dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2

The full build log is attached to this bug report.

The issue is due to ISO C23 declaration of bsearch, which now returns a
pointer to a const-qualified type when the input argument is a pointer
to a const-qualified type [1].

Regards
Aurelien

[1] 
https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=e271fb2e4d76903c77a302aaec1ca22ce31027d0;hb=f762ccf84f122d1354f103a151cba8bde797d521#l19

Attachment: man-db_amd64-2026-01-31T22:53:24Z.build.gz
Description: application/gzip

Reply via email to