public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc dependencies
@ 2003-01-31 16:06 Benjamin Kosnik
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Kosnik @ 2003-01-31 16:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/9527; it has been noted by GNATS.

From: Benjamin Kosnik <bkoz@redhat.com>
To: paolo@gcc.gnu.org, bkoz@redhat.com, gcc-bugs@gcc.gnu.org,
	gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
	o.flebbe@science-computing.de, gcc-gnats@gcc.gnu.org
Cc: paolo@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org, o.flebbe@science-computing.de
Subject: Re: libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc
 dependencies
Date: Fri, 31 Jan 2003 09:58:00 -0600

 On 31 Jan 2003 15:51:23 -0000
 paolo@gcc.gnu.org wrote:
 
 >Synopsis: gcc-3.2.1 strstreams and hidden linux glibc dependencies
 >
 >State-Changed-From-To: open->analyzed
 >State-Changed-By: paolo
 >State-Changed-When: Fri Jan 31 15:51:23 2003
 >State-Changed-Why:
 >    Well, glibc2.2.5 was released more than 1 year ago:
 >    http://sources.redhat.com/ml/libc-announce/2002/msg00000.html
 >    and current distributions mostly ship with glibc2.3.x.
 >    I think we don't really support anything older than 2.2.5...
 >    Benjamin?
 >
 >http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9527
 
 strstreams in general is the lowest priority of any bug on the C++
 runtime. The only thing that could make it even less of a priority is a
 known problem with old glibcs.
 
 Using both, in combination, when superior solutions exist for both seems
 to be asking for problems. No, begging.
 
 :)
 
 -benjamin


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc dependencies
@ 2003-01-31 16:26 Benjamin Kosnik
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Kosnik @ 2003-01-31 16:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/9527; it has been noted by GNATS.

From: Benjamin Kosnik <bkoz@redhat.com>
To: Olaf Flebbe <o.flebbe@science-computing.de>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Subject: Re: libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc
 dependencies
Date: Fri, 31 Jan 2003 10:17:14 -0600

 On Fri, 31 Jan 2003 17:03:23 +0100
 Olaf Flebbe <o.flebbe@science-computing.de> wrote:
 
 >
 >Do you have an idea how to workaround this problem?
 
 Talk to SuSe?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc dependencies
@ 2003-01-31 16:06 Olaf Flebbe
  0 siblings, 0 replies; 5+ messages in thread
From: Olaf Flebbe @ 2003-01-31 16:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/9527; it has been noted by GNATS.

From: Olaf Flebbe <o.flebbe@science-computing.de>
To: bkoz@redhat.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
   nobody@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc dependencies
Date: Fri, 31 Jan 2003 17:03:23 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9527
 
 Hi,
 
 as an ISV we need to ship software for "supported" Linux Distros. At the moment 
 we need to Redhat supports RedHat 7.1 and Suse supports 7.2. AFAIK For Suse 7.2 
 there is no official glibc update to anything higher than 2.2.2.
 
 Do you have an idea how to workaround this problem?
 
 Olaf
 
 
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc dependencies
@ 2003-01-31 15:51 paolo
  0 siblings, 0 replies; 5+ messages in thread
From: paolo @ 2003-01-31 15:51 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, nobody, o.flebbe

Synopsis: gcc-3.2.1 strstreams and hidden linux glibc dependencies

State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Fri Jan 31 15:51:23 2003
State-Changed-Why:
    Well, glibc2.2.5 was released more than 1 year ago:
    http://sources.redhat.com/ml/libc-announce/2002/msg00000.html
    and current distributions mostly ship with glibc2.3.x.
    I think we don't really support anything older than 2.2.5...
    Benjamin?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9527


^ permalink raw reply	[flat|nested] 5+ messages in thread

* libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc dependencies
@ 2003-01-31 15:46 o.flebbe
  0 siblings, 0 replies; 5+ messages in thread
From: o.flebbe @ 2003-01-31 15:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9527
>Category:       libstdc++
>Synopsis:       gcc-3.2.1 strstreams and hidden linux glibc dependencies
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 31 15:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     o.flebbe@science-computing.de
>Release:        since gcc-3.2.1
>Organization:
>Environment:
Linux, RedHat 7.1 and Suse 7.2 (glibc 2.2.2)
>Description:
Using the libstdc++.so.5.0.1 from 3.2.1 onwards (also tried a snapshot):

On Linux using a glibc 2.2.2 system C++ strings like "1e-6" cannot be converted to doubles. The attached program is expected to output -3e-20, but it prints 12345.

Using the libstc++.so.5.0.0 from 3.2 we will get correct results.

Upgrading the libc seems to be a workaround but not feasable because of multiple other dependencies.

#include <string>
#include <iostream>
#include <sstream>


int main() {

  std::istringstream iss("-3e-20");
  double ret= 12345;
  iss >> ret;

  std::cout << ret << "\n";
}

>How-To-Repeat:
Compile attached code and let it run. It should print -3e-20, but on a suse 7.2 or RedHat 7.1 system (a glibc 2.2.2) it prints 12345.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-31 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-31 16:06 libstdc++/9527: gcc-3.2.1 strstreams and hidden linux glibc dependencies Benjamin Kosnik
  -- strict thread matches above, loose matches on Subject: below --
2003-01-31 16:26 Benjamin Kosnik
2003-01-31 16:06 Olaf Flebbe
2003-01-31 15:51 paolo
2003-01-31 15:46 o.flebbe

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).