public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc --with-sysroot
@ 2003-11-13  6:17 Chris Croswhite
  0 siblings, 0 replies; only message in thread
From: Chris Croswhite @ 2003-11-13  6:17 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-13  6:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-13  6:17 gcc --with-sysroot Chris Croswhite

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