This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Linking Problem
- To: Nix <nix at esperi dot demon dot co dot uk>
- Subject: Re: Linking Problem
- From: Andreas Schwab <schwab at suse dot de>
- Date: 22 Apr 2001 17:44:12 +0200
- Cc: glibc-linux at ricardo dot ecn dot wfu dot edu
- References: <F441s7nlT2NqFJ3sl3x00000954@hotmail.com.suse.lists.glibc-linux><878zku3qbi.fsf@loki.wkstn.nix.suse.lists.glibc-linux>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Nix <nix@esperi.demon.co.uk> writes:
|> [Cc: list radically stripped down. This is not a GCC issue!]
|>
|> On Thu, 19 Apr 2001, sanal vk spake:
|> > I am getting following errors while linking a library, in which I don't have any control.
|> >
|> > Undefined reference to _xstat
|> > Undefined reference to _fxstat
^^^^^^^
|> >
|> > I am using gcc 2.96 on Red Hat Linux release 7.0 (Kernel 2.2.16-22 on an i686). I tried installing glibc-2.2.1 and linking vga
|> > library but it didn't make any difference.
|>
|> Your C library is incorrectly installed --- I don't know how, but it is:
|>
|> ,----
|> | nix@loki 268 % nm -D /lib/libc-2.2.2.so | grep -E '_f?xstat'
|> | 000c4590 T __fxstat
^^^^^^^^
Note the missing leading underscore, these are different symbols. The
library in question was most likely compiled against libc5. No way to get
it work with current glibc.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5