[PATCH] x86_64/stat64: define struct stat64 as struct stat

Markos Chandras markos.chandras at gmail.com
Wed Oct 31 09:28:36 UTC 2012


On Wed, Oct 10, 2012 at 6:53 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Wednesday 10 October 2012 09:19:30 Markos Chandras wrote:
>> I don't think it is defined, because if it was then this would have worked:
>>
>> (file.c line 186)
>>
>> #if HAVE_LONG_LONG_OFF_T
>> /*
>>  * Ugly hacks for systems that have typedef long long off_t
>>  */
>> # define stat64 stat
>> # define HAVE_STAT64 1  /* Ugly hack */
>> # define sys_stat64 sys_stat
>> # define sys_fstat64    sys_fstat
>> # define sys_lstat64    sys_lstat
>> # define sys_truncate64 sys_truncate
>> # define sys_ftruncate64    sys_ftruncate
>> #endif
>>
>> So this would have defined stat64 to stat in this box
>>
>> Also looking at config.log I see this:
>>
>> configure:6156: checking for long long off_t
>> configure:6168:
>> /home/me/buildroot/output/host/usr/bin/x86_64-buildroot-linux-uclibc-gcc
>> -c  -pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>> -D_FILE_OFFSET_BITS=64  conftest.c >&5
>> conftest.c:44:6: error: size of array 'a' is negative
>> configure:6168: $? = 1
>
> perhaps it's a bug in uClibc's x86_64 port
> -mike

This is fixed in buildroot[1] so it was not an strace problem. Sorry
for the noise

[1] http://git.buildroot.net/buildroot/commit/?id=8ada3b45e6af1680f9aafb38cb7425f3bcfa8380

-- 
Regards,
Markos




More information about the Strace-devel mailing list