public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Craig Rodrigues <rodrigc@attbi.com>
To: bkoz@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: libstdc++/3593: link error when using ofstream
Date: Fri, 29 Mar 2002 13:36:00 -0000	[thread overview]
Message-ID: <20020329213601.20922.qmail@sources.redhat.com> (raw)

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

From: Craig Rodrigues <rodrigc@attbi.com>
To: gcc-gnats@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, db@rtsffm.com, bkoz@gcc.gnu.org
Subject: Re: libstdc++/3593: link error when using ofstream
Date: Fri, 29 Mar 2002 16:35:29 -0500

 Hi,
 
 If you take a version of gcc which was compiled on a system
 with glibc 2.1, and then use that binary on a system with glibc 2.2,
 then you will get these kinds of link errors because
 between glibc 2.1 and 2.2, mbstate_t  changed from a typedef
 to a macro.
 
 I reported this error on the libstdc++ mailing list in Feb. 2001 here:
 http://gcc.gnu.org/ml/libstdc++/2001-02/msg00100.html
 
 I posted a summary of the mbstate_t problem to the glibc mailng list here:
 http://sources.redhat.com/ml/libc-alpha/2001-02/msg00149.html
 
 So the solutions are:
 - if you are using a binary distribution of gcc, make sure that you are
   using it on a system with exactly the same version of glibc on which it
   was built.  One way to do this is to stick to mainstream packaged 
   distributions you can yell at packagers like Red Hat, Debian, Mandrake, 
   etc. if something goes wrong.
 
 or:
 
 - rebuild gcc yourself from source on the system where you will be using gcc
 
 This problem has been posted on the gcc mailing lists
 at various times:
 http://gcc.gnu.org/ml/gcc-help/2001-07/msg00171.html
 http://gcc.gnu.org/ml/gcc-help/2001-06/msg00113.html
 http://gcc.gnu.org/ml/gcc-bugs/2001-07/msg00247.html
 
 
 -- 
 Craig Rodrigues        
 http://www.gis.net/~craigr    
 rodrigc@attbi.com


             reply	other threads:[~2002-03-29 21:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-29 13:36 Craig Rodrigues [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-10-10 13:46 pme
2001-07-16 12:25 bkoz
2001-07-06  7:26 db

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020329213601.20922.qmail@sources.redhat.com \
    --to=rodrigc@attbi.com \
    --cc=bkoz@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).