Re: errors building m4 on interix/sfu/sua
<jay.krell <at> cornell.edu>
2009-06-16 14:08:02 GMT
Isn't just ifdef estale around use of it sufficient? Or is there some
chance of const int or such? Given that const int cannot be switched
on in C, they must all be defines and simple ifdef suffices and is
fully portable no need for configury? Right? Old versions: just
showing lame options tried and even worked. I don't/won'tlikely have
- Jay (phone)
On Jun 16, 2009, at 5:05 AM, Eric Blake <ebb9 <at> byu.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> [adding bug-gnulib]
> According to Jay on 6/16/2009 1:04 AM:
>> spawni.c: In function `gl_posix_spawn_internal':
>> spawni.c:233: warning: implicit declaration of function `seteuid'
>> spawni.c:234: warning: implicit declaration of function `setegid'
>> spawni.c:354: error: `ESTALE' undeclared (first use in this function)
>> spawni.c:354: error: (Each undeclared identifier is reported only
>> spawni.c:354: error: for each function it appears in.)
>> => suggest #ifdef ESTALE around the use of ESTALE
>> (I see Posix mandates ESTALE, and gnulib works around it missing on
>> some systems.)
>> seteuid/gid are "only" warnings so I guess ok.
>> seteuid is in libc.a but not any headers.
> Thanks for the report. Yes, gnulib can work around missing ESTALE,
> but we
> would need to port errno_h.m4 to detect interix's situation on which
> errno's are already defined. Interix has not had a champion on the
> list lately, so if you are willing, please step in to help us port
> to your
> platform. Are there any other errors besides ESTALE missing? Or put
> another way, would modifying the gl_HEADER_ERRNO_H macro to check for
> missing ESTALE be sufficient to detect that your system's errno.h is
> lacking, and that the existing replacement header would then pick up
> the slack? Seeing the contents of config.log around the point where
> tells you "checking for complete errno.h" would be helpful.
>> fatal-signal.c: In function `install_handlers':
>> fatal-signal.c:189: error: `SA_NODEFER' undeclared (first use in this
> I'm not worried about fixing older m4 versions. Let's focus on
> the latest to work.
> - --
> Don't work too hard, make some time for fun as well!
> Eric Blake ebb9 <at> byu.net
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Cygwin)
> Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----