Collin Funk <[email protected]> writes:

> Is that how it typically works? It seems a bit unfortuante to need to
> wait for someones program to crash, luckily just a test in this case,
> before it is noticed. See the following built without Gnulib:
>
>     $ cat main.c
>     #define _GNU_SOURCE 1
>     #include <stdio.h>
>     #include <string.h>
>     #include <errno.h>
>     int
>     main (void)
>     {
>       printf ("%s\n", strerrorname_np (EPERM));
>       printf ("%s\n", strerrorname_np (EFTYPE));
>       return 0;
>     }
>     $ gcc main.c; ./a.out
>     EPERM
>     Segmentation fault         (core dumped) ./a.out

Ah, ignore me. I think this is a Fedora bug. Rebuilding glibc from
master will result in stdio-common/test-strerr.c passing with EFTYPE
defined. I guess the Fedora package just needs to be rebuilt. I reported
it here [1]. If so, Gnulib should be fine to ignore it instead of
replacing the function.

Collin

[1] https://bugzilla.redhat.com/2533579

Reply via email to