public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13566] New: Glibc should define gets for C++11
@ 2012-01-05 18:23 vries at gcc dot gnu.org
  2012-01-05 18:50 ` [Bug libc/13566] " zilla at kayari dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2012-01-05 18:23 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

             Bug #: 13566
           Summary: Glibc should define gets for C++11
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: vries@gcc.gnu.org
    Classification: Unclassified


With this change:
...
    [BZ #13528]
    * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
...

gets is no longer defined for C++11, while it should be. This causes breakage
when building libstdc++. See also discussion at
http://gcc.gnu.org/ml/gcc/2012-01/msg00041.html .

-- 
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] 10+ messages in thread

* [Bug libc/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
@ 2012-01-05 18:50 ` zilla at kayari dot org
  2012-01-06 18:15 ` jsm28 at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: zilla at kayari dot org @ 2012-01-05 18:50 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

Jonathan Wakely <zilla at kayari dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zilla at kayari dot org

--- Comment #1 from Jonathan Wakely <zilla at kayari dot org> 2012-01-05 18:49:58 UTC ---
(In reply to comment #0)
> http://gcc.gnu.org/ml/gcc/2012-01/msg00041.html .

That build failure is in C++03 code, not C++11

gets() needs to be defined for C++ even when _GNU_SOURCE is defined.

I suggest checking whether __cplusplus <= 201103L

-- 
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] 10+ messages in thread

* [Bug libc/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
  2012-01-05 18:50 ` [Bug libc/13566] " zilla at kayari dot org
@ 2012-01-06 18:15 ` jsm28 at gcc dot gnu.org
  2012-02-05 20:01 ` bz-glibc at kdzbn dot homelinux.net
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-01-06 18:15 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-01-06 18:15:14 UTC ---
Fixed in commit 8ecd6b2a1283a28bcf56cfe48099fafa412a3929.

-- 
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] 10+ messages in thread

* [Bug libc/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
  2012-01-05 18:50 ` [Bug libc/13566] " zilla at kayari dot org
  2012-01-06 18:15 ` jsm28 at gcc dot gnu.org
@ 2012-02-05 20:01 ` bz-glibc at kdzbn dot homelinux.net
  2012-02-05 20:29 ` vries at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bz-glibc at kdzbn dot homelinux.net @ 2012-02-05 20:01 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

Bryan Kadzban <bz-glibc at kdzbn dot homelinux.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |bz-glibc at kdzbn dot
                   |                            |homelinux.net
         Resolution|FIXED                       |

--- Comment #3 from Bryan Kadzban <bz-glibc at kdzbn dot homelinux.net> 2012-02-05 20:00:07 UTC ---
...And un-fixed in this commit, a day later:

http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=c3a87236702cb73be1dada3438bbd3c3934e83f8

Looks like either that needs to be rolled back, or gcc needs to be changed to
not define _GNU_SOURCE.  (But I bet that latter change will break lots more
stuff in libstdc++...)

-- 
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] 10+ messages in thread

* [Bug libc/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-02-05 20:01 ` bz-glibc at kdzbn dot homelinux.net
@ 2012-02-05 20:29 ` vries at gcc dot gnu.org
  2012-02-05 21:10 ` bz-glibc at kdzbn dot homelinux.net
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2012-02-05 20:29 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> 2012-02-05 20:28:02 UTC ---
related gcc bug:

Bug 51785 - gets not anymore declared
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785

-- 
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] 10+ messages in thread

* [Bug libc/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-02-05 20:29 ` vries at gcc dot gnu.org
@ 2012-02-05 21:10 ` bz-glibc at kdzbn dot homelinux.net
  2012-02-21  2:25 ` [Bug stdio/13566] " jsm28 at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bz-glibc at kdzbn dot homelinux.net @ 2012-02-05 21:10 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

--- Comment #5 from Bryan Kadzban <bz-glibc at kdzbn dot homelinux.net> 2012-02-05 21:09:14 UTC ---
Ah, indeed.

Well, I'll let the gcc and glibc people figure out what to do here.  Nothing
has been released with these changes yet (at least not AFAIK), so it's only
hitting people trying to use head versions, which isn't many.

-- 
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] 10+ messages in thread

* [Bug stdio/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-02-05 21:10 ` bz-glibc at kdzbn dot homelinux.net
@ 2012-02-21  2:25 ` jsm28 at gcc dot gnu.org
  2012-03-06 20:58 ` jsm28 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-21  2:25 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |stdio

-- 
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] 10+ messages in thread

* [Bug stdio/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-02-21  2:25 ` [Bug stdio/13566] " jsm28 at gcc dot gnu.org
@ 2012-03-06 20:58 ` jsm28 at gcc dot gnu.org
  2012-03-09 22:11 ` jsm28 at gcc dot gnu.org
  2014-06-27 11:15 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-03-06 20:58 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
         AssignedTo|drepper.fsp at gmail dot    |jsm28 at gcc dot gnu.org
                   |com                         |

--- Comment #6 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-03-06 20:57:45 UTC ---
GCC was fixed for 4.7.  glibc patch for GCC <= 4.6 pending review:
http://sourceware.org/ml/libc-alpha/2012-03/msg00111.html

-- 
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] 10+ messages in thread

* [Bug stdio/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-03-06 20:58 ` jsm28 at gcc dot gnu.org
@ 2012-03-09 22:11 ` jsm28 at gcc dot gnu.org
  2014-06-27 11:15 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-03-09 22:11 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13566

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-03-09 22:10:35 UTC ---
Fixed, again, by removing the __USE_GNU conditional after further discussion on
libc-alpha.

-- 
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] 10+ messages in thread

* [Bug stdio/13566] Glibc should define gets for C++11
  2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2012-03-09 22:11 ` jsm28 at gcc dot gnu.org
@ 2014-06-27 11:15 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 11:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13566

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] 10+ messages in thread

end of thread, other threads:[~2014-06-27 11:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-05 18:23 [Bug libc/13566] New: Glibc should define gets for C++11 vries at gcc dot gnu.org
2012-01-05 18:50 ` [Bug libc/13566] " zilla at kayari dot org
2012-01-06 18:15 ` jsm28 at gcc dot gnu.org
2012-02-05 20:01 ` bz-glibc at kdzbn dot homelinux.net
2012-02-05 20:29 ` vries at gcc dot gnu.org
2012-02-05 21:10 ` bz-glibc at kdzbn dot homelinux.net
2012-02-21  2:25 ` [Bug stdio/13566] " jsm28 at gcc dot gnu.org
2012-03-06 20:58 ` jsm28 at gcc dot gnu.org
2012-03-09 22:11 ` jsm28 at gcc dot gnu.org
2014-06-27 11:15 ` 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).