0018151: nftables package lacks pkgconfig file

0018151: nftables package lacks pkgconfig file

In CRIU project [1] we use integration with nftables using libnftables. But CentOS 8 nftables package provides no pkgconfig file:<br />
# pkgconf –libs libnftables<br />
on Fedora (for example):<br />
# pkgconf –libs libnftables<br />
-lnftables <br />
<br />
Another problem is that in CentOS 8 nftables package there are no libnftables.so file in package, which makes ld unhappy if we try to specify needed linkage option manually:<br />
# ld -lnftables<br />
ld: cannot find -lnftables<br />
<br />
# strace ld -lnftables<br />
…<br />
openat(AT_FDCWD, "//usr/lib64/libnftables.so", O_RDONLY) = -1 ENOENT (No such file or directory)<br />
…<br />
<br />
# ls -la /usr/lib64 | grep nftables<br />
lrwxrwxrwx. 1 root root 20 Aug 11 2020 libnftables.so.1 -> libnftables.so.1.0.0<br />
-rwxr-xr-x. 1 root root 692256 Aug 11 2020 libnftables.so.1.0.0<br />
<br />
[1] <a href="https://github.com/checkpoint-restore/criu/issues/1416">https://github.com/checkpoint-restore/criu/issues/1416</a>

* This article was originally published here

One thought on “0018151: nftables package lacks pkgconfig file

Leave a Reply

Your email address will not be published. Required fields are marked *