This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: VAX Ultrix bootstrap failure with gcc-2.96
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: VAX Ultrix bootstrap failure with gcc-2.96
- From: Bruce Korb <bkorb at sco dot COM>
- Date: Mon, 05 Jun 2000 12:40:47 -0700
- CC: gcc-patches at gcc dot gnu dot org
- Organization: Santa Cruz Operations
- References: <200006051926.PAA00793@hiauly1.hia.nrc.ca>
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.