dri: Add a useful error message if someone's packages missed libudev deps.
authorEric Anholt <eric@anholt.net>
Thu, 30 Jan 2014 18:44:58 +0000 (10:44 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 1 Feb 2014 18:09:11 +0000 (10:09 -0800)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/loader/loader.c

index 5d2589943088fa1baed88cda97a5114898bd4241..811f8a25713e5ade25b0509bd70b470b7f7f5826 100644 (file)
@@ -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");
+         }
       }
    }