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

Cannot build anymore #1803

Open
Sysadminfromhell opened this issue Jan 10, 2025 · 5 comments · May be fixed by greenbone/docs#536
Open

Cannot build anymore #1803

Sysadminfromhell opened this issue Jan 10, 2025 · 5 comments · May be fixed by greenbone/docs#536
Labels
bug Something isn't working

Comments

@Sysadminfromhell
Copy link

Sysadminfromhell commented Jan 10, 2025

Expected behavior

Building the openvas-scanner as descirbed in the documentation https://greenbone.github.io/docs/latest/22.4/source-build/index.html#id76

Actual behavior

Fails due to one missing .h file:

root@OpenVAS:~/build/openvas-scanner# make -j$(nproc)
[ 1%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/openvas-krb5.c.o
In file included from /root/source/openvas-scanner-23.14.0/misc/openvas-krb5.c:1:
/root/source/openvas-scanner-23.14.0/misc/openvas-krb5.h:1:10: fatal error: krb5/krb5.h: No such file or directory
1 | #include <krb5/krb5.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [misc/CMakeFiles/openvas_misc_shared.dir/build.make:300: misc/CMakeFiles/openvas_misc_shared.dir/openvas-krb5.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:198: misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Steps to reproduce

follow the documentation and you will come to the same resolt with the newest version.

GVM versions

gsa: (gsad --version)
24.1.0

gvm: (gvmd --version)
24.1.2

openvas: (openvas --version)
23.14.0

gvm-libs:
22.15.1

openvas-smb:
22.5.6

Environment

Operating system:

Linux OpenVAS 6.1.0-23-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux

Installation method / source: (packages, source installation)

Source

Logfiles

cat /var/log/gvm/*
2025-01-10 12:24:02,702 notus-scanner: INFO: (notus.scanner.daemon) Starting notus-scanner version 22.6.5.
OSPD[25063] 2025-01-10 12:24:02,853: ERROR: (ospd_openvas.db) openvas executable not available. Please install openvas into your PATH.

@Sysadminfromhell Sysadminfromhell added the bug Something isn't working label Jan 10, 2025
@jjnicola
Copy link
Member

Hi @Sysadminfromhell , It seems it is a duplicated from #1794. Take a look into (INSTALL.md)[https://github.com/greenbone/openvas-scanner/blob/main/INSTALL.md]. You should be able to fix the issue.
We will add the missing documentation. Thanks for reporting.

Regards,

@jjnicola jjnicola linked a pull request Jan 10, 2025 that will close this issue
1 task
@Sysadminfromhell
Copy link
Author

Hi @jjnicola this kinda half fixed the issue, now I get a new one:

-- Build files have been written to: /root/build/openvas-scanner
[ 1%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/bpf_share.c.o
[ 2%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/ftp_funcs.c.o
[ 3%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/network.c.o
[ 5%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/plugutils.c.o
[ 6%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/pcap.c.o
[ 7%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/table_driven_lsc.c.o
[ 7%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/ipc.c.o
[ 8%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/user_agent.c.o
[ 10%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/scanneraux.c.o
[ 11%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/kb_cache.c.o
[ 12%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/heartbeat.c.o
[ 14%] Linking C shared library libopenvas_misc.so
/usr/bin/ld: cannot find -lgssapi: No such file or directory
/usr/bin/ld: cannot find -lgssapi: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [misc/CMakeFiles/openvas_misc_shared.dir/build.make:353: misc/libopenvas_misc.so.23.14.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:198: misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
[ 1%] Linking C shared library libopenvas_misc.so
/usr/bin/ld: cannot find -lgssapi: No such file or directory
/usr/bin/ld: cannot find -lgssapi: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [misc/CMakeFiles/openvas_misc_shared.dir/build.make:353: misc/libopenvas_misc.so.23.14.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:198: misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

@changkoo
Copy link

Just to add to this, on my current installation of Debian 12, the installation of krb5-dev will ask to remove heimdal-dev.

Just to follow it through, without heimdal-dev the build process completes but with many references that remain unaddressed, and ospd-openvas will not launch properly.

I was able to roll back openvas-scanner to 23.13.2, and everything seems to run properly.

@Sysadminfromhell
Copy link
Author

I can confirm that behaviour, I changed my build script to install first for all modules needed heimdal and afterwords the krb5-dev but even in the build process for the openvas-scanner there is some things missing then from the heimdal-dev moduile. So currenty it cannot be build properly.

@nichtsfrei
Copy link
Member

Hello, and thank you for pointing out this bug.

For openvas-smb please use heimdal-multidev, and for openvas, use krb5-multidev on Debian systems.

Unfortunately, openvas requires some minor changes as well.

These should be addressed in the following PRs:

Documentation updates will follow, but they will need to be tested on Fedora/CentOS systems, which may take some time.

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

Successfully merging a pull request may close this issue.

4 participants