<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="monospace">You'll find in the Kea documentation [0]
specific libyang and sysrepo versions that can be built with
your Kea version. master uses </font><font face="monospace">libyang
v1.0.240 and <span class="highlighted">Sysrepo</span> v1.4.140.
These are the latest v1.x versions.<br>
</font></p>
<p><font face="monospace">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.</font></p>
<p><font face="monospace">If that still does not work, you should
find some more detailed information on the failure in the
config.log file.<br>
</font></p>
<p><font face="monospace">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.<br>
</font></p>
<p><font face="monospace">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.<br>
</font></p>
<p><font face="monospace">[0]
<a class="moz-txt-link-freetext" href="https://kea.readthedocs.io/en/latest/arm/integrations.html?highlight=sysrepo#installing-netconf">https://kea.readthedocs.io/en/latest/arm/integrations.html?highlight=sysrepo#installing-netconf</a></font><br>
</p>
<div class="moz-cite-prefix">On 06/05/2022 15:54, Oleg Zharov wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALAQH6YGjXH4GM89vi2M2HzmUa_U1SM9=zkL40qWCpgQU_EtVQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">
<p style="font-size:12.8px">Hi,</p>
<p style="font-size:12.8px"> </p>
<p style="font-size:12.8px">I try to install KEA (master branch)
with Sysrepo support and run:</p>
<p style="font-size:12.8px">./configure --with-sysrepo</p>
<p style="font-size:12.8px"> </p>
<p style="font-size:12.8px">I’ve got an error:</p>
<p style="font-size:12.8px">…</p>
<p style="font-size:12.8px">checking libyang... yes</p>
<p style="font-size:12.8px">checking libyang-cpp... yes</p>
<p style="font-size:12.8px">checking sysrepo... yes</p>
<p style="font-size:12.8px">checking sysrepo-cpp... no</p>
<p style="font-size:12.8px">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.</p>
<p style="font-size:12.8px"> </p>
<p style="font-size:12.8px">But Sysrepo-cpp is installed:</p>
<p style="font-size:12.8px">$ ldconfig -p | grep sysrepo</p>
<p style="font-size:12.8px"> libsysrepo.so.7
(libc6,x86-64) => /usr/local/lib64/libsysrepo.so.7</p>
<p style="font-size:12.8px"> libsysrepo.so (libc6,x86-64)
=> /usr/local/lib64/libsysrepo.so</p>
<p style="font-size:12.8px"> libsysrepo-cpp.so
(libc6,x86-64) => /usr/local/lib64/libsysrepo-cpp.so</p>
<p style="font-size:12.8px"> </p>
<p style="font-size:12.8px">$ ls -la
/usr/local/include/sysrepo-cpp/</p>
<p style="font-size:12.8px">-rw-r--r--. 1 root root 1028 Apr
8 15:47 Connection.hpp</p>
<p style="font-size:12.8px">-rw-r--r--. 1 root root 3316 Apr
8 15:47 Enum.hpp</p>
<p style="font-size:12.8px">-rw-r--r--. 1 root root 6021 Apr
8 15:47 Session.hpp</p>
<p style="font-size:12.8px">-rw-r--r--. 1 root root 11228 Apr
8 15:47 Subscription.hpp</p>
<p style="font-size:12.8px">drwxr-xr-x. 2 root root 44 May
6 14:46 utils </p>
<p style="font-size:12.8px"> </p>
<p style="font-size:12.8px">How to let config know where sysrepo
is installed?</p>
<p style="font-size:12.8px">$ pkg-config --list-all | grep
sysrepo</p>
<p style="font-size:12.8px">sysrepo-cpp sysrepo-cpp - C++
bindings for sysrepo</p>
<p style="font-size:12.8px">sysrepo sysrepo -
YANG-based system repository for all-around configuration
management</p>
<p style="font-size:12.8px">System is rhel7</p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
</body>
</html>