#1138446 opencpn: FTBFS with openssl 4.0

Package:
opencpn
Source:
opencpn
Description:
Open Source Chartplotter and Marine GPS Navigation Software
Submitter:
Sebastian Andrzej Siewior
Date:
2026-07-26 23:21:02 UTC
Severity:
normal
Tags:
#1138446#5
Date:
2026-05-30 16:16:15 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| cd /build/reproducible-path/opencpn-5.14.1+dfsg/obj-x86_64-linux-gnu/model && /usr/bin/c++ -DHAVE_LIBUSB_10 -DHAVE_WEBVIEW -DHAVE_WX_GESTURE_EVENTS -DINTERFACE -DIXWEBSOCKET_USE_OPEN_SSL -DIXWEBSOCKET_USE_TLS -DIXWEBSOCKET_USE_ZLIB -DRAPIDJSON_HAS_STDSTRING=1 -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_OCPN_MODEL -D__OCPN_USE_GLEW__ -D__WXGTK3__ -D__WXGTK__ -DocpnUSE_GL -DocpnUSE_GLSL -DocpnUSE_SVG -DocpnUSE_wxBitmapBundle -DwxUSE_WEBVIEW=1 -I/build/reproducible-path/opencpn-5.14.1+dfsg/obj-x86_64-linux-gnu/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/model/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/sqlite/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/wxcurl/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libusb-1.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cloudproviders -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glycin-2 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/observable/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/IXWebSocket -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/garmin/jeeps -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/gdal/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/gdal/include/gdal -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/geoprim/src -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/iso8211/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/mdns/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/mdns/mdns-1.4.3 -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/mongoose/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/N2KParser/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/nmea0183/src -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/pugixml -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/s52plib/src -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/o_sound/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/wxJSON/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/std_filesystem/include -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/wxservdisc -I/build/reproducible-path/opencpn-5.14.1+dfsg/libs/picosha2 -isystem /usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.2 -isystem /usr/include/wx-3.2 -g -O2 -ffile-prefix-map=/build/reproducible-path/opencpn-5.14.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -D__WXGTK3__ -O2 -g -DNDEBUG -std=gnu++17 -fPIC    -DPREFIX=\"/usr\" -Wall -Wno-unused -fexceptions -rdynamic -fno-strict-aliasing -Wno-deprecated-declarations -Wno-unknown-pragmas -MD -MT model/CMakeFiles/_model_src.dir/src/certificates.cpp.o -MF CMakeFiles/_model_src.dir/src/certificates.cpp.o.d -o CMakeFiles/_model_src.dir/src/certificates.cpp.o -c /build/reproducible-path/opencpn-5.14.1+dfsg/model/src/certificates.cpp
| /build/reproducible-path/opencpn-5.14.1+dfsg/model/src/certificates.cpp: In function ‘X509* generate_x509(EVP_PKEY*, std::string)’:
| /build/reproducible-path/opencpn-5.14.1+dfsg/model/src/certificates.cpp:120:42: error: invalid conversion from ‘const X509_NAME*’ {aka ‘const X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive]
|   120 |   X509_NAME *name = X509_get_subject_name(x509);
|       |                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~
|       |                                          |
|       |                                          const X509_NAME* {aka const X509_name_st*}
| make[3]: *** [model/CMakeFiles/_model_src.dir/build.make:194: model/CMakeFiles/_model_src.dir/src/certificates.cpp.o] Error 1
| make[3]: Leaving directory '/build/reproducible-path/opencpn-5.14.1+dfsg/obj-x86_64-linux-gnu'


Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/opencpn_5.14.1+dfsg-2_amd64-2026-04-19T11:48:22Z

Sebastian

#1138446#12
Date:
2026-07-26 23:18:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
opencpn, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1138446@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alec Leamas <leamas.alec@gmail.com> (supplier of updated opencpn package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 26 Jul 2026 23:24:34 +0200
Source: opencpn
Architecture: source
Version: 1:5.14.1+dfsg-4
Distribution: unstable
Urgency: medium
Maintainer: Alec Leamas <leamas.alec@gmail.com>
Changed-By: Alec Leamas <leamas.alec@gmail.com>
Closes: 1138446
Changes:
 opencpn (1:5.14.1+dfsg-4) unstable; urgency=medium
 .
   * Add patch for openssl 4. Closes: #1138446
   * Add patch for enhanced reproducibility.
   * d/control: Drop redundant "Rules-Requires-Root: no" and
     "Priority: optional".
   * d/control: Update package descriptions.
Checksums-Sha1:
 6248e489a3fcd91833be80e5aadd13a019601ade 2387 opencpn_5.14.1+dfsg-4.dsc
 a0362c5643e0c19116ecf673e7f5558c0cdc4491 33128 opencpn_5.14.1+dfsg-4.debian.tar.xz
 81ae478b4583ff24c4567f785c7634db761be2d1 22025 opencpn_5.14.1+dfsg-4_source.buildinfo
Checksums-Sha256:
 466fd7ef327bbb53ea8c0e22fe2a658976126b391e68f132d6e471f9c1e15311 2387 opencpn_5.14.1+dfsg-4.dsc
 f675f6abb0fd574de79bc20a0630e11cb499c04a1edeeaa4be068d62038f233b 33128 opencpn_5.14.1+dfsg-4.debian.tar.xz
 e31c3736be121e073a2ba71695c888f004be6616ac507fdb67f306604080475e 22025 opencpn_5.14.1+dfsg-4_source.buildinfo
Files:
 86afa10403df8904d9511d38174dd507 2387 misc optional opencpn_5.14.1+dfsg-4.dsc
 b5966128bb7f8f0041cf9fb3ba7e7991 33128 misc optional opencpn_5.14.1+dfsg-4.debian.tar.xz
 5b87f3dfc62d58f8a46ba3fe8130abb4 22025 misc optional opencpn_5.14.1+dfsg-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE4upB3OL4qZrReh5GOmfV2WbRXFwFAmpmkJMACgkQOmfV2WbR
XFzgTg/+Mao+U08KfPboSNO71Bxb+ZL1irDFMCLcGIpyNqMTUdK+ODfYdSCrnv2B
Rqs8vNwHJTPpIFkuqn+gPINQCxghDMUCtDaLuv5/wkgOvSQ3sJ9LALw19zXB72eO
CbSoR8LIX9g9BdOBVEaz/x3jNaYF07Bwym0PFc000XVxKiq0TtRMZ5PbsIUWZHTc
KiiLv5IdJ7pJxsmj4RFNHuEP1Bf7Y39CoL3rIXHb/HyFJv68ADzgeUk+Jp4yN7IU
Jyzlt+mHcySzRGvbs4Wf46Tg/1VnaB36Q+BNKc8ITK3SVZooMWL0asVXwkWiQuoz
CNXMCJbhRY7dKI+lFnc7RuWmVh0uXvRbvQBCCbMu99O2ABzzpLzgJh40QlZaOsG/
viw+MogYMkQs2Xj6OoncJ+HTIvHUVp+T/v7PPzMSF7zpmN1QJWjKtVJ1243SI4TF
pBtvvdcLk3F/211iHU/+BRoUh7iM30saDDWVd0lUkvdJ9AGc9hRN5aYxZfEPFZI9
YAjT+eLt9wIGC2GPimdfj8cnxTsbMF40mVIHzcU2C05a0RxYqjAOvZwN6b0aMGyt
9wtSE6L/4W0oZ5/5y15IPh+nDrCnCh2pIii2zJRbaNfQZ8Qpk/GfoNPfWuQsWXpP
Q4pfdOnsaLHdvIrVIsVvhFF7QqOZbYV2UDqeLtOIpTd3YjHsxe0=
=2Nmt
-----END PGP SIGNATURE-----