Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[22.5.0] nasl-cli binary linked agains old libpcap #1390

Open
tuxmaster5000 opened this issue Apr 19, 2023 · 2 comments
Open

[22.5.0] nasl-cli binary linked agains old libpcap #1390

tuxmaster5000 opened this issue Apr 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@tuxmaster5000
Copy link
Contributor

tuxmaster5000 commented Apr 19, 2023

The binary package for nasl-cli will not run on RHEL8 and newer, because it use an old libpcap version.

ldd nasl-cli
        linux-vdso.so.1 (0x00007ffcd39b1000)
        libpcap.so.0.8 => not found
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc7f3f06000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fc7f3cfe000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc7f3ade000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fc7f375c000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fc7f3558000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fc7f3193000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc7f47ce000)

RHEL8 and newer have only libpcap.so.1

Jira tracking (added to this comment by ArnoStiefvater)

SC-806

@tuxmaster5000 tuxmaster5000 added the bug Something isn't working label Apr 19, 2023
@nichtsfrei
Copy link
Member

Thanks, unfortunately this is something that cannot be fixed within this release as we just have the current debian:stable as a verified target and I need to look deeper in the rust linking for that.

Fortunately nasl-cli is currently seen as a optional dependency as ospd-openvas is not configured to use nasl-cli as a default for feed-updates so it should not break the current setup when it is not available.

However if you want to use it you can build it by installing the rust tool chain and go into the rust dir and execute:

cargo build --release

this will than create a nasl-cli binary within the target directory.

I will try to come up with a explanation for the release notes to make it clear that it is an optional binary.

@tuxmaster5000
Copy link
Contributor Author

Thanks for it. I have rebuild it on an RHEL8 system and now it will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants