delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/06/09:13:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=ZMkeN6gortFfgiONIFXIdpr9N2+H0hJC3bdqzsWApOvamkp9Nc8NW
v6oAQZXOeTbOnzTdg5QgEUqnPIUEXfNmiugJ0q/O2H7iSh7HYScfyb7pjp8ODEwU
kzJojOa/f8fBkbiVQfo9Rrzg8JTDim561pXa3MyTxrWs57XmHn5iAo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=u/+nkA1gxhoIuGGLo8ftaiuoQLQ=; b=ygwAPgns9a2fMHjkwT+de/D1zuEE
NqC7onPqi3blIQBmYa8EjYYca8RgTwBpo7db7v2SbNbtcwKMmr0jppxkf9hk9394
9Af+eNj53rxph7OSFkiNY97RB0d5PdoOi2+Sr/bsz/cuvDaXUwqU/RCmM/+NM6hs
Bhia1D1i2V34Gxo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 6 Feb 2014 15:13:21 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin-1.7.28 getpwent header declaration changes ?
Message-ID: <20140206141321.GI2821@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <52F339CA DOT 5070305 AT gmail DOT com> <20140206090117 DOT GD2821 AT calimero DOT vinschen DOT de> <52F361C5 DOT 3000807 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <52F361C5.3000807@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--DEfZqDS1MPR2ysog
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb  6 11:19, Marco Atzeri wrote:
>=20
>=20
> On 06/02/2014 10:01, Corinna Vinschen wrote:
> >On Feb  6 08:29, Marco Atzeri wrote:
> >>on cygwin-1.7.28 64 bit but not on cygwin-1.7.27,
> >>(only system difference) compiling octave I see:
> >>
> >>----------------------------------------------------------------
> >>/pub/devel/octave/octave-3.8.0-2/src/octave-3.8.0/liboctave/system/oct-=
passwd.cc
> >>:114:25: error: '::getpwent' has not been declared
> >>    return octave_passwd (::getpwent (), msg);
> >>                          ^
> >>[...]
> >>Is something slightly changed in the  relative system headers ?
> >
> >I don't know anything about octave, but what has changed is that newlib
> >is finally introducing BSD-like visibility macros.  The pwd.h header now
> >contains this:
> >
> >   #if __XSI_VISIBLE >=3D 500
> >   struct passwd   *getpwent (void);
> >   void             setpwent (void);
> >   void             endpwent (void);
> >   #endif
> > [...]
>=20
> thanks for the hints
>=20
> for what I can see  "_GNU_SOURCE" is defined in both cases at
> configure stage and reported in config.status and config.h
>=20
> I will look to compare the preprocessor output to see why building
> on  1.7.28 the "/* Everything and the kitchen sink. */" is not pulled in

Btw., it would be a good idea to get rid of calls to getpwent/getgrent
in future.  They *probably* won't do anymore what they were supposed to
do if you don't have passwd/group files.  A full implementation would
require to enumerate the local SAM and, at least, the primary domain
accounts at runtime.  That would be possible, but it comes at a hefty
price in terms of performance.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--DEfZqDS1MPR2ysog
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS85iBAAoJEPU2Bp2uRE+gasoP/0AYo7PYuk+p8fHCeDi9/Ued
HGqY0BjOFsQSyoNS027f66qRWb93EnwDkCzK/tdK8734COF+XGMTkOYudL4HEX31
W9qCj7dBT8dIiJLxdnOZhkCjDFiBKpWkBNRBoFHfO5BDkRBonCZ8IYVxvtYvA4hp
V/V0mnhz8wjE8nx0WUp1WOGmkWo89CVtlmyWy0ybRciiY/ZEE33GDpvY5A2HbeJi
/sSmWUeeQHJKYjfnw0AzB276pHSHlYk5ZyUiI3Xx79e0fkBW76Rjqq9TXKK2p27D
EBfUEc0VCqQQg0ahigRs/Ed9z7FPWi8+yboQIaaV0OWEl+97QQHlTI4OSJ6m7Dw+
2GLuuN1cTzqNzQ/LA4DvAGgIGNDDtioXUxIv4NguA3rFRb0FC+BeF1htLlgjh2vQ
ksTLkC1uwJKJl0Kx39twar2jAFyrtcD8pNsB4jk6YF4NKioZxgMpPRKYWPN5fJqX
vFabmVKwVLEoCLUo7Vqjf5T/c9wC5dvuRVdJUzo7Vd+RtiKg+U2wHpA68XLXAE+N
vWSHH91AKbxBlihZ1vhIDPoDrOFqzYYhCPtxYRQ3PC6+FsYcLRoe3dgmEVXNzxLT
Ttap5SmuY12VuKSY6tu8bS05qNs9t7J48D6rXshvyxNP9aoqPq2FNyETEl44Podw
sbQyyuGdiVWZzD1bB+6o
=bVwC
-----END PGP SIGNATURE-----

--DEfZqDS1MPR2ysog--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019