delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/09/15:10:52

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=VO1sJR0X6L5iYjrj3In74ArabByDeIDuqXMhrdzNCWddeJopZZ4Ga
6k469VdP57+jM5OBRwkYbKASXfUyaTn+ZaHhOBaapMvEpVkU8J1gG98PBPyioy/A
mp2cmLo+WbLdqIBI4csW1Ps77gZr7KZ4JwaWf11zPfXCJBtGQNNkB0=
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=iVViYCPPPaGNULjqYszEHsr8QH8=; b=uoTyjVUPF08f2YAIIwVWPW1yA33y
DlFUs3QFsTjWZtiVKsHPPSzJ167uiYhRaX5RhGh2Di/uFo7VSA6xIr7p9ug2UNXR
DuIx64vv4WZ2UU3GKiWLvquDvUWZb3UhNJbbncRYf/njs6vrSuizJjGvZfnZWaBM
z7QR2328AfCxCXE=
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-Virus-Found: No
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: Sun, 9 Feb 2014 21:09:56 +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: <20140209200956.GH2821@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> <52F7DC01 DOT 3080600 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <52F7DC01.3080600@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

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

On Feb  9 20:50, 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
> >
> >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
> probably I am missing something obvious, but should not
>=20
> /usr/include/sys/cdefs.h
>=20
> be included in some way in
> /usr/include/pwd.h
>=20
> to make working the
>=20
>     #if __XSI_VISIBLE >=3D 500
>     struct passwd   *getpwent (void);
>     void             setpwent (void);
>     void             endpwent (void);
>     #endif
>=20
> ?

You are oh so right.  I'm just uploading a new cygwin-1.7.18-2
package which fixes this and the sys/file.h bug.


HTH,
Corinna

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

--eBmxOkhHhLj/unod
Content-Type: application/pgp-signature

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

iQIcBAEBAgAGBQJS9+CUAAoJEPU2Bp2uRE+g+V4QAIARxwV30bCPbBVLMMRoSanV
0bK7SRnuhyYNnfaLcNLFdF1CQDO41nNNeEcYNznS4q0/e2eY31qgh21QCJFVTUfk
fD5dTemMqSYtcJqMhItCZUZHMlMnYLnaEcek+DcF7xeRrH75hi9D1HXywnV22w/7
qFkwKQEfMwXeqE+zYDjFHOyJxciZfwbIxnfdYaDsF94+oFSNnhroH58NjTbkOpR/
zd1knCzXF3Ht/hO0i2mcMeRUw+F6qKA5HxNzQ+0iTAiLtwr+rd8AUdAFY2WCRW3n
qXNPGvZndjGFk9oba9eXsunNBbdV29tNLfDR1gjtcn2pNii3luktyujHe5kaqrM5
Iw78B37tmjSL7wYQwGM5WmNr1+n2FN799O1v2xSXXHkhvf796bq7LugiVG0cmjFY
IhYQmXwBlbsqzF348PGzWLfTCgdlAlm24RsBxR7IrIFI+ucb1d0lOhEZa1Kcp6al
+wmdR3LGMRZBuX6Aqa+pbfSqhwO1bP/UO22HTeN25BM5oceNNHq+2oHk+azB4jdg
al6Np3k751NVxO/eJOu2EqDsf+xIZh3TT7mM9IKzJVZ3j4PLm76iEYdmqRuqpUc8
d0nMJ2OLeye37Dl8Ydea5FwlFh01HhhYYS7lSeYAH39gmLT02vMa7493JZu9kF3J
j9/4ZAHRchP/SCH2p/fe
=nYAY
-----END PGP SIGNATURE-----

--eBmxOkhHhLj/unod--

- Raw text -


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