[Openvas-discuss] Error when building openvas-cli on Ubuntu 12.04

Stefan Schwarz Stefan.Schwarz at unibw.de
Wed Aug 29 08:56:35 CEST 2012

Am 28.08.2012 21:17, schrieb Matthew Mundell:
>> Seems like a problem with openvas libraries, which could be build and
>> installed without any problems.
>> Any ideas?
> Maybe some cmake mess?  Rerun the cmake command?
> Perhaps a linkage error for the check_omp program?  If you add
This gives me:
cd /home/r11dlrz/openvas/openvas-cli/nagios && /usr/bin/cmake -E 
cmake_link_script CMakeFiles/check_omp.dir/link.txt --verbose=1
/usr/bin/gcc   -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 
-fstack-protector -Wl,-z,relro -Wl,-z,now -Wall -Werror -g     -lgnutls 
-lglib-2.0 -L/usr/local/lib -lopenvas_misc -lopenvas_hg -lopenvas_base 
-lopenvas_nasl -lopenvas_omp -lgpgme -lgpg-error -lglib-2.0 -lgnutls 
CMakeFiles/check_omp.dir/check_omp.c.o  -o check_omp -rdynamic -lopenvas_omp
/usr/bin/ld: CMakeFiles/check_omp.dir/check_omp.c.o: undefined reference 
to symbol 'openvas_server_open'

As you can see, -lopenvas_misc is already present which should include 
@ubuntu:~/openvas/openvas-cli$ ar t /usr/local/lib/libopenvas_misc.a | 
grep openvas_server

> to openvas-cli/CMakeLists.txt you could check the failing command.  Or
> to skip the nagios dir, comment out
> add_subdirectory (nagios)

This works, thanks. Currently i can live without nagios plugin.


Prof. Dr.-Ing. Stefan Schwarz, Leiter Rechenzentrum
Universität der Bundeswehr München
Tel (+49) 89 6004-3200, Fax: -3254, http://www.unibw.de/rz

More information about the Openvas-discuss mailing list