This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Linking Problem
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: Linking Problem
- From: Nix <nix at esperi dot demon dot co dot uk>
- Date: 21 Apr 2001 22:17:53 +0100
- Cc: sanalvk at hotmail dot com
- References: <F441s7nlT2NqFJ3sl3x00000954@hotmail.com>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
[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
| 000c4a10 T __fxstat64
| 000c4a10 T __fxstat64
| 000c4430 T __xstat
| 000c48d0 T __xstat64
| 000c48d0 T __xstat64
`----
i.e. they are all defined.
What was your configure line when you built glibc?
--
`There are other possibilities for stopping people from snoring;
for instance, just killing them.' --- Rainer