Skip to contentSkip to conversation

ndctl-v77: LIBCXL_5 not found

PATCH Minwoo Im 2 participants 2 messages May 9, 2023

Subsystems (2)
lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

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
index 50e83cf770a2..665b8e958178 100644
@@ -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,

maintainer
#1 lore raw
Quoted 31 lines · Minwoo Im

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 +0 -0
index 50e83cf770a2..665b8e958178 100644
@@ -307,7 +307,7 @@ LIBDAXCTL_AGE=5
 

 LIBCXL_CURRENT=5
 LIBCXL_REVISION=0

meson.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,