[Mesa-dev] [PATCH 3/3] dri: Add a useful error message if someone's packages mised libudev deps.

Eric Anholt eric at anholt.net
Thu Jan 30 10:46:23 PST 2014


---
 src/loader/loader.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/loader/loader.c b/src/loader/loader.c
index 5d25899..811f8a2 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -111,6 +111,11 @@ udev_dlopen_handle(void)
           * might be ia64.
           */
          udev_handle = dlopen("libudev.so.0", RTLD_LOCAL | RTLD_LAZY);
+
+         if (!udev_handle) {
+            log_(_LOADER_FATAL, "Couldn't dlopen libudev.so.1 or libudev.so.0, "
+                 "driver detection may be broken.\n");
+         }
       }
    }
 
-- 
1.8.5.3



More information about the mesa-dev mailing list