NVDIMM Device and Persistent Memory development
 help / color / mirror / Atom feed
* ndctl-v77: LIBCXL_5 not found
@ 2023-05-09 15:30 Minwoo Im
  2023-05-09 19:23 ` Verma, Vishal L
  0 siblings, 1 reply; 2+ messages in thread
From: Minwoo Im @ 2023-05-09 15:30 UTC (permalink / raw)
  To: linux-cxl, nvdimm

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.


---
diff --git a/meson.build b/meson.build
index 50e83cf770a2..665b8e958178 100644
--- a/meson.build
+++ b/meson.build
@@ -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,

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: ndctl-v77: LIBCXL_5 not found
  2023-05-09 15:30 ndctl-v77: LIBCXL_5 not found Minwoo Im
@ 2023-05-09 19:23 ` Verma, Vishal L
  0 siblings, 0 replies; 2+ messages in thread
From: Verma, Vishal L @ 2023-05-09 19:23 UTC (permalink / raw)
  To: minwoo.im.dev@gmail.com, linux-cxl@vger.kernel.org,
	nvdimm@lists.linux.dev

On Wed, 2023-05-10 at 00:30 +0900, Minwoo Im wrote:
> 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.
> 
> 
> ---
> diff --git a/meson.build b/meson.build
> index 50e83cf770a2..665b8e958178 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -307,7 +307,7 @@ LIBDAXCTL_AGE=5
> 
>  LIBCXL_CURRENT=5
>  LIBCXL_REVISION=0
> -LIBCXL_AGE=4
> +LIBCXL_AGE=5
> 
>  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
> 
> 
> 
> It would be great if any folks here can provide advices on this.
> 
> Thanks,


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-09 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-09 15:30 ndctl-v77: LIBCXL_5 not found Minwoo Im
2023-05-09 19:23 ` Verma, Vishal L

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox