intel: Fix build failure in test_decode.c
PATCH 1/1 intel: Fix build failure in test_decode.c
Hi list
The recently released libdrm 2.4.37 does not compile the Intel part:
test_decode.c: In function 'compare_batch':
test_decode.c:107: error: implicit declaration of function 'open_memstream'
PS: Please CC me.
--- intel/test_decode.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
intel/test_decode.c +2 -0
@@ -21,6 +21,8 @@* IN THE SOFTWARE. */ +#define _GNU_SOURCE +#include <string.h> #include <stdlib.h> #include <stdio.h>
Signature · 1 line
1.7.2.1
Quoted 19 lines · On Sat, 30 Jun 2012 13:12:45 +0300 Lauri Kasanen <[email protected]> wrote:
Hi list
The recently released libdrm 2.4.37 does not compile the Intel part:
test_decode.c: In function 'compare_batch':
test_decode.c:107: error: implicit declaration of function 'open_memstream'PS: Please CC me.
Signed-off-by Lauri Kasanen <[email protected]>--- intel/test_decode.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)intel/test_decode.c +0
-0
intel/test_decode.c line 28
Quoted 8 lines
intel/test_decode.c +2
-0@@ -21,6 +21,8 @@* IN THE SOFTWARE. */ +#define _GNU_SOURCE +#include <string.h> #include <stdlib.h> #include <stdio.h>
I can't reproduce this. Can anyone else confirm this is broken, and if so that the above patch fixes it?
Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center
Quoted 8 lines · On Mon, 2 Jul 2012 14:54:58 -0700 Ben Widawsky <[email protected]> wrote:
intel/test_decode.c line 28
Quoted 5 lines
intel/test_decode.c +2
-0+#define _GNU_SOURCE +#include <string.h> #include <stdlib.h> #include <stdio.h> I can't reproduce this. Can anyone else confirm this is broken, and if so that the above patch fixes it?
See the manpage, it depends on the glibc version. Libdrm is broken on glibc < 2.10.
- Lauri
Quoted 12 lines · On Tue, 3 Jul 2012 12:21:27 +0300 Lauri Kasanen <[email protected]> wrote:
Quoted 8 lines · On Mon, 2 Jul 2012 14:54:58 -0700 Ben Widawsky <[email protected]> wrote:
intel/test_decode.c line 28
Quoted 5 lines
intel/test_decode.c +2
-0+#define _GNU_SOURCE +#include <string.h> #include <stdlib.h> #include <stdio.h> I can't reproduce this. Can anyone else confirm this is broken, and if so that the above patch fixes it?
Quoted 7 lines
See the manpage, it depends on the glibc version. Libdrm is broken on glibc < 2.10.
- Lauri
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Pushed. Thanks for the patch.
Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center