In libnbd we use sys_errlist[] to make a perror function that is safe to call after fork and before exec:
https://github.com/libguestfs/libnbd/blob/a6ba108309d9250e5f7fe0a5d41a996b7a...
It looks as if glibc removed this list, which is annoying. Two questions:
(1) How can we write a fork-safe perror function?
(2) Why is the configure not working (it detects that sys_errlist is still available)?
https://github.com/libguestfs/libnbd/blob/a6ba108309d9250e5f7fe0a5d41a996b7a...
Rich.