Openvas uses deprecated libpcap function pcap_lookupdev

Hi,
I’m trying to build openvas on a Centos 8 system from:
GitHub - greenbone/openvas-scanner: This repository contains the scanner component for Greenbone Community Edition.
(succeeded to build gvm-lib)

I use the package libpcap-devel, which is:
Package libpcap-devel-14:1.9.0-1.el8.x86_64

The compile of openvas throws an error:

[> 1%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/bpf_share.c.o

/src/greenbone/openvas/misc/bpf_share.c: In function ‘bpf_open_live’:
/src/greenbone/openvas/misc/bpf_share.c:70:5: error: ‘pcap_lookupdev’ is deprecated: use ‘pcap_findalldevs’ and use the first device [-Werror=deprecated-declarations]
iface = pcap_lookupdev (errbuf);
^~~~~
In file included from /usr/include/pcap.h:43,
from /src/greenbone/openvas/misc/bpf_share.c:27:
/usr/include/pcap/pcap.h:326:16: note: declared here
PCAP_API char *pcap_lookupdev(char *)
^~~~~~~~~~~~~~

Is that issue already addressed? Which version of libpcap should I use to get around?

Cheers,
Rüdiger

and

Please downgrade you libpcap to a supported version to be able to compile it. You can´t mix in many cases distribution and non-distribution source packages like here.

Update on this thread - the solutions provided therein work great.

WIP PR for a replacement seems to be available now:

I’m also closing this as a duplicate of OPENVAS cmake fails. 'pcap_lookupdev' is deprecated. Seems the user there had only posted screenshots so this isn’t showing up in the forums search.