Orthanc-1.9.7 fails with dcmtk-3.6.7: /wrkdirs/usr/ports/science/orthanc/work/Orthanc-1.9.7/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:109:118: error: use of undeclared identifier 'TCS_ok' if (tls->addTrustedCertificateFile(trustedCertificatesPath.c_str(), DCF_Filetype_PEM /*opt_keyFileFormat*/) != TCS_ok) ^ /wrkdirs/usr/ports/science/orthanc/work/Orthanc-1.9.7/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:115:104: error: use of undeclared identifier 'TCS_ok' if (tls->setPrivateKeyFile(ownPrivateKeyPath.c_str(), DCF_Filetype_PEM /*opt_keyFileFormat*/) != TCS_ok) ^ /wrkdirs/usr/ports/science/orthanc/work/Orthanc-1.9.7/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:121:106: error: use of undeclared identifier 'TCS_ok' if (tls->setCertificateFile(ownCertificatePath.c_str(), DCF_Filetype_PEM /*opt_keyFileFormat*/) != TCS_ok) ^ /wrkdirs/usr/ports/science/orthanc/work/Orthanc-1.9.7/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:134:72: error: use of undeclared identifier 'TCS_ok' if (tls->setTLSProfile(TSP_Profile_BCP195 /*opt_tlsProfile*/) != TCS_ok) ^ /wrkdirs/usr/ports/science/orthanc/work/Orthanc-1.9.7/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:139:11: error: value of type 'OFCondition' is not contextually convertible to 'bool' if (tls->activateCipherSuites()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ clang-13 FreeBSD 13
Thanks for the report. It however appears that DCMTK 3.6.7 is not an official release yet: https://dicom.offis.de/dcmtk.php.en This issue will be taken into consideration when an official release is available.
Here is a patch that has been uploaded to Debian Unstable/Sid to resolve the same issue: https://salsa.debian.org/med-team/orthanc/-/commit/3a22d6b71d211a4d9262f494afe66f7a7b5df667 It should be possible to transpose it as such to FreeBSD 13.
The mainline of Orthanc has been fixed by the following changeset: https://hg.orthanc-server.com/orthanc/rev/1f93dc290628
*** Bug 206 has been marked as a duplicate of this bug. ***