<div dir="ltr"><div><div><div>Hi Micheal, <br><br></div>no problem, I'm learning so much and you and Emil have both shown amounts of patience with me.</div><div><br></div>I've tested the following patch and it works<br><br></div>Mauro<br><div><br><div><br><span style="font-family:monospace,monospace">From a00b1182fd74ec6af37e09e53dd3febec36af27d Mon Sep 17 00:00:00 2001<br>From: Mauro Rossi <<a href="mailto:issor.oruam@gmail.com">issor.oruam@gmail.com</a>><br>Date: Sun, 21 Feb 2016 20:31:21 +0100<br>Subject: [PATCH] radeonsi: use util_strchrnul() to fix android building error<br><br>Android Bionic does not support strchrnul() string function,<br>gallium auxiliary util/u_string.h provides util_strchrnul()<br><br>This change avoids the following building error:<br><br>external/mesa/src/gallium/drivers/radeonsi/si_shader.c:3863: error: undefined reference to 'strchrnul'<br>collect2: error: ld returned 1 exit status<br>---<br> src/gallium/drivers/radeonsi/si_shader.c | 3 ++-<br> 1 file changed, 2 insertions(+), 1 deletion(-)<br><br>diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c<br>index d1482de..192a736 100644<br>--- a/src/gallium/drivers/radeonsi/si_shader.c<br>+++ b/src/gallium/drivers/radeonsi/si_shader.c<br>@@ -39,6 +39,7 @@<br> #include "radeon/radeon_llvm_emit.h"<br> #include "util/u_memory.h"<br> #include "util/u_pstipple.h"<br>+#include "util/u_string.h"<br> #include "tgsi/tgsi_parse.h"<br> #include "tgsi/tgsi_util.h"<br> #include "tgsi/tgsi_dump.h"<br>@@ -4019,7 +4020,7 @@ static void si_shader_dump_disassembly(const struct radeon_shader_binary *binary<br> <br>             line = binary->disasm_string;<br>             while (*line) {<br>-                p = strchrnul(line, '\n');<br>+                p = util_strchrnul(line, '\n');<br>                 count = p - line;<br> <br>                 if (count) {<br>-- <br>2.5.0</span><br></div></div></div>