From e053d445dac68c812535a226ab08706821248828 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Apr 2026 23:40:36 +0300 Subject: [PATCH] add dlopen error info --- deps/Makefile | 2 +- src/hmmmm.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/Makefile b/deps/Makefile index 96fc1b0..ca35e2e 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -19,7 +19,7 @@ flatcc/bin/flatcc: flatcc ptQueue: - @git clone ssh://git@git.nikto-b.ru:2223/nikto_b/ptQueue.git + @git clone https://git.nikto-b.ru/nikto_b/ptQueue ptQueue/out/ptQueue.a: ptQueue @make -C ptQueue diff --git a/src/hmmmm.c b/src/hmmmm.c index 5d5cb99..4383378 100644 --- a/src/hmmmm.c +++ b/src/hmmmm.c @@ -99,7 +99,8 @@ device_lib_t* loadDeviceLib(const char *libpath, char* errbuf) void *handle = dlopen(libpath, RTLD_NOW); if (!handle) { - snprintf(errbuf, 1024, "unable to open dl handle"); + const char *dlerr = dlerror(); + snprintf(errbuf, 1024, "unable to open dl handle: %s", dlerr); free(dev); return NULL; }