You are not logged in.

#1 2007-12-25 17:39:58

sacarde
Member
Registered: 2006-07-14
Posts: 389

error in PKGBUILD directfb from AUR

helo
I add in PKGBUILD: dependency linux-fusion +  --enable-multi

but I have this error during compilation:

...
...
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -DDATADIR=\"/usr/share/directfb-1.0.1\" -DMODULEDIR=\"/usr/lib/directfb-1.0-0\" -D_REENTRANT -mtune=powerpc -O2 -pipe -mpowerpc-gfxopt -MT ppcasm_memcpy_cachable.lo -MD -MP -MF .deps/ppcasm_memcpy_cachable.Tpo -c -o ppcasm_memcpy_cachable.lo ppcasm_memcpy_cachable.S
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -DDATADIR=\"/usr/share/directfb-1.0.1\" -DMODULEDIR=\"/usr/lib/directfb-1.0-0\" -D_REENTRANT -mtune=powerpc -O2 -pipe -mpowerpc-gfxopt -MT ppcasm_memcpy_cachable.lo -MD -MP -MF .deps/ppcasm_memcpy_cachable.Tpo -c ppcasm_memcpy_cachable.S -fPIC -DPIC -o .libs/ppcasm_memcpy_cachable.o
ppcasm_memcpy_cachable.S:37:26: error: linux/config.h: No such file or directory
make[3]: *** [ppcasm_memcpy_cachable.lo] Error 1
make[3]: Leaving directory `/home/sacarde/pkg/directfb/src/DirectFB-1.0.1/lib/direct'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sacarde/pkg/directfb/src/DirectFB-1.0.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sacarde/pkg/directfb/src/DirectFB-1.0.1'
make: *** [all] Error 2

can you help me ?


thankyou

Offline

#2 2007-12-31 12:41:14

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: error in PKGBUILD directfb from AUR

thanks to voidnull for the patch in ppc system

--- lib/direct/system.c    2007-08-07 21:43:00.000000000 +0200
+++ lib/direct/system.c    2007-12-30 19:22:30.000000000 +0100
@@ -34,6 +34,17 @@
#include <direct/build.h>
#include <direct/system.h>

+#include <asm/page.h>
+
+#define PAGE_SIZE       (1UL << PAGE_SHIFT)
+#define PAGE_MASK       (~(PAGE_SIZE-1))
+#define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1))
+#define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
+
+#define PAGE_SHIFT      12
+#define PAGE_SIZE       (1UL << PAGE_SHIFT)
+
+
#if HAVE_ASM_PAGE_H
#include <asm/page.h>
#else

--- src/core/system.c    2007-08-19 23:52:06.000000000 +0200
+++ src/core/system.c    2007-12-30 19:22:22.000000000 +0100
@@ -51,6 +51,16 @@
#include <direct/messages.h>
#include <direct/modules.h>

+#include <asm/page.h>
+#define PAGE_SIZE       (1UL << PAGE_SHIFT)
+#define PAGE_MASK       (~(PAGE_SIZE-1))
+#define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1))
+#define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
+
+#define PAGE_SHIFT      12
+#define PAGE_SIZE       (1UL << PAGE_SHIFT)
+
+
DEFINE_MODULE_DIRECTORY( dfb_core_systems, "systems",
                          DFB_CORE_SYSTEM_ABI_VERSION );

Offline

#3 2007-12-31 12:41:52

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: error in PKGBUILD directfb from AUR

and

touch /usr/include/linux/config.h

Offline

Board footer

Powered by FluxBB