public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14530] New: __extern_always_inline is not always defined but stdlib.h may use it nevertheless
@ 2012-08-29 17:43 ldv at altlinux dot org
2012-08-29 17:49 ` [Bug libc/14530] " polacek at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ldv at altlinux dot org @ 2012-08-29 17:43 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14530
Bug #: 14530
Summary: __extern_always_inline is not always defined but
stdlib.h may use it nevertheless
Product: glibc
Version: unspecified
Status: NEW
Keywords: glibc_2.16
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: ldv@altlinux.org
CC: drepper.fsp@gmail.com, polacek@redhat.com
Classification: Unclassified
Commit glibc-2.15-685-g5ac3ea1 introduced a regression:
$ echo '#include <stdlib.h>' |gcc-4.1 -O2 -D_FORTIFY_SOURCE=2 -S -xc++ -
-o/dev/null
/usr/include/bits/stdlib.h:36: error: expected constructor, destructor, or type
conversion before 'char'
/usr/include/stdlib.h:972: error: expected `}' at end of input
$ echo '#include <stdlib.h>' |gcc-4.1 -O2 -D_FORTIFY_SOURCE=2 -E -xc++ - |grep
-A1 __extern_always_inline |head -2
__extern_always_inline __attribute__ ((__warn_unused_result__)) char *
realpath (const char *__restrict __name, char *__restrict __resolved) throw ()
That is, g++ < 4.3 in fortify mode no longer compiles stdlib.h.
The bug is somewhat similar to
http://sourceware.org/bugzill/show_bug.cgi?id=13741 but is not exactly the
same.
There is one particular hunk of commit glibc-2.15-685-g5ac3ea1 that made the
difference:
-#if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline
+#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
Before that change, there were no attempts to include bits/stdlib.h in case of
using old g++ in fortify mode, but there were another chances to hit undefined
__extern_always_inline (the last is the subject of #13741).
A proper definition of __extern_always_inline in sys/cdefs.h would fix both
bugs.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/14530] __extern_always_inline is not always defined but stdlib.h may use it nevertheless
2012-08-29 17:43 [Bug libc/14530] New: __extern_always_inline is not always defined but stdlib.h may use it nevertheless ldv at altlinux dot org
@ 2012-08-29 17:49 ` polacek at redhat dot com
2012-09-26 11:02 ` polacek at redhat dot com
2014-06-17 4:48 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: polacek at redhat dot com @ 2012-08-29 17:49 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14530
Marek Polacek <polacek at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware |polacek at redhat dot com
|dot org |
--- Comment #1 from Marek Polacek <polacek at redhat dot com> 2012-08-29 17:48:52 UTC ---
Mine.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/14530] __extern_always_inline is not always defined but stdlib.h may use it nevertheless
2012-08-29 17:43 [Bug libc/14530] New: __extern_always_inline is not always defined but stdlib.h may use it nevertheless ldv at altlinux dot org
2012-08-29 17:49 ` [Bug libc/14530] " polacek at redhat dot com
@ 2012-09-26 11:02 ` polacek at redhat dot com
2014-06-17 4:48 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: polacek at redhat dot com @ 2012-09-26 11:02 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14530
Marek Polacek <polacek at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Marek Polacek <polacek at redhat dot com> 2012-09-26 11:02:10 UTC ---
Should be fixed by b7bfe116.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/14530] __extern_always_inline is not always defined but stdlib.h may use it nevertheless
2012-08-29 17:43 [Bug libc/14530] New: __extern_always_inline is not always defined but stdlib.h may use it nevertheless ldv at altlinux dot org
2012-08-29 17:49 ` [Bug libc/14530] " polacek at redhat dot com
2012-09-26 11:02 ` polacek at redhat dot com
@ 2014-06-17 4:48 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-17 4:48 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14530
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-17 4:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-29 17:43 [Bug libc/14530] New: __extern_always_inline is not always defined but stdlib.h may use it nevertheless ldv at altlinux dot org
2012-08-29 17:49 ` [Bug libc/14530] " polacek at redhat dot com
2012-09-26 11:02 ` polacek at redhat dot com
2014-06-17 4:48 ` fweimer at redhat dot com
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).