Commit f546ca0bece99be5f09c4587d24f356264624257

Baptiste 2024-07-17T19:12:01

corrected the dlopen use in the kc3.c file to ensure a smooth running of the tests

diff --git a/lib/kc3/0.1/ekc3.so b/lib/kc3/0.1/ekc3.so
deleted file mode 120000
index 2d95dd8..0000000
--- a/lib/kc3/0.1/ekc3.so
+++ /dev/null
@@ -1 +0,0 @@
-../../../ekc3/.libs/libekc3.so.0.0
\ No newline at end of file
diff --git a/libkc3/kc3.c b/libkc3/kc3.c
index f8e6d8c..ff716c0 100644
--- a/libkc3/kc3.c
+++ b/libkc3/kc3.c
@@ -113,11 +113,12 @@ void ** kc3_dlopen (const s_str *path, void **dest)
   err_inspect_str(path);
   err_write_1("\n");
 #endif
-  *dest = dlopen(path->ptr.pchar, RTLD_GLOBAL);
+  *dest = dlopen(path->ptr.pchar, RTLD_LAZY | RTLD_GLOBAL);
   if (! *dest) {
     err_write_1("kc3_dlopen: ");
     err_inspect_str(path);
-    err_puts(": dlopen failed");
+    err_write_1(": dlopen: ");
+    err_puts(dlerror());
     assert(! "kc3_dlopen: dlopen failed");
   }
   return dest;