On 2013.05.16 12.03, btb wrote:
/root/openvas/trunk/openvas-libraries/base/openvas_file.c: In function 
‘openvas_file_copy’:
/root/openvas/trunk/openvas-libraries/base/openvas_file.c:167:3: error: 
‘g_type_init’ is deprecated (declared at 
/usr/include/glib-2.0/gobject/gtype.h:669) [-Werror=deprecated-declarations]
/root/openvas/trunk/openvas-libraries/base/openvas_file.c: In function 
‘openvas_file_move’:
/root/openvas/trunk/openvas-libraries/base/openvas_file.c:203:3: error: 
‘g_type_init’ is deprecated (declared at 
/usr/include/glib-2.0/gobject/gtype.h:669) [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors
make[2]: *** [base/CMakeFiles/openvas_base_shared.dir/openvas_file.c.o] Error 1
make[1]: *** [base/CMakeFiles/openvas_base_shared.dir/all] Error 2
make: *** [all] Error 2

i may have answered my own question, at least partially.  it appears that 
commenting out those two references to g_type_init allow the libraries to at 
least build.

--- openvas_file.c.orig 2013-05-16 12:10:43.813633319 -0400
+++ openvas_file.c      2013-05-16 12:11:32.111310102 -0400
@@ -164,7 +164,7 @@
   GFile *sfile, *dfile;
   GError *error;
- g_type_init ();
+  /*g_type_init ();*/
   sfile = g_file_new_for_path (source_file);
   dfile = g_file_new_for_path (dest_file);
   error = NULL;
@@ -200,7 +200,7 @@
   GFile *sfile, *dfile;
   GError *error;
- g_type_init ();
+  /*g_type_init ();*/
   sfile = g_file_new_for_path (source_file);
   dfile = g_file_new_for_path (dest_file);
   error = NULL;

however, i'm not experienced enough to know preemptively what the implications 
may ultimately be.

-ben
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel

Reply via email to