Bug#217541: fficonfig.h bogus on x86
Package: libffi2-dev
Version: 1:3.3.2-1
Severity: important
Running this little test program on my Athlon (no, not an Athlon64 ;-)):
#include <stdio.h>
#include <ffi.h>
int main ()
{
printf ("&ffi_type_ulong: %p &ffi_type_uint64: %p\n",
&ffi_type_ulong, &ffi_type_uint64);
}
results in:
&ffi_type_ulong: 0x8049738 &ffi_type_uint64: 0x8049738
As you can easily see, the two pointers refer to the same object, which
means fficonfig.h #defines ffi_type_ulong to ffi_type_uint64, which is
plain wrong on a 32bit platform.
Regards, Andy
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux ivanova 2.6.0-test7-k7 #1 Mon Oct 13 14:07:14 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=de_AT.UTF-8
Versions of packages libffi2-dev depends on:
ii gcc-3.3-base 1:3.3.2-1 The GNU Compiler Collection (base
ii libc6-dev 2.3.2-8 GNU C Library: Development Librari
ii libffi2 1:3.3.2-1 Foreign Function Interface library
-- no debconf information
Reply to: