[Mesa-dev] [Bug 75356] pipe_loader_sw.c:64: undefined reference to `xlib_create_sw_winsys'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 22 09:42:52 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=75356

--- Comment #4 from Christian Prochaska <christian.prochaska at genode-labs.com> ---
(In reply to comment #3)
> Created attachment 94574 [details] [review]
> pipe-loader: wrap pipe_loader_sw_probe_xlib within HAVE_PIPE_LOADER_XLIB
> 
> The patch description does not directly relate to the build log, as I have
> chosen to fix the problem rather than putting ducktape over it. 
> 
> Note: The gallium/tests/trivial will segfault due to use of asserts over
> proper error handling.
> 
> Patch is working like a charm here, please give it a test as it's a bit more
> evasive than I would like.
> -Emil

With the following addition, it could also compile without X headers:

diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
index 78b465b..17c2874 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
@@ -31,7 +31,9 @@
 #include "util/u_dl.h"
 #include "sw/dri/dri_sw_winsys.h"
 #include "sw/null/null_sw_winsys.h"
+#ifdef HAVE_PIPE_LOADER_XLIB
 #include "sw/xlib/xlib_sw_winsys.h"
+#endif
 #include "target-helpers/inline_sw_helper.h"
 #include "state_tracker/drisw_api.h"

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140222/6a5fd45e/attachment.html>


More information about the mesa-dev mailing list