[sudo-users] Cross-compiling with glibc-2.32 fails

David Michael fedora.dm0 at gmail.com
Tue Aug 25 15:47:04 MDT 2020


Hi,

At a glance, it seems glibc-2.32 makes sudo fail to cross-compile,
since it no longer has sys_sigabbrev and causes executing a
cross-compiled program:

> checking for undeclared sys_sigabbrev... no
> ...
> riscv64-gentoo-linux-gnu-gcc -I../../include -I../.. -I. -D_PATH_SUDO_CONF=\"/etc/sudo.conf\" -DZLIB_CONST -D_FORTIFY_SOURCE=2 -DDEFAULT_TEXT_DOMAIN=\"sudo\" -O2 -pipe -ggdb -flto=jobserver -fvisibility=hidden ./mksigname.c -o mksigname
> ./mksigname > signame.c
> /bin/sh: ./mksigname: cannot execute binary file: Exec format error

The release notes[1] say it should be ported to a new function
sigabbrev_np.  I may not be able to work on that myself in the near
future, so does anyone happen to have another quick solution until
then?

Thanks.

David

[1] https://sourceware.org/glibc/wiki/Release/2.32#Packaging_Changes


More information about the sudo-users mailing list