I was having problems building DirectFB 1.2.10 on an AVR32 buildroot setup. Attached is a patch which defines _GNU_SOURCE in lib/direct/interface.c and lib/direct/util.c. Otherwise the build would quit with:

interface.c:76: error: 'PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function)
make[4]: *** [interface.lo] Error 1

...

make[4]: *** No rule to make target `../../lib/direct/libdirect.la', needed by `libidirectfbimageprovider_dfiff.la'. Stop.


Best regards,

Elimar Green

P.S. I would have reported this via the bug reporting system, but it seems to not exist anymore? At least the bug reporting link on the main DirectFB home page goes to nowhere useful.

diff -ru DirectFB-1.2.10.orig/lib/direct/interface.c DirectFB-1.2.10/lib/direct/interface.c
--- DirectFB-1.2.10.orig/lib/direct/interface.c	2009-08-27 12:54:18.000000000 -0700
+++ DirectFB-1.2.10/lib/direct/interface.c	2010-02-24 22:01:37.136720707 -0800
@@ -28,6 +28,8 @@
 
 #include <config.h>
 
+#define _GNU_SOURCE
+
 #include <pthread.h>
 #include <dirent.h>
 #ifndef USE_KOS
diff -ru DirectFB-1.2.10.orig/lib/direct/util.c DirectFB-1.2.10/lib/direct/util.c
--- DirectFB-1.2.10.orig/lib/direct/util.c	2009-08-27 12:54:18.000000000 -0700
+++ DirectFB-1.2.10/lib/direct/util.c	2010-02-24 22:02:59.969720707 -0800
@@ -28,6 +28,8 @@
 
 #include <config.h>
 
+#define _GNU_SOURCE
+
 #include <string.h>
 #include <fcntl.h>
 #include <errno.h>
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to