X-Recipient: archive-cygwin@delorie.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=De1RNEUUvexlwQFwJK2flgBCbCgKGfLFl3AuNFqFIXXUNBOWWVdo+
	IztmDOJMnKXJo2BBZ2Ja8mes7JmekEmoPrgCdYhVueoypnezmtKneUdjtFYE5r73
	7iPvcqweLoFVlMzrGmr7V75P+mUP96sfZ3xsWgRJ30JDPp8GQWrVBI=
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=anh3Psf3ywbZrmgjxI/l+tRLwj8=; b=cMavsU8GJconzarWhGjQ/dQ1XhCb
	RZqQ3klggLjVYzxEfq335xBKx4MBQ3r4TrrudZPz69F8hctRCBkD8SkF9ZnY/DBW
	y4lUb4kjSRq+I/KXWV00BisyCzc3Ox1p397IJ26oCbppPkH2Y6RS+isP9Nqj6Eio
	6ZBB52OnQEruKwE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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 10:01:17 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin-1.7.28 getpwent header declaration changes ?
Message-ID: <20140206090117.GD2821@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <52F339CA.5070305@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="TMTfqzsZeEKgETVO"
Content-Disposition: inline
In-Reply-To: <52F339CA.5070305@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

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

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:
>=20
> ----------------------------------------------------------------
> /pub/devel/octave/octave-3.8.0-2/src/octave-3.8.0/liboctave/system/oct-pa=
sswd.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

The default settings per the sys/cdefs.h header are:

  #define __POSIX_VISIBLE         200809
  #define __XSI_VISIBLE           700
  #define __BSD_VISIBLE           1
  #define __ISO_C_VISIBLE         2011

unless your environment defines one of

  _XOPEN_SOURCE
  _POSIX_C_SOURCE
  _ANSI_SOURCE
  _C99_SOURCE
  _C11_SOURCE
  _GNU_SOURCE

Have a look at the end of /usr/include/sys/cdefs.h, it explains things.


Corinna

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

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

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

iQIcBAEBAgAGBQJS809dAAoJEPU2Bp2uRE+ggR8QAKDRVcMTbWL1J4PeVq1xUxpO
7HOvC7N6M9mXzNLNhbAeARMWyJxX1WySYmV0ugP636fGaYlzwj9DgPMyFmveY8+2
c+NQGxkutSTED58iO0oNIP2DEteMWEH4b8oGQ8AwCzob4CDwTghJPl4fZVOksMr0
fZzUTx4Wll5DcDizVdCFywWhK31eMuGMp2u/RHpmn0GGHG9VkSF+7pw3GuftVVx2
yB6gqxvwrXwFFb2amaOttj2COZ8IE4NhyDQSn4TUJBWMvan+t+hupgyZE4zAdrwd
u1z0O0XlC0t0oKB+ssX3tkncdY3PzGrpkeSygSQgxrCCxJKpO+LatXngdTeEqWNc
xfyWdQDkYFotj/XpGzPHH9lJ0agXGwGYGPVXIWEmy6AUJHDpu4cPnLF2N0UKY1Py
y2+e3sn+JFic40j2kcPqExZrIPwW+OdXUsYNQW38YZneBuBC66l/GiUBXjbdJ9C/
wauboFLeDDLwtrTs78zmDdmqvdyv/t3LrlawuX84C9hsANzQ0nSZ2mpoIyZQLRpe
+AQgUCGiZl9ZoJM60jOnxww+h0k8fbFRXKNlk2ITPd6/+xFL5ijtUVax4NN+z4zU
BtkvUVkfkwhnqx5Hrtn3YkgpD+GYMVwmG7W0Aec/c8x3WlrDZ8pAMfVonD3pDBM1
l367AsnRI0HIuM6F15lT
=5BGc
-----END PGP SIGNATURE-----

--TMTfqzsZeEKgETVO--
