control: reassign -1 src:glibc/2.41-1
control: affects -1 bash

Hi,

On 2025-03-01 21:00, Santiago Vila wrote:
> Package: src:bash
> Version: 5.2.37-1.1
> Severity: serious
> Tags: ftbfs trixie sid
> 
> Dear maintainer:
> 
> During a rebuild of all packages in unstable, your package failed to build:
> 
> --------------------------------------------------------------------------------

[...]

> gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde 
>  -L./lib/sh  -Wl,-z,relro -Wl,-z,now -rdynamic -g -O2 
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -fcf-protection -Wall  -static -o bash shell.o eval.o 
> y.tab.o general.o make_cmd.o print_cmd.o  dispose_cmd.o execute_cmd.o 
> variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o 
> hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o 
> version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o 
> bashline.o  list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o 
> pcomplib.o syntax.o xmalloc.o  -lbuiltins -lglob -lsh -lreadline -lhistory 
> -ltinfo -ltilde     
> /usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname':
> ./build-static/lib/sh/../../.././lib/sh/tmpfile.c:160:(.text+0x172): warning: 
> the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
> /usr/bin/ld: bashline.o: in function `bash_groupname_completion_function':
> ./build-static/.././bashline.c:2665:(.text+0x8081): warning: Using 'getgrent' 
> in statically linked applications requires at runtime the shared libraries 
> from the glibc version used for linking
> /usr/bin/ld: ./build-static/.././bashline.c:2662:(.text+0x806f): warning: 
> Using 'setgrent' in statically linked applications requires at runtime the 
> shared libraries from the glibc version used for linking
> /usr/bin/ld: ./build-static/.././bashline.c:2673:(.text+0x80d9): warning: 
> Using 'endgrent' in statically linked applications requires at runtime the 
> shared libraries from the glibc version used for linking
> /usr/bin/ld: ./lib/sh/libsh.a(netopen.o): in function `_netopen6':
> ./build-static/lib/sh/../../.././lib/sh/netopen.c:229:(.text+0x93): warning: 
> Using 'getaddrinfo' in statically linked applications requires at runtime the 
> shared libraries from the glibc version used for linking
> /usr/bin/ld: ./lib/readline/libreadline.a(complete.o): in function 
> `rl_username_completion_function':
> ./build-static/lib/readline/../../.././lib/readline/complete.c:2307:(.text+0x48e1):
>  warning: Using 'getpwent' in statically linked applications requires at 
> runtime the shared libraries from the glibc version used for linking
> /usr/bin/ld: 
> ./build-static/lib/readline/../../.././lib/readline/complete.c:2302:(.text+0x48d6):
>  warning: Using 'setpwent' in statically linked applications requires at 
> runtime the shared libraries from the glibc version used for linking
> /usr/bin/ld: shell.o: in function `get_current_user_info':
> ./build-static/.././shell.c:1920:(.text+0x642): warning: Using 'endpwent' in 
> statically linked applications requires at runtime the shared libraries from 
> the glibc version used for linking
> /usr/bin/ld: ./lib/readline/libreadline.a(tilde.o): in function 
> `tilde_expand_word':
> ./build-static/lib/readline/../../.././lib/readline/tilde.c:386:(.text+0x144):
>  warning: Using 'getpwnam' in statically linked applications requires at 
> runtime the shared libraries from the glibc version used for linking
> /usr/bin/ld: shell.o: in function `get_current_user_info':
> ./build-static/.././shell.c:1902:(.text+0x5ad): warning: Using 'getpwuid' in 
> statically linked applications requires at runtime the shared libraries from 
> the glibc version used for linking
> /usr/bin/ld: bashline.o: in function `bash_servicename_completion_function':
> ./build-static/.././bashline.c:2609:(.text+0x7f21): warning: Using 
> 'getservent' in statically linked applications requires at runtime the shared 
> libraries from the glibc version used for linking
> /usr/bin/ld: ./build-static/.././bashline.c:2606:(.text+0x7f18): warning: 
> Using 'setservent' in statically linked applications requires at runtime the 
> shared libraries from the glibc version used for linking
> /usr/bin/ld: ./build-static/.././bashline.c:2631:(.text+0x800b): warning: 
> Using 'endservent' in statically linked applications requires at runtime the 
> shared libraries from the glibc version used for linking
> /usr/bin/ld: 
> /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/libc.a(getenv.o): 
> in function `getenv':
> (.text+0x0): multiple definition of `getenv'; 
> ./lib/sh/libsh.a(getenv.o):./build-static/lib/sh/../../.././lib/sh/getenv.c:52:
>  first defined here
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:595: bash] Error 1
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-static'
> make[1]: *** [debian/rules:370: stamps/stamp-build-static] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:129: static-build] Error 2
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
> --------------------------------------------------------------------------------

This build failure is due to changes in the getenv function in glibc
2.41 and bash statically redefining the getenv function, which is
completely undefined. That said upstream glibc found a workaround to
this issue that went in the glibc 2.41 stable branch. I am therefore
reassigning the bug to the glibc package, it will be fixed in the 2.41-4
upload.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurel...@aurel32.net                     http://aurel32.net

Reply via email to