This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking Problem


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]