public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Chris Croswhite" <csc@cadence.com>
To: <gcc-help@gcc.gnu.org>
Subject: gcc --with-sysroot
Date: Thu, 13 Nov 2003 06:17:00 -0000	[thread overview]
Message-ID: <EE335453C5C57840823404C684F9F617012D69CC@exmbx01sj.cadence.com> (raw)

Hello again,

Need some help still.  I am trying to configure gcc to pull headers out
of a glibc2.2.4 (my running system is on 2.3.2).  I have configured gcc
as such:

../configure --enable-languages=c,c++ --disable-multilibs --disable-nls
--with-sysroot=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE
--prefix=/opt/RH72-BUILD-PKGS/gcc323

Everything built correctly.  However, when I try to compile an
executable I get this:
/opt/RH72-BUILD-PKGS/gcc323/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libstdc++.so: undefined reference to `__strftime_l@GLIBC_2.3'
/opt/RH72-BUILD-PKGS/gcc323/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libstdc++.so: undefined reference to `__wcsftime_l@GLIBC_2.3'
/opt/RH72-BUILD-PKGS/gcc323/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libstdc++.so: undefined reference to `__uselocale@GLIBC_2.3'
collect2: ld returned 1 exit status

So it looks like the libstc++ is linked against glibc 2.3.2 (the system
libraries).  What am I doing wrong?  I want to be able to compile the
executable with glibc2.2.4.

TIA,
Chris

                 reply	other threads:[~2003-11-13  6:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=EE335453C5C57840823404C684F9F617012D69CC@exmbx01sj.cadence.com \
    --to=csc@cadence.com \
    --cc=gcc-help@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).