Cross-compiling with glibc-2.32 fails

David Michael <[email protected]> Tue, 25 Aug 2020 17:47:04 -0400
Newsgroups gmane.comp.tools.sudo.user
Message-ID <CAEvUa7nLhRcLBhN=OO7bwf+CNjVXM94DFwyJsqsM9tjcfdk-TQ@mail.gmail.com>
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
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users