|
Message-ID: <20111121080213.GB19698@altlinux.org>
Date: Mon, 21 Nov 2011 12:02:13 +0400
From: "Dmitry V. Levin" <ldv@...linux.org>
To: owl-dev@...ts.openwall.com
Subject: Re: glibc' time.h dependency on stdlib.h (was: glibc update)
On Mon, Nov 21, 2011 at 11:06:08AM +0400, Vasiliy Kulikov wrote:
> On Sun, Nov 20, 2011 at 18:17 +0400, Dmitry V. Levin wrote:
> > > I thought it is an ABI compatibility issue and tried to rebuild SimplePAMApps:
> > >
> > > $ make PACKAGE=SimplePAMApps
> > >
> > > gcc -c -o login_indep.o -D_GNU_SOURCE -Wall -W -pipe -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -Wl,
> > > -z,relro -Wl,-z,now -Wall login_indep.c
> > > In file included from login_indep.c:2:0:
> > > /usr/include/string.h:548:5: error: unknown type name '__locale_t'
> > > /usr/include/string.h:552:18: error: unknown type name '__locale_t'
> >
> > The __locale_t type is defined in <xlocale.h>; the latter is (in certain
> > circumstances) included by <string.h>.
>
> Yes, this would be expected, but:
>
> build@...atros:~ $ cat a.c
> #include <time.h>
>
> int main(int argc, char *argv[])
> {
> return 0;
> }
> build@...atros:~ $ gcc -D_GNU_SOURCE -Wall a.c -o a
> In file included from a.c:1:0:
> /usr/include/time.h:226:5: error: unknown type name '__locale_t'
That must be a bug, I have no such problem with glibc-2.11.3:
$ echo '#include <time.h>' | gcc -xc -c - -o/dev/null -O2 -Wall -D_GNU_SOURCE
$
--
ldv
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.