Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] PATCH: DirectFB PAGE_SIZE handling
@ 2007-06-25 22:36 Ivan Kuten
  2007-06-26  6:23 ` Bernhard Fischer
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Kuten @ 2007-06-25 22:36 UTC (permalink / raw)
  To: buildroot

Hello,

DirectFB lib/direct/system.c uses PAGE_SIZE definition and fails to build:
system.c: In function 'direct_pagesize':
system.c:64: error: 'PAGE_SIZE' undeclared (first use in this function)
system.c:64: error: (Each undeclared identifier is reported only once
system.c:64: error: for each function it appears in.)

There is no PAGE_SIZE in <asm/page.h> at least on ARM, the following patch
forces DirectFB to detect PAGE_SIZE via sysconf( _SC_PAGESIZE ) libc call:

diff -urN buildroot.orig/package/directfb/directfb.mk
buildroot.new/package/directfb/directfb.mk
--- buildroot.orig/package/directfb/directfb.mk 2007-05-18 10:15:13.000000000 +0300
+++ buildroot.new/package/directfb/directfb.mk  2007-06-26 00:17:13.000000000 +0300
@@ -26,6 +26,7 @@
        LDFLAGS="$(TARGET_LDFLAGS)" \
        ac_cv_header_linux_wm97xx_h=no \
        ac_cv_header_linux_sisfb_h=no \
+       ac_cv_header_asm_page_h=no \
        ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \

Also patch is attached because my mailer breaks formatting.

Best regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DirectFB-patch_PAGE_SIZE.diff
Type: application/octet-stream
Size: 493 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070626/f1993d5e/attachment.obj 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] PATCH: DirectFB PAGE_SIZE handling
  2007-06-25 22:36 [Buildroot] PATCH: DirectFB PAGE_SIZE handling Ivan Kuten
@ 2007-06-26  6:23 ` Bernhard Fischer
  0 siblings, 0 replies; 2+ messages in thread
From: Bernhard Fischer @ 2007-06-26  6:23 UTC (permalink / raw)
  To: buildroot

On Tue, Jun 26, 2007 at 01:36:23AM +0300, Ivan Kuten wrote:
>Hello,
>
>DirectFB lib/direct/system.c uses PAGE_SIZE definition and fails to build:

applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-26  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25 22:36 [Buildroot] PATCH: DirectFB PAGE_SIZE handling Ivan Kuten
2007-06-26  6:23 ` Bernhard Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox