From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin-1.7.28 getpwent header declaration changes ?
Date: Sun, 09 Feb 2014 20:20:00 -0000 [thread overview]
Message-ID: <20140209200956.GH2821@calimero.vinschen.de> (raw)
In-Reply-To: <52F7DC01.3080600@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2146 bytes --]
On Feb 9 20:50, Marco Atzeri wrote:
>
>
> 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 >= 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
> >
>
> probably I am missing something obvious, but should not
>
> /usr/include/sys/cdefs.h
>
> be included in some way in
> /usr/include/pwd.h
>
> to make working the
>
> #if __XSI_VISIBLE >= 500
> struct passwd *getpwent (void);
> void setpwent (void);
> void endpwent (void);
> #endif
>
> ?
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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-02-09 20:10 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 7:29 Marco Atzeri
2014-02-06 9:01 ` Corinna Vinschen
2014-02-06 10:20 ` Marco Atzeri
2014-02-06 13:00 ` Jan Nijtmans
2014-02-06 14:02 ` Corinna Vinschen
[not found] ` <CAO1jNws3H_Wbec=y_UoYkhrb5nMX7iT7_A5XaHcQKCw32o055g@mail.gmail.com>
2014-02-06 14:15 ` Fwd: " Jan Nijtmans
2014-02-06 14:28 ` Corinna Vinschen
2014-02-06 14:41 ` Corinna Vinschen
2014-02-06 14:13 ` Corinna Vinschen
2014-02-06 21:43 ` get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?) Warren Young
2014-02-07 9:49 ` Corinna Vinschen
2014-02-07 12:50 ` Andrey Repin
2014-02-07 17:26 ` Warren Young
2014-02-07 18:20 ` Andrey Repin
2014-02-07 13:53 ` David Stacey
2014-02-07 17:51 ` Warren Young
2014-02-07 19:21 ` Corinna Vinschen
2014-02-09 16:10 ` Warren Young
2014-02-09 16:16 ` Corinna Vinschen
2014-02-09 16:31 ` Corinna Vinschen
2014-02-09 16:37 ` Ken Brown
2014-02-09 17:12 ` David Stacey
2014-02-10 10:48 ` Warren Young
2014-02-10 13:16 ` Peter Rosin
2014-02-10 22:05 ` Warren Young
2014-02-10 23:35 ` David Stacey
2014-02-11 2:35 ` Andrey Repin
2014-02-12 0:06 ` David Stacey
2014-02-12 2:06 ` Warren Young
2014-02-12 3:54 ` Eric Blake
2014-02-12 9:09 ` Corinna Vinschen
2014-02-12 12:05 ` Andrey Repin
2014-02-12 15:16 ` Richard
2014-02-12 16:24 ` Ken Brown
2014-02-12 17:05 ` Richard
2014-02-12 17:15 ` Andrey Repin
2014-02-12 20:49 ` Corinna Vinschen
2014-02-12 22:53 ` Christopher Faylor
2014-02-13 11:46 ` Corinna Vinschen
2014-02-13 14:35 ` Andrey Repin
2014-02-13 14:38 ` Christopher Faylor
2014-02-13 15:37 ` Corinna Vinschen
2014-02-13 15:48 ` Christopher Faylor
2014-02-13 16:09 ` Corinna Vinschen
2014-02-13 18:33 ` get rid of getpwent? Achim Gratz
2014-02-13 19:02 ` Andrey Repin
2014-02-13 20:41 ` Corinna Vinschen
2014-02-13 21:48 ` Achim Gratz
2014-02-14 9:46 ` Corinna Vinschen
2014-02-12 4:40 ` get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?) Andrey Repin
2014-02-07 20:09 ` Warren Young
2014-02-07 20:25 ` Warren Young
2014-02-07 21:01 ` Corinna Vinschen
2014-02-07 21:30 ` Corinna Vinschen
2014-02-07 21:49 ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2014-02-08 10:38 ` Corinna Vinschen
2014-02-08 21:29 ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2014-02-09 1:29 ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2014-02-07 21:44 ` Larry Hall (Cygwin)
2014-02-07 22:45 ` David Stacey
2014-02-07 23:39 ` Larry Hall (Cygwin)
2014-02-08 0:50 ` Andrey Repin
2014-02-08 15:19 ` Warren Young
2014-02-08 15:39 ` Warren Young
2014-02-09 20:06 ` cygwin-1.7.28 getpwent header declaration changes ? Marco Atzeri
2014-02-09 20:20 ` Corinna Vinschen [this message]
2014-02-10 16:14 ` Marco Atzeri
2014-02-07 9:27 Jan Nijtmans
2014-02-07 9:29 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140209200956.GH2821@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).