Use this category only if you have build GVM from sources or if you use packages provided by a 3rdparty repository.
Please read About the Greenbone Source Edition (GSE) and About GVM Architecture before posting.
When posting you should provide information about your environment using the following template:
GVM versions
gsad: (‘gsad --version’)
gvmd: (‘gvmd --version’)
openvas-scanner: (‘openvas --version’, in older GVM versions < 11: ‘openvassd --version’)
gvm-libs:
Environment
Operating system:
Kernel: (‘Linux wfkali 5.10.0-kali7-amd64’)
Installation method / source:
I am trying to build openvas-scanner from source after running cmake … and then make it stops 1% through with the error below:
[ 1%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/network.c.o
/opt/gvm/src/openvas/misc/network.c: In function ‘socket_get_cert’:
/opt/gvm/src/openvas/misc/network.c:872:3: error: ‘g_memdup’ is deprecated: Use ‘g_memdup2’ instead [-Werror=deprecated-declarations]
872 | *cert = g_memdup (cert_list[0].data, *certlen);
| ^
In file included from /usr/include/glib-2.0/glib.h:82,
from /opt/gvm/src/openvas/misc/…/nasl/nasl_lex_ctxt.h:22,
from /opt/gvm/src/openvas/misc/…/nasl/nasl_debug.h:22,
from /opt/gvm/src/openvas/misc/network.c:27:
/usr/include/glib-2.0/glib/gstrfuncs.h:257:23: note: declared here
257 | gpointer g_memdup (gconstpointer mem,