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


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


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