#1138348 nmap: FTBFS with openssl 4.0

Package:
nmap
Source:
nmap
Description:
The Network Mapper
Submitter:
Sebastian Andrzej Siewior
Date:
2026-06-18 17:39:04 UTC
Severity:
normal
Tags:
#1138348#5
Date:
2026-05-30 15:58:12 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -I/build/reproducible-path/nmap-7.99+dfsg/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nmap-7.99+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall   nsock_ssl.c -o nsock_ssl.o
| nsock_ssl.c: In function ‘ssl_init_helper’:
| nsock_ssl.c:121:5: error: implicit declaration of function ‘OPENSSL_atexit’; did you mean ‘OPENSSL_init’? [-Wimplicit-function-declaration]
|   121 |     OPENSSL_atexit(nsock_ssl_atexit);
|       |     ^~~~~~~~~~~~~~
|       |     OPENSSL_init
| make[2]: *** [Makefile:48: nsock_ssl.o] Error 1


Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/nmap_7.99+dfsg-1_amd64-2026-04-19T11:24:07Z

Sebastian

#1138348#12
Date:
2026-05-31 22:34:31 UTC
From:
To:
control: forwarded -1 https://github.com/nmap/nmap/issues/3375