[Openvas-devel] use of deprecated functions in openvas-libraries

josef radinger cheese at nosuchhost.net
Wed Dec 23 18:33:17 CET 2015


hi

when compiling openvas-libraries for fedora 24 (the upcoming next
release) i get compilation-warnings as follows:

cd /builddir/build/BUILD/openvas-libraries-8.0.6/nasl && /usr/bin/cc  -
DHAVE_LIBKSBA -Dopenvas_nasl_shared_EXPORTS
-I/builddir/build/BUILD/openvas-libraries-8.0.6/nasl/../base
-I/builddir/build/BUILD/openvas-libraries-8.0.6/nasl/../misc
-I/builddir/build/BUILD/openvas-libraries-8.0.6/nasl/../include
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -g -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-
switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64
-mtune=generic  -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2
-fstack-protector -Wl,-z,relro -Wl,-z,now -Wall -D_FILE_OFFSET_BITS=64
-DLARGEFILE_SOURCE=1 -fno-strict-aliasing -g -Werror -fPIC   -
DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\"
-DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVASLIB_VERSION=\"8.0.6\"
-DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -o
CMakeFiles/openvas_nasl_shared.dir/nasl_builtin_nmap.c.o   -c
/builddir/build/BUILD/openvas-libraries-8.0.6/nasl/nasl_builtin_nmap.c
/builddir/build/BUILD/openvas-libraries-8.0.6/nasl/nasl_builtin_nmap.c: 
In function 'nmap_destroy':
/builddir/build/BUILD/openvas-libraries-
8.0.6/nasl/nasl_builtin_nmap.c:587:3: error: 'g_trash_stack_pop' is
deprecated [-Werror=deprecated-declarations]
   while ((p = (void *) g_trash_stack_pop (&nmap->free_ports)) != NULL)
   ^
In file included from /usr/include/glib-2.0/glib.h:87:0,
                 from /builddir/build/BUILD/openvas-libraries-
8.0.6/nasl/nasl_builtin_nmap.c:61:
/usr/include/glib-2.0/glib/gtrashstack.h:46:11: note: declared here
 gpointer  g_trash_stack_pop    (GTrashStack **stack_p);
           ^
/builddir/build/BUILD/openvas-libraries-
8.0.6/nasl/nasl_builtin_nmap.c:590:3: error: 'g_trash_stack_pop' is
deprecated [-Werror=deprecated-declarations]
   while ((p = (void *) g_trash_stack_pop (&nmap->free_scripts)) !=
NULL)
   ^
In file included from /usr/include/glib-2.0/glib.h:87:0,
                 from /builddir/build/BUILD/openvas-libraries-
8.0.6/nasl/nasl_builtin_nmap.c:61:
/usr/include/glib-2.0/glib/gtrashstack.h:46:11: note: declared here
 gpointer  g_trash_stack_pop    (GTrashStack **stack_p);


https://developer.gnome.org/glib/unstable/glib-Trash-Stacks.html#g-tras
h-stack-pop
states that those functions are deprecated from 2.48 (next version of
glib).

yours
josef





More information about the Openvas-devel mailing list