Skip to content

23.43.2: build failure: could not find native static library krb5, perhaps an -L flag is missing? #2190

@tgurr

Description

@tgurr

This was initially mentioned on #2146 but it is a separate issue so I'm now reporting it as one. This was also already mentioned at: Originally posted by @Narrat in e17c8da

Expected behavior

Build without hitting any build failure.

Actual behavior

openvas-scanner >= 23.43.2 fails to build with

[...]
   Compiling async-trait v0.1.89
   Compiling nasl-function-proc-macro v0.1.0 (/home/HEILBRONN/hn11022/Downloads/openvas-scanner-23.44.0/rust/crates/nasl-function-proc-macro)
error: could not find native static library `krb5`, perhaps an -L flag is missing?

error: could not compile `libopenvas-krb5-sys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

as can also be seen CI run which runs into the exactly same problem: https://gitlab.exherbo.org/tgurr/net/-/jobs/203197

Steps to reproduce

I'm also able to reproduce this locally on my regular desktop by just downloading the source and running:

  1. cd openvas-scanner-23.44.0/rust
  2. cargo fetch --locked
  3. cargo build --frozen --release

GVM versions

gsa: Greenbone Security Assistant Deamon 25.2.0
gvm: Greenbone Vulnerability Manager 26.22.0
openvas: -
gvm-libs: 22.41.0
openvas-smb: -
ospd-openvas: 22.10.0

Environment

Operating system:
Exherbo Linux: Linux localhost 6.19.9 #1 SMP PREEMPT_DYNAMIC Mon Mar 23 11:37:17 CET 2026 x86_64 GNU/Linux

Installation method / source: (packages, source installation)
Source-based distribution/packages

Logfiles

openvas-scanner-23.44.0_build.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions