From c849ecc19a4cb2951a8b9e8d257632f492ab2517 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 30 Jan 2014 10:44:58 -0800 Subject: [PATCH] dri: Add a useful error message if someone's packages missed libudev deps. Reviewed-by: Matt Turner --- src/loader/loader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/loader/loader.c b/src/loader/loader.c index 5d258994308..811f8a25713 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"); + } } } -- 2.30.2