[Kea-users] Kea with sysrepo error

Andrei Pavel andrei at isc.org
Fri May 6 13:36:31 UTC 2022


You'll find in the Kea documentation [0] specific libyang and sysrepo 
versions that can be built with your Kea version. master uses libyang 
v1.0.240 and Sysrepo v1.4.140. These are the latest v1.x versions.

Based on your library version, you are running a newer version of 
sysrepo than what Kea supports. If you compile and install the mentioned 
versions, you should end up with libsysrepo.so.5 instead of libsysrepo.so.7.

If that still does not work, you should find some more detailed 
information on the failure in the config.log file.

The intention is to support as a broad range of libyang and sysrepo 
versions as possible. It's a difficult task since backwards 
compatibility is not sysrepo's top priority. Hence it's significant 
effort to both support multiple versions, but also to jump to newer 
versions. We try to keep up.

The error message that you got is not very accurate, but catering to all 
the future sysrepo versions with correct guidance is something only a 
clairvoyant might be able to pull off, so instead of giving a bluntly 
generic message, it tries to help.

[0] 
https://kea.readthedocs.io/en/latest/arm/integrations.html?highlight=sysrepo#installing-netconf

On 06/05/2022 15:54, Oleg Zharov wrote:
>
> Hi,
>
> I try to install KEA (master branch) with Sysrepo support and run:
>
> ./configure --with-sysrepo
>
> I’ve got an error:
>
>>
> checking libyang... yes
>
> checking libyang-cpp... yes
>
> checking sysrepo... yes
>
> checking sysrepo-cpp... no
>
> configure: error: Count not integrate with Sysrepo C++ bindings. Make 
> sure that the sysrepo-cpp/Session.hpp header and the libsysrepo-cpp.so 
> library can be found.
>
> But Sysrepo-cpp is installed:
>
> $ ldconfig -p | grep sysrepo
>
>         libsysrepo.so.7 (libc6,x86-64) => /usr/local/lib64/libsysrepo.so.7
>
>         libsysrepo.so (libc6,x86-64) => /usr/local/lib64/libsysrepo.so
>
>         libsysrepo-cpp.so (libc6,x86-64) => 
> /usr/local/lib64/libsysrepo-cpp.so
>
> $ ls -la /usr/local/include/sysrepo-cpp/
>
> -rw-r--r--.  1 root root  1028 Apr 8 15:47 Connection.hpp
>
> -rw-r--r--.  1 root root  3316 Apr 8 15:47 Enum.hpp
>
> -rw-r--r--.  1 root root  6021 Apr 8 15:47 Session.hpp
>
> -rw-r--r--.  1 root root 11228 Apr 8 15:47 Subscription.hpp
>
> drwxr-xr-x.  2 root root    44 May 6 14:46 utils
>
> How to let config know where sysrepo is installed?
>
> $ pkg-config --list-all | grep sysrepo
>
> sysrepo-cpp      sysrepo-cpp - C++ bindings for sysrepo
>
> sysrepo          sysrepo - YANG-based system repository for all-around 
> configuration management
>
> System is rhel7
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220506/078ba263/attachment.htm>


More information about the Kea-users mailing list