OpenVAS CLI not working due to missing shared library

Support/Development for OpenVAS
mvanderw
New Forum User
New Forum User
Posts: 3
Joined: Sat Sep 19, 2015 11:12 am
Location: 46544

OpenVAS CLI not working due to missing shared library

Unread post by mvanderw »

I got OpenVAS 8 installed (finally) on EL 6 and most everything appears to be working just fine.

When running the openvas-check-setup script (provided by OpenVAS here: http://openvas.org/setup-and-start.html), I get a message saying it's unable to find omp and to install OpenVAS CLI to get CLI to work.

I have openvas-cli installed (the latest from the atomic repo):

Code: Select all

[root@<host> ~]# yum list openvas-cli
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Installed Packages
openvas-cli.x86_64                                                              1.3.1-6.el6.art                                                               @atomic
Looking in the log for the openvas-check-setup script (/tmp/openvas-check-setup.log) and in the openvas-check-setup script itself, it appears to just be doing a 'omp --version' command and then checking the version. But when running that command, it gets this message:

(from the log)

Code: Select all

Checking presence of OpenVAS CLI ...
omp: error while loading shared libraries: libopenvas_misc.so.7: cannot open shared object file: No such file or directory
        ERROR: No OpenVAS CLI (omp) found.
        FIX: Please install OpenVAS CLI.
        HINT: Please see the --server command line option to skip this check.
Running the command manually gets the same error message:

Code: Select all

[root@<host> ~]# omp --version
omp: error while loading shared libraries: libopenvas_misc.so.7: cannot open shared object file: No such file or directory
It would appear that the omp binary installed with the latest version of openvas-cli in the atomic repo is linking against libopenvas_misc.so.7, but then openvas-libraries from the atomic repo doesn't provide that shared library (at least not anymore). It DOES provide libopenvas_misc.so.8, however (see below).

Maybe omp in the latest openvas-cli was linked against the wrong (old) shared libraries?

Can this please get fixed ASAP? Thanks!

Code: Select all

[root@<host> ~]# which omp
/usr/bin/omp

[root@<host> ~]# ldd /usr/bin/omp 
	linux-vdso.so.1 =>  (0x00007ffc0e6d0000)
	libgnutls.so.28 => /opt/atomic/atomic-gnutls3/root/usr/lib64/libgnutls.so.28 (0x00007fca3b0b4000)
	libglib-2.0.so.0 => /opt/atomic/atomic-glib2/root/usr/lib64/libglib-2.0.so.0 (0x00007fca3ad82000)
	libopenvas_misc.so.7 => not found
	libopenvas_base.so.7 => not found
	libopenvas_nasl.so.7 => not found
	libopenvas_omp.so.7 => not found
	libgpgme.so.11 => /usr/lib64/libgpgme.so.11 (0x0000003eeb200000)
	...
[root@<host> ~]# locate libopenvas_misc.so
/usr/lib64/libopenvas_misc.so
/usr/lib64/libopenvas_misc.so.8
/usr/lib64/libopenvas_misc.so.8.0.6

[root@<host> ~]# rpm -ql openvas-libraries
...
/usr/lib64/libopenvas_base.so
/usr/lib64/libopenvas_base.so.8
/usr/lib64/libopenvas_base.so.8.0.6
/usr/lib64/libopenvas_misc.so
/usr/lib64/libopenvas_misc.so.8
/usr/lib64/libopenvas_misc.so.8.0.6
/usr/lib64/libopenvas_nasl.so
/usr/lib64/libopenvas_nasl.so.8
/usr/lib64/libopenvas_nasl.so.8.0.6
/usr/lib64/libopenvas_omp.so
/usr/lib64/libopenvas_omp.so.8
/usr/lib64/libopenvas_omp.so.8.0.6
...
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: OpenVAS CLI not working due to missing shared library

Unread post by scott »

Make sure you upgrade to the latest, 1.4.3. It went out this morning for EL6
mvanderw
New Forum User
New Forum User
Posts: 3
Joined: Sat Sep 19, 2015 11:12 am
Location: 46544

Re: OpenVAS CLI not working due to missing shared library

Unread post by mvanderw »

Yup, I see the update now.

And everything seems to work now with the check script after that update!

Thanks!
Fabe
New Forum User
New Forum User
Posts: 3
Joined: Thu Mar 23, 2017 11:18 am
Location: Germany

Re: OpenVAS CLI not working due to missing shared library

Unread post by Fabe »

Hi,

I've got the same problem as described above with OpenVAS 9 now. I have installed the latest version of openvas-cli (1.4.5-11.el7.art). However, it links against libopenvas_misc.so.8, but the shared library 9.0.1-25.el7.art is installed.

Are there any solutions or workarounds?

Greets
JSomerstone
New Forum User
New Forum User
Posts: 1
Joined: Fri Mar 24, 2017 8:17 am
Location: Finland

Re: OpenVAS CLI not working due to missing shared library

Unread post by JSomerstone »

I am having the same issue with OpenVAS 9 on CentOS 7.
omp --version
omp: error while loading shared libraries: libopenvas_omp.so.8: cannot open shared object file: No such file or directory
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: OpenVAS CLI not working due to missing shared library

Unread post by scott »

Should be up now in openvas-cli-1.4.5-1293, thanks for the report!
Post Reply