Building OpanVas From Source postgresql v16


I’m trying to build OpenVAS from source on a Kali VM running “Linux kali 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.15-2kali1 (2024-05-17) x86_64 GNU/Linux”. While installing GVMD, I received an error while executing this block of code:

mkdir -p $BUILD_DIR/gvmd && cd $BUILD_DIR/gvmd

The error is:
– Looking for PostgreSQL…
CMake Error at cmake/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR) (found
version “16.3”)
Call Stack (most recent call first):
cmake/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
cmake/FindPostgreSQL.cmake:247 (find_package_handle_standard_args)
src/CMakeLists.txt:45 (find_package)

The problem is I installed the newest version of PostgreSQL, which is 16.3, and it seems that some OpenVAS dependencies are not compatible with PostgreSQL 16.3. Is there a workaround for this problem?

Looks like support for PostgreSQL 16.x has been introduced recently in / via: