[Openvas-devel] Compilation problem for gsd 1.2.2 with openvas 6 lib on opensuse 12.1, 12.2, 12.3

Johann LUCE jluce at agences.connection.fr
Mon May 20 12:06:11 CEST 2013


Le 30/04/2013 17:12, Johann LUCE a écrit :
> Le 30/04/2013 17:04, Matthew Mundell a écrit :
>>> On Montag, 29. April 2013, Johann LUCE wrote:
>>>> try to setup gsd 1.2.2 on opensuse with openVAS 6 lib on OBS here:
>>>>
>>>> https://build.opensuse.org/project/repositories?project=home%3Ajluce2%3AOpenVAS%3Av6 
>>>>
>>>>
>>>> same error on both version of opensuse
>>> I am not an expert here. But it smells like the conflict of glib and qt
>>> that was already discussed?
>> Those all look like warnings to me.  Perhaps add -Wno-unused-variable to
>> the compile command.
>>
>> -- 
>> Greenbone Networks GmbH
>> Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460
>> Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
>>
> hi
>
> many thanks for your answers
>
> sorry but i added  "-Wno-unused-variable -Wno-conversion-null 
> -Wno-sign-compare" in the cmake flag but same thing:
>
> cd /home/abuild/rpmbuild/BUILD/gsd-1.2.2/build/src && /usr/bin/c++   
> -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB 
> -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 
> -fstack-protector -funwind-tables -fasynchronous-unwind-tables -O3 
> -DNDEBUG -I/usr/include/QtWebKit -I/usr/include/QtGui 
> -I/usr/include/QtXml -I/usr/include/QtCore 
> -I/home/abuild/rpmbuild/BUILD/gsd-1.2.2/build/src 
> -DGSD_VERSION=\"1.2.2\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" 
> -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" 
> -DOPENVAS_TRANSLATIONS_DIR=\"/usr/share/openvas/translations\" 
> -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -I/usr/include/p11-kit-1 
> -I/usr/include/openvas -I/usr/include/glib-2.0 
> -I/usr/lib64/glib-2.0/include -I/usr/include/p11-kit-1 
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -o 
> CMakeFiles/gsd.dir/dock_reports.cpp.o -c 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_reports.cpp
> [   50s] In file included from /usr/include/glib-2.0/gio/gio.h:54:0,
> [   50s]                  from 
> /usr/include/openvas/base/openvas_file.h:32,
> [   50s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/omp_string_builder.h:41,
> [   50s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/omp_connector.h:38,
> [   50s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/gsd_control.h:37,
> [   50s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:25:
> [   50s] /usr/include/glib-2.0/gio/gdbusintrospection.h:157:25: error: 
> expected unqualified-id before 'protected'
> [   50s] /usr/include/glib-2.0/gio/gdbusintrospection.h:157:24: error: 
> expected ';' at end of member declaration
> [   50s] /usr/include/glib-2.0/gio/gdbusintrospection.h:157:32: error: 
> expected ':' before ';' token
> [   51s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'virtual void dock_details_port_list::update()':
> [   51s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:316:32: 
> warning: comparison between signed and unsigned integer expressions 
> [-Wsign-compare]
> [   51s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'virtual void dock_details_target::load()':
> [   51s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:345:18: 
> warning: unused variable 'd_text' [-Wunused-variable]
> [   51s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'virtual void dock_details_escalator::load()':
> [   51s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:564:18: 
> warning: unused variable 'd_text' [-Wunused-variable]
> [   51s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'virtual void dock_details_schedule::load()':
> [   51s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:733:18: 
> warning: unused variable 'd_text' [-Wunused-variable]
> [   52s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'void dock_details_config::modify_config()':
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:921:14: 
> warning: converting 'false' to pointer type 'bool*' [-Wconversion-null]
> [   52s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'void dock_details_config::exec_modify_config(bool, 
> bool)':
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:967:31: 
> warning: converting 'false' to pointer type 'bool*' [-Wconversion-null]
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:967:26: 
> warning: unused variable 'ok' [-Wunused-variable]
> [   52s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'void dock_details_config::update(QString)':
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:1064:30: 
> warning: comparison between signed and unsigned integer expressions 
> [-Wsign-compare]
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:1081:31: 
> warning: comparison between signed and unsigned integer expressions 
> [-Wsign-compare]
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:1151:21: 
> warning: unused variable 'allFamilies' [-Wunused-variable]
> [   52s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'void dock_details_family::modify_family()':
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:1509:25: 
> warning: unused variable 'ndx' [-Wunused-variable]
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:1496:7: 
> warning: unused variable 'count' [-Wunused-variable]
> [   52s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'void dock_details_family::exec_modify_family(bool)':
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:1548:31: 
> warning: converting 'false' to pointer type 'bool*' [-Wconversion-null]
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:1548:26: 
> warning: unused variable 'ok' [-Wunused-variable]
> [   52s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp: 
> In member function 'virtual void dock_details_slave::load()':
> [   52s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_details.cpp:2143:18: 
> warning: unused variable 'd_text' [-Wunused-variable]
> [   52s] In file included from /usr/include/glib-2.0/gio/gio.h:54:0,
> [   52s]                  from 
> /usr/include/openvas/base/openvas_file.h:32,
> [   52s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/omp_string_builder.h:41,
> [   52s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/omp_connector.h:38,
> [   52s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/gsd_control.h:37,
> [   52s]                  from 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_reports.cpp:25:
> [   52s] /usr/include/glib-2.0/gio/gdbusintrospection.h:157:25: error: 
> expected unqualified-id before 'protected'
> [   52s] /usr/include/glib-2.0/gio/gdbusintrospection.h:157:24: error: 
> expected ';' at end of member declaration
> [   52s] /usr/include/glib-2.0/gio/gdbusintrospection.h:157:32: error: 
> expected ':' before ';' token
> [   52s] make[2]: *** [src/CMakeFiles/gsd.dir/dock_details.cpp.o] Error 1
> [   52s] make[2]: *** Waiting for unfinished jobs....
> [   53s] /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_reports.cpp: 
> In member function 'void dock_reports::update(QString)':
> [   53s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_reports.cpp:97:14: 
> warning: converting 'false' to pointer type 'bool*' [-Wconversion-null]
> [   53s] 
> /home/abuild/rpmbuild/BUILD/gsd-1.2.2/src/dock_reports.cpp:99:8: 
> warning: converting 'false' to pointer type 'bool*' [-Wconversion-null]
> [   53s] make[2]: *** [src/CMakeFiles/gsd.dir/dock_reports.cpp.o] Error 1
> [   53s] make[2]: Leaving directory 
> `/home/abuild/rpmbuild/BUILD/gsd-1.2.2/build'
> [   53s] make[1]: *** [src/CMakeFiles/gsd.dir/all] Error 2
> [   53s] make[1]: Leaving directory 
> `/home/abuild/rpmbuild/BUILD/gsd-1.2.2/build'
> [   53s] make: *** [all] Error 2
>
> many thanks for your answers
> _______________________________________________
> Openvas-devel mailing list
> Openvas-devel at wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel

hi

can compile it with this patch applyed:

http://git.kali.org/gitweb/?p=packages/gsd.git;a=blob_plain;f=debian/patches/build-with-qt-no-keywords;hb=eb9708034101a54a2c628ca796482a018768d4ac

regards

jluce



More information about the Openvas-devel mailing list