VAX Ultrix bootstrap failure with gcc-2.96

Bruce Korb bkorb@sco.COM
Mon Jun 5 12:43:00 GMT 2000


John David Anglin wrote:
> 
> > There is an autoconf test for this misfeature.
> > With that test added to configure, you can simply:
> >
> > > +extern int                    getgroups(int, GETGROUPS_T *);
> 
> I believe that the following patch tests for the misfeature as per your
> suggestion.  I have checked that auto-hosts.h contains the GETGROUPS_T
> define.  However, I haven't tested yet whether this define gets propagated
> to the fixed sys/unistd.h under Ultrix.  Hopefully, it will.

There is no reason why it should.  This "sys-protos.h" file is only
used internally by gcc, wherein the "auto-hosts.h" is also available.
"auto-hosts.h" is not installed, so <unistd.h> cannot depend upon it.
Also, the name GETGROUPS_T would pollute the user name space.  To get
around that, you would have to alias it to another name and get involved
in lots of ugly stuff better left alone.  From my vantage point,
what you have now should be just fine.

 - Bruce

> 2000-06-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
> 
>         * configure.in: Add AC_TYPE_GETGROUPS test.
>         * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
>         * configure: Rebuilt.


More information about the Gcc-patches mailing list