Hello,
I’m trying to build sources again Alma Linux 9.3. And it was done successfully.
Here some note for those trying the same.
It seems this is almost the same as 8.x (see thread here Compile from source failure).
Note that i have to slightly change command line.
Follow the main doc (below in short)
-
install epel repo and crb repo.
-
link pc file heimdal-krb5.pc (to prevent krb5_get_error_string@@HEIMDAL_KRB5_2.0 error) and heimdal-gssapi.pc. See compile error at heimdal-gssapi>=1.6.0 · Issue #42 · greenbone/openvas-smb · GitHub
-
download lastest gmp sources, compile, and create theses/dir/links to avoid changing some path in openvas source files (to address missing libgmp.a file. it is not include with devel package) :
mkdir -p /builddir/build/BUILD/gnutls-3.7.6/bundled_gmp/.libs
cd /builddir/build/BUILD/gnutls-3.7.6/bundled_gmp/.libs
ln -s /your/gmpbuildir/gmp-6.3.0/.libs/libgmp.a
- deal with many dependencies. But these “error” can be circumvented easily.
git clone https://xxxxxxx
cd open-vassmb
mkdir build && cd build && cmake ..
C_INCLUDE_PATH="$C_INCLUDE_PATH:/usr/include/heimdal:/usr/include/heimdal/gssapi" make #note there is no "LIBRARY_PATH=" like on AlmaLinux 8.x