Hi,
in my Gentoo box, "dristat", from "mesa/drm", fails to build because of
an incorrect define in linux-core/Makefile: "-DPOSIX_C_SOURCE=199309L"
should be "-D_POSIX_C_SOURCE=199309L". Also, "-lrt" is needed in the
linking stage.
This problem was filed as a bug [1] to Gentoo's bugzilla but I think
that it should be fixed at this level.
Cheers,
Rafa
[1] http://bugs.gentoo.org/show_bug.cgi?id=254649
diff -urN a/linux-core/Makefile b/linux-core/Makefile
--- a/linux-core/Makefile 2009-01-15 01:12:09.000000000 +0100
+++ b/linux-core/Makefile 2009-01-18 19:54:41.873577387 +0100
@@ -223,9 +223,9 @@
# Build test utilities
-PRGCFLAGS = $(CFLAGS) -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L \
+PRGCFLAGS = $(CFLAGS) -g -ansi -pedantic -D_POSIX_C_SOURCE=199309L \
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE \
- -I. -I../../..
+ -I. -I../../.. -lrt
DRMSTATLIBS = -L../../.. -L.. -ldrm -lxf86_os \
-L../../../../dummylib -ldummy -lm
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel