From 0f65511115a55e6fdfd25a80fbc3bfd3700fbb0a Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 9 Dec 2024 11:27:23 -0600 Subject: T6718: use correct lib name in absence of libvyatta-cfg-dev An artifact of development was the use of lib name libvyatta-cfg.so for dlopen instead of libyatta-cfg.so.1. The former exists when the libvyatta-cfg-dev package is installed, as it is when vyatta-cfg is built locally. As the dev package is not needed nor used by default builds, correct to the latter lib name, as installed by libvyatta-cfg. --- src/adapter/vyos1x_adapter.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adapter') diff --git a/src/adapter/vyos1x_adapter.ml b/src/adapter/vyos1x_adapter.ml index 5835f5a..dedb2cd 100644 --- a/src/adapter/vyos1x_adapter.ml +++ b/src/adapter/vyos1x_adapter.ml @@ -1,7 +1,7 @@ open Ctypes open Foreign -let libvyatta = Dl.dlopen ~flags:[Dl.RTLD_LAZY] ~filename:"libvyatta-cfg.so" +let libvyatta = Dl.dlopen ~flags:[Dl.RTLD_LAZY] ~filename:"libvyatta-cfg.so.1" let cstore_init = foreign ~from:libvyatta "vy_cstore_init" (void @-> returning uint64_t) let cstore_free = foreign ~from:libvyatta "vy_cstore_free" (uint64_t @-> returning void) -- cgit v1.2.3