Denis Oliver Kropp schrieb:
> Hi,
>
> I'm checking for pending patches and do the release tonight.
>
> If there's anything you want to commit for the last release
> candidate, please do that now :)
>
I nearly forgot, there's one issue that really needs to fixed.
Compiling DirectFB on AMD64 (Ubuntu) gives errors about redefinition
of s64 and u64 with a different type.
make[3]: Entering directory
`/develop/cvskram/directfb/DirectFB/systems/fbdev'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../.. -I../../include -I../../include -I../../lib -I../../lib
-I../../src -D_XOPEN_SOURCE=500 -D_REENTRANT -O3 -ffast-math -pipe
-mtune=k8 -mtune=k8 -g3 -fno-inline -D_GNU_SOURCE
-Werror-implicit-function-declaration -MT fbdev.lo -MD -MP -MF
".deps/fbdev.Tpo" \
-c -o fbdev.lo `test -f 'fbdev.c' || echo './'`fbdev.c; \
then mv -f ".deps/fbdev.Tpo" ".deps/fbdev.Plo"; \
else rm -f ".deps/fbdev.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include
-I../../lib -I../../lib -I../../src -D_XOPEN_SOURCE=500 -D_REENTRANT -O3
-ffast-math -pipe -mtune=k8 -mtune=k8 -g3 -fno-inline -D_GNU_SOURCE
-Werror-implicit-function-declaration -MT fbdev.lo -MD -MP -MF
.deps/fbdev.Tpo -c fbdev.c -fPIC -DPIC -o .libs/fbdev.o
In file included from /usr/include/asm/types.h:5,
from /usr/include/linux/types.h:7,
from /usr/include/linux/agpgart.h:52,
from agp.h:32,
from fbdev.h:40,
from fbdev.c:84:
/usr/include/asm-x86_64/types.h:22: error: conflicting types for 's64'
../../include/dfb_types.h:32: error: previous declaration of 's64' was here
/usr/include/asm-x86_64/types.h:23: error: conflicting types for 'u64'
../../include/dfb_types.h:28: error: previous declaration of 'u64' was here
fbdev.c: In function 'system_map_mmio':
fbdev.c:781: warning: cast from pointer to integer of different size
make[3]: *** [fbdev.lo] Error 1
make[3]: Leaving directory
`/develop/cvskram/directfb/DirectFB/systems/fbdev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/develop/cvskram/directfb/DirectFB/systems'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/develop/cvskram/directfb/DirectFB'
I wonder why in <stdint.h> the uint64_t is an "unsigned long",
while in <asm-x86_64/types.h> the __u64 is an "unsigned long long".
= stdint.h =
#if __WORDSIZE == 64
typedef unsigned long int uint64_t;
#else
__extension__
typedef unsigned long long int uint64_t;
#endif
= asm/types.h =
typedef unsigned long long __u64;
I assumed __WORDSIZE to be 64, otherwise it should not fail unless
__extension__ plays a role, too.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev