[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: BeOS build broken for 2.0-devel tree. (ITS#403)



  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---1463807487-1639436713-945465038=:6024
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 17 Dec 1999, Kurt D. Zeilenga wrote:

> Allen Reese wrote:
> > I know for a fact that any version of BeOS >=4.5 sockets are not
> > file descriptors.
> 
> No, you have no clue what unreleased versions of BeOS will be like.
> And you don't know for a fact that the installer has linked in some
> socket library which resolves the issue.
That should be <= not >=.
As far as some library resolving the issue, that is possible.
 
> (this is not to say that we should or should use a platform test
> in this case, that should be discussed)
> 
> > > >initgroups(u,g) is missing.  I have added an initgroups define to
> > > >include/portable.h.in to fix this for BeOS.
> > >
> > > HAVE_INITGROUPS should be used to control behavior. This can
> > > either be localized in <ac/unistd.h> or in the particular
> > > .c file which called initgroups().
> > 
> > ac/unistd.h   servers/slapd/daemon.c is the only place I can find calling
> > it.  I'll look at writing an autoconf test for it.
> 
> The initgroups is already detected and HAVE_INITGROUPS is available.
> It just need to be properly used.
> 

Here are 2 patches that fix it in different manners.  the second is
probably better to use.

Allen Reese
Senior Software Engineer
Driversoft, Inc.
allen@driversoft.com
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread



---1463807487-1639436713-945465038=:6024
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="initgroups_option.1.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9912171410380.6024@plato.driversoft.com>
Content-Description: Patches include/portable.h.in
Content-Disposition: attachment; filename="initgroups_option.1.patch"

LS0tIGxkYXAvaW5jbHVkZS9wb3J0YWJsZS5oLmluCU1vbiBOb3YgIDEgMTg6
MTA6MzggMTk5OQ0KKysrIC4uL2xkYXAvaW5jbHVkZS9wb3J0YWJsZS5oLmlu
CUZyaSBEZWMgMTcgMTQ6MDI6MzcgMTk5OQ0KQEAgLTkyNCw2ICs5MjQsMTAg
QEANCiAjZGVmaW5lIExEQVBfREVCVUcNCiAjZW5kaWYNCiANCisjaWZuZGVm
IEhBVkVfSU5JVEdST1VQUw0KKyNkZWZpbmUgaW5pdGdyb3Vwcyh1LGcpICgw
KQ0KKyNlbmRpZiAvKiBIQVZFX0lOSVRHUk9VUFMgKi8NCisNCiAjaW5jbHVk
ZSAibGRhcF9jZGVmcy5oIg0KICNpbmNsdWRlICJsZGFwX2ZlYXR1cmVzLmgi
DQogDQo=
---1463807487-1639436713-945465038=:6024
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="initgroups_option.2.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9912171410381.6024@plato.driversoft.com>
Content-Description: patches servers/slapd/user.c
Content-Disposition: attachment; filename="initgroups_option.2.patch"

LS0tIGxkYXAvc2VydmVycy9zbGFwZC91c2VyLmMJV2VkIFNlcCAgOCAxMTow
NjozNCAxOTk5DQorKysgLi4vbGRhcC9zZXJ2ZXJzL3NsYXBkL3VzZXIuYwlG
cmkgRGVjIDE3IDE0OjA3OjQyIDE5OTkNCkBAIC0xMDYsNyArMTA2LDExIEBA
DQogICAgIH0NCiANCiAgICAgaWYgKCB1c2VyICkgew0KLQlpZiAoIGdldHVp
ZCgpID09IDAgJiYgaW5pdGdyb3VwcyggdXNlciwgZ2lkICkgIT0gMCApIHsN
CisJaWYgKCBnZXR1aWQoKSA9PSAwIA0KKyNpZmRlZiBIQVZFX0lOSVRHUk9V
UFMNCisJCSYmIGluaXRncm91cHMoIHVzZXIsIGdpZCApICE9IDAgDQorI2Vu
ZGlmDQorCQkpIHsNCiAJICAgIERlYnVnKCBMREFQX0RFQlVHX0FOWSwNCiAJ
CSAgICJDb3VsZCBub3Qgc2V0IHRoZSBncm91cCBhY2Nlc3MgKGdpZCkgbGlz
dFxuIiwgMCwgMCwgMCApOw0KIAkgICAgZXhpdCggRVhJVF9GQUlMVVJFICk7
DQo=
---1463807487-1639436713-945465038=:6024--