Boost 1.84 breaks orthanc

Good morning,
it seems that the latest version of boost 1.84.0 causes some issues with orthanc:

[ 44s] /usr/bin/c++ -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_HAS_FILESYSTEM_V3=1 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 -DCIVETWEB_HAS_WEBDAV_WRITING=1 -DDCMTK_DICTIONARY_DIR="/usr/share/dcmtk" -DDCMTK_USE_EMBEDDED_DICTIONARIES=0 -DDCMTK_VERSION_NUMBER=367 -DHAS_ORTHANC_EXCEPTION=0 -DHAVE_CONFIG_H=1 -DHAVE_MALLOC_TRIM=1 -DHAVE_MALLOPT=1 -DJSONCPP_DEPRECATED_STACK_LIMIT=5000 -DORTHANC_API_VERSION=21 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 -DORTHANC_BUILDING_SERVER_LIBRARY=1 -DORTHANC_BUILD_UNIT_TESTS=1 -DORTHANC_DATABASE_VERSION=6 -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1 -DORTHANC_ENABLE_BASE64=1 -DORTHANC_ENABLE_CIVETWEB=1 -DORTHANC_ENABLE_CURL=1 -DORTHANC_ENABLE_DCMTK=1 -DORTHANC_ENABLE_DCMTK_JPEG=1 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 -DORTHANC_ENABLE_JPEG=1 -DORTHANC_ENABLE_LOCALE=1 -DORTHANC_ENABLE_LOGGING=1 -DORTHANC_ENABLE_LOGGING_STDIO=0 -DORTHANC_ENABLE_LUA=1 -DORTHANC_ENABLE_MD5=1 -DORTHANC_ENABLE_MONGOOSE=0 -DORTHANC_ENABLE_PKCS11=0 -DORTHANC_ENABLE_PLUGINS=1 -DORTHANC_ENABLE_PNG=1 -DORTHANC_ENABLE_PROTOBUF=1 -DORTHANC_ENABLE_PUGIXML=1 -DORTHANC_ENABLE_SQLITE=1 -DORTHANC_ENABLE_SSL=1 -DORTHANC_ENABLE_ZLIB=1 -DORTHANC_MAXIMUM_TAG_LENGTH=256 -DORTHANC_SANDBOXED=0 -DORTHANC_SQLITE_VERSION=3044002 -DORTHANC_STANDALONE=1 -DORTHANC_STATIC=0 -DORTHANC_VERSION="1.12.1" -DORTHANC_VERSION_MAJOR=1 -DORTHANC_VERSION_MINOR=12 -DORTHANC_VERSION_REVISION=1 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -I/home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/build/AUTOGENERATED -I/usr/include/lua5.1 -I/home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancServer/Plugins/Include -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -Wall -Wno-long-long -Wno-variadic-macros -O2 -g -DNDEBUG -MD -MT CMakeFiles/CoreLibrary.dir/home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp.o -MF CMakeFiles/CoreLibrary.dir/home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp.o.d -o CMakeFiles/CoreLibrary.dir/home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp.o -c /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp
[ 44s] /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp: In member function ‘void Orthanc::Font::DrawCharacter(Orthanc::ImageAccessor&, const Character&, int, int, const uint8_t*) const’:
[ 44s] /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp:202:11: error: ‘assert’ was not declared in this scope
[ 44s] 202 | assert(bpp == 1);
[ 44s] | ^~~~~~
[ 44s] /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp:43:1: note: ‘assert’ is defined in header ‘’; did you forget to ‘#include ’?
[ 44s] 42 | #include <boost/lexical_cast.hpp>
[ 44s] +++ |+#include
[ 44s] 43 |
[ 44s] /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp:215:11: error: ‘assert’ was not declared in this scope
[ 44s] 215 | assert(bpp == 3);
[ 44s] | ^~~~~~
[ 44s] /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp:215:11: note: ‘assert’ is defined in header ‘’; did you forget to ‘#include ’?
[ 44s] /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp:232:11: error: ‘assert’ was not declared in this scope
[ 44s] 232 | assert(bpp == 4);
[ 44s] | ^~~~~~
[ 44s] /home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp:232:11: note: ‘assert’ is defined in header ‘’; did you forget to ‘#include ’?
[ 44s] make[2]: *** [CMakeFiles/CoreLibrary.dir/build.make:432: CMakeFiles/CoreLibrary.dir/home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/OrthancFramework/Sources/Images/Font.cpp.o] Error 1
[ 44s] make[2]: Leaving directory ‘/home/abuild/rpmbuild/BUILD/Orthanc-1.12.1/build’

Cheers
Axel

Dear Axel,

This should be fixed by the following changeset: orthanc: 47334eeaaa1a

Best,
Sébastien-

Thanks Sebastien.
There are some more places to patch, and I guess every plugin needs to be touched too…
See: File libboost.diff of Package orthanc - openSUSE Build Service
Cheers
Axel

Hi Alex,

Thx, I have included them in the code although a bit too late for 1.12.2 that we are releasing right now :frowning:

Best regards,

Alain.

Its never too late Alain :wink: just rename it to 1.12.3

Typically the kind of stuff package maintainers (like you and me) can easily take care of :wink:

Pardon my ignorance but what is “Boost” ?

A set of C++ libraries: https://www.boost.org

1 Like