[Zope-Coders] Zope HEAD doesn't compile on Windows

Chris McDonough chrism@zope.com
Wed, 27 Mar 2002 12:45:27 -0500


What does this module do?  I see that it checks the return value of the
initgroups system call, what does that mean?

----- Original Message -----
From: "Matt Behrens" <matt@zigg.com>
To: <zope-coders@zope.org>
Sent: Wednesday, March 27, 2002 11:57 AM
Subject: RE: [Zope-Coders] Zope HEAD doesn't compile on Windows


>
> > The plan is for ExtensionBuilder to work. I wish I had paid
> > closer attention to this :(
> >
> > Note that this is not the only problem - a cursory Google
> > search seems to show that there are non-win32 platforms
> > that are initgroups()-impaired :(
> >
> > The ideal thing would be for the initgroups module to
> > detect this and turn itself into a no-op (but compile
> > successfully), until we have a coherent distutils-based
> > build approach.
>
> Attached is a version of initgroups.c that becomes a stub if not
> compiling on UNIX.  It Works For Me(TM) and reflects Best Current
> Practice(TM) for figuring out if one is on UNIX but I'd appreciate a few
> people (esp. Mr. Withers) would test it out and let me know privately if
> it does the right thing (the results of 'import
> initgroups;dir(initgroups)' is sufficient).
>
> Distutils building is part of my Zope 2.6 proposal, incidentally (nudge
> nudge)
>