ndctl-v77: LIBCXL_5 not found
Hello ndctl,
With the recent tag (v77), after building it with the following commands, cxl command is not albe to find LIBCXL_5 version from the /lib/libcxl.so.1 installed.
meson build
ninja -C build
meson install -C build
root@vm:~/work/ndctl.git# cxl
cxl: /lib/libcxl.so.1: version `LIBCXL_5' not found (required by cxl) root@vm:~/work/ndctl.git# ls -l /lib/libcxl.so.1
lrwxrwxrwx 1 root root 15 May 9 15:28 /lib/libcxl.so.1 -> libcxl.so.1.1.3
I'm not pretty certain how to go through with this, but I'm using v77 with the following patch which might not be a good one to solve it.
---
meson.build +1 -1
@@ -307,7 +307,7 @@ LIBDAXCTL_AGE=5 LIBCXL_CURRENT=5 LIBCXL_REVISION=0 -LIBCXL_AGE=4 +LIBCXL_AGE=5 root_inc = include_directories(['.', 'ndctl', ])
It would be great if any folks here can provide advices on this.
Thanks,
Verma, Vishal L
maintainerQuoted 31 lines · Minwoo Im
Hello ndctl,
With the recent tag (v77), after building it with the following commands,
cxlcommand is not albe to findLIBCXL_5version from the/lib/libcxl.so.1installed.meson build
ninja -C build
meson install -C buildroot@vm:~/work/ndctl.git# cxl cxl: /lib/libcxl.so.1: version `LIBCXL_5' not found (required by cxl) root@vm:~/work/ndctl.git# ls -l /lib/libcxl.so.1 lrwxrwxrwx 1 root root 15 May 9 15:28 /lib/libcxl.so.1 -> libcxl.so.1.1.3I'm not pretty certain how to go through with this, but I'm using v77 with the following patch which might not be a good one to solve it.
---
meson.build +0
-0@@ -307,7 +307,7 @@ LIBDAXCTL_AGE=5LIBCXL_CURRENT=5
LIBCXL_REVISION=0meson.build +1
-1-LIBCXL_AGE=4 +LIBCXL_AGE=5
Quoted 1 line
root_inc =
include_directories(['.', 'ndctl', ])
No, this patch would violate libtool versioning rules[1].
LIBCXL_5 should be available if the library has been rebuilt, it seems like your cxl tool is picking up an older version of the library, maybe installed via the package manager or something?
Can you try a full clean rebuild?
[1]: https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
Quoted 6 lines
It would be great if any folks here can provide advices on this.
Thanks,