Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 14 Feb 2012 17:35:17 +0400
From: Vasiliy Kulikov <segoon@...nwall.com>
To: owl-dev@...ts.openwall.com
Subject: Re: glibc' time.h dependency on stdlib.h (was: glibc
 update)

On Tue, Feb 14, 2012 at 17:25 +0400, Vasiliy Kulikov wrote:
> On Thu, Nov 24, 2011 at 00:12 +0100, Pavel Kankovsky wrote:
> > It appears __USE_GNU is defined when your test case is compiled but
> > __USE_XOPEN2K8 is not defined. This should never happen.
> 
> Yes, and glibc folks say the same thing:
> 
> http://sourceware.org/bugzilla/show_bug.cgi?id=10456
> 
> However, I have almost the same time.h header on Ubuntu 10.04 (glibc
> 2.11, gcc 4.4.3) and this part of time.h is the same.  However, the
> one-liner is compilable on Ubuntu and is not on Owl.
> 
> I see no meaningful difference before the actual build failure place:
> (diff -uN of two 'gcc -E' outputs)
> 
> --- time.h.log	2012-02-14 16:57:51.588117472 +0400
> +++ time.h.log-ubuntu	2012-02-14 16:57:29.624008541 +0400
> @@ -4,14 +4,17 @@
>  # 1 "<stdin>"
>  # 1 "/usr/include/time.h" 1 3 4
>  # 28 "/usr/include/time.h" 3 4
> -# 1 "/usr/lib64/gcc/x86_64-openwall-linux/4.6.1/include-fixed/features.h" 1 3 4
> -# 323 "/usr/lib64/gcc/x86_64-openwall-linux/4.6.1/include-fixed/features.h" 3 4
> +# 1 "/usr/include/features.h" 1 3 4
> +# 313 "/usr/include/features.h" 3 4
> +# 1 "/usr/include/bits/predefs.h" 1 3 4
> +# 314 "/usr/include/features.h" 2 3 4
> +# 346 "/usr/include/features.h" 3 4

That's the reason.  gcc uses gcc's features.h, not glibc's.
There is no __USE_XOPEN2K8 in gcc's features.h.

Thanks,


-- 
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments

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.