attribute(packed) in struct stat is wrong

Andreas Jaeger aj@suse.de
Thu Feb 7 04:41:00 GMT 2002


Jakub Jelinek <jakub@redhat.com> writes:

> On Thu, Feb 07, 2002 at 01:34:57PM +0100, Andreas Jaeger wrote:
>> 
>> With current CVS I get:
>> 
>> GCONV_PATH=/builds/glibc/gcc-3.1/iconvdata LC_ALL=C   /builds/glibc/gcc-3.1/elf/ld-linux.so.2 --library-path /builds/glibc/gcc-3.1:/builds/glibc/gcc-3.1/math:/builds/glibc/gcc-3.1/elf:/builds/glibc/gcc-3.1/dlfcn:/builds/glibc/gcc-3.1/nss:/builds/glibc/gcc-3.1/nis:/builds/glibc/gcc-3.1/rt:/builds/glibc/gcc-3.1/resolv:/builds/glibc/gcc-3.1/crypt:/builds/glibc/gcc-3.1/linuxthreads /builds/glibc/gcc-3.1/io/test-stat  > /builds/glibc/gcc-3.1/io/test-stat.out
>> test-stat: test-stat.c:35: main: Assertion `sizeof (struct stat) == sizeof (struct stat64)' failed.
>> 
>> Removing the assertions gives:
>> test-stat: test-stat.c:39: main: Assertion `((size_t) &((struct stat *)0)->st_ino) == ((size_t) &((struct stat64 *)0)->st_ino)' failed.
>
> Which arch?

Sorry: i686-linux-gnu,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-hacker mailing list