[prev in list] [next in list] [prev in thread] [next in thread]
List: glibc-bug
Subject: Re: glibc-2.1
From: Andreas Jaeger <aj () arthur ! rhein-neckar ! de>
Date: 1999-05-22 15:33:55
[Download RAW message or body]
>>>>> Craig A Soules writes:
Craig> Excerpts from mail: 22-May-99 Re: glibc-2.1 by Andreas Jaeger@arthur.rh
>> Please read the complete FAQ first.
Craig> Sorry, I should have mentioned that I already tried that...
>> Btw. the file you mention is a libc5 file. glibc 2.1 doesn't define
>> __xstat itself. You can't mix libc5 and glibc 2 headers in /usr/include.
Craig> Ok, I must either be highly confused, or highly confusing! (or maybe
Craig> both ;) I'm positive that the file include/sys/stat.h does exist, and
Craig> that the calls to stat, fstat, and lstat are all wrappers to the calls
Craig> __xstat, __fxstat, and __lxstat. The problem seems to be that the
Craig> linker isn't properly connecting the extern declaration of __xstat in
Craig> the stat.h file into the glibc 2 library. I was thinking that maybe
Craig> someone might know why this could happen? thanks!
Upps, there was a typo in my message. glibc 2 defines __xstat (with 2
underscores) but you mentioned:
> "/usr/include/sys/stat.h:141: undefined reference to `_xstat'". A quick
with 1 underscore. libc5 uses this, glibc2 never.
/usr/include/sys/stat.h should exist and the first three lines should
be:
$ head /usr/include/sys/stat.h
/* Copyright (C) 1991, 92, 95, 96, 97, 98 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
If your header looks different you're not using glibc2's header.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic