Skip to content

Instantly share code, notes, and snippets.

@drupol
Created March 13, 2025 13:00
Show Gist options
  • Save drupol/5c2d9e24eac9c7867197757e5423a518 to your computer and use it in GitHub Desktop.
Save drupol/5c2d9e24eac9c7867197757e5423a518 to your computer and use it in GitHub Desktop.
Orthanc compilation issue (III)
[ 53%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp.o
[ 54%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomAssociation.cpp.o
[ 54%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.cpp.o
[ 55%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp.o
[ 55%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomServer.cpp.o
[ 55%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp.o
[ 56%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp.o
[ 56%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp.o
[ 56%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/MoveScp.cpp.o
[ 57%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/GetScp.cpp.o
[ 57%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.cpp.o
[ 57%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/RemoteModalityParameters.cpp.o
[ 58%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/TimeoutDicomConnectionManager.cpp.o
[ 58%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp.o
[ 58%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/DcmtkTranscoder.cpp.o
[ 59%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/IDicomTranscoder.cpp.o
[ 59%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/MemoryBufferTranscoder.cpp.o
/build/source/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:51:12: warning: undefining "__FILE__" []
51 | # undef __FILE__
| ^~~~~~~~
[ 60%] Building CXX object CMakeFiles/CoreLibrary.dir/AUTOGENERATED/OrthancServerResources.cpp.o
[ 61%] Linking CXX shared library libMultitenantDicom.so
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /nix/store/k01fyygqcdzhq5l0hcirmzr1sqqs6zy1-dcmtk-3.6.9/lib/liboflog.a(oflog.cc.o): in function `OFLog::addOptions(OFCommandLine&)':
(.text+0x35): undefined reference to `OFCommandLine::addOption(char const*, char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x55): undefined reference to `OFCommandLine::addOption(char const*, char const*, char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x75): undefined reference to `OFCommandLine::addOption(char const*, char const*, char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x95): undefined reference to `OFCommandLine::addOption(char const*, char const*, char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xc4): undefined reference to `OFCommandLine::addOption(char const*, char const*, int, char const*, char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf4): undefined reference to `OFCommandLine::addOption(char const*, char const*, int, char const*, char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /nix/store/k01fyygqcdzhq5l0hcirmzr1sqqs6zy1-dcmtk-3.6.9/lib/liboflog.a(oflog.cc.o): in function `OFLog::configureFromCommandLine(OFCommandLine&, OFConsoleApplication&, OFLogger::LogLevel)':
(.text+0xb10): undefined reference to `OFCommandLine::beginOptionBlock()'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xb23): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xb57): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xb8a): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbb2): undefined reference to `OFCommandLine::endOptionBlock()'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbc8): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbe5): undefined reference to `OFConsoleApplication::checkConflict(char const*, char const*, bool)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbf0): undefined reference to `OFCommandLine::getValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbfc): undefined reference to `OFConsoleApplication::checkValue(OFCommandLine::E_ValueStatus, OFCommandLine*)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xc3e): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xcab): undefined reference to `OFConsoleApplication::setQuietMode(bool)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xcd0): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf06): undefined reference to `OFCommandLine::gotoFirstArg()'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf1f): undefined reference to `OFCommandLine::getCurrentArg(char const*&)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf7c): undefined reference to `OFCommandLine::gotoNextArg()'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x129c): undefined reference to `OFConsoleApplication::checkConflict(char const*, char const*, bool)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x12b7): undefined reference to `OFConsoleApplication::checkConflict(char const*, char const*, bool)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x12c2): undefined reference to `OFCommandLine::getValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x12ce): undefined reference to `OFConsoleApplication::checkValue(OFCommandLine::E_ValueStatus, OFCommandLine*)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x1439): undefined reference to `OFConsoleApplication::printError(char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x1471): undefined reference to `OFConsoleApplication::printError(char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x1499): undefined reference to `OFConsoleApplication::printError(char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x14c9): undefined reference to `OFConsoleApplication::printError(char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x14f0): undefined reference to `OFConsoleApplication::printError(char const*, int)'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /nix/store/k01fyygqcdzhq5l0hcirmzr1sqqs6zy1-dcmtk-3.6.9/lib/liboflog.a(oflog.cc.o):(.text+0x1511): more undefined references to `OFConsoleApplication::printError(char const*, int)' follow
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/MultitenantDicom.dir/build.make:268: libMultitenantDicom.so.1.12.6] Error 1
make[1]: *** [CMakeFiles/Makefile2:511: CMakeFiles/MultitenantDicom.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 61%] Linking CXX static library libCoreLibrary.a
[ 61%] Built target CoreLibrary
make: *** [Makefile:136: all] Error 2
error: builder for '/nix/store/zr8f9nif3zrg70gmfnf9grfafiivr9dg-orthanc-1.12.6.drv' failed with exit code 2;
last 50 log lines:
> [ 58%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/TimeoutDicomConnectionManager.cpp.o
> [ 58%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp.o
> [ 58%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/DcmtkTranscoder.cpp.o
> [ 59%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/IDicomTranscoder.cpp.o
> [ 59%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/MemoryBufferTranscoder.cpp.o
> /build/source/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:51:12: warning: undefining "__FILE__" []
> 51 | # undef __FILE__
> | ^~~~~~~~
> [ 60%] Building CXX object CMakeFiles/CoreLibrary.dir/AUTOGENERATED/OrthancServerResources.cpp.o
> [ 61%] Linking CXX shared library libMultitenantDicom.so
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /nix/store/k01fyygqcdzhq5l0hcirmzr1sqqs6zy1-dcmtk-3.6.9/lib/liboflog.a(oflog.cc.o): in function `OFLog::addOptions(OFCommandLine&)':
> (.text+0x35): undefined reference to `OFCommandLine::addOption(char const*, char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x55): undefined reference to `OFCommandLine::addOption(char const*, char const*, char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x75): undefined reference to `OFCommandLine::addOption(char const*, char const*, char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x95): undefined reference to `OFCommandLine::addOption(char const*, char const*, char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xc4): undefined reference to `OFCommandLine::addOption(char const*, char const*, int, char const*, char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf4): undefined reference to `OFCommandLine::addOption(char const*, char const*, int, char const*, char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /nix/store/k01fyygqcdzhq5l0hcirmzr1sqqs6zy1-dcmtk-3.6.9/lib/liboflog.a(oflog.cc.o): in function `OFLog::configureFromCommandLine(OFCommandLine&, OFConsoleApplication&, OFLogger::LogLevel)':
> (.text+0xb10): undefined reference to `OFCommandLine::beginOptionBlock()'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xb23): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xb57): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xb8a): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbb2): undefined reference to `OFCommandLine::endOptionBlock()'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbc8): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbe5): undefined reference to `OFConsoleApplication::checkConflict(char const*, char const*, bool)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbf0): undefined reference to `OFCommandLine::getValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xbfc): undefined reference to `OFConsoleApplication::checkValue(OFCommandLine::E_ValueStatus, OFCommandLine*)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xc3e): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xcab): undefined reference to `OFConsoleApplication::setQuietMode(bool)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xcd0): undefined reference to `OFCommandLine::findOption(char const*, int, OFCommandLine::E_FindOptionMode)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf06): undefined reference to `OFCommandLine::gotoFirstArg()'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf1f): undefined reference to `OFCommandLine::getCurrentArg(char const*&)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0xf7c): undefined reference to `OFCommandLine::gotoNextArg()'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x129c): undefined reference to `OFConsoleApplication::checkConflict(char const*, char const*, bool)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x12b7): undefined reference to `OFConsoleApplication::checkConflict(char const*, char const*, bool)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x12c2): undefined reference to `OFCommandLine::getValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x12ce): undefined reference to `OFConsoleApplication::checkValue(OFCommandLine::E_ValueStatus, OFCommandLine*)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x1439): undefined reference to `OFConsoleApplication::printError(char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x1471): undefined reference to `OFConsoleApplication::printError(char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x1499): undefined reference to `OFConsoleApplication::printError(char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x14c9): undefined reference to `OFConsoleApplication::printError(char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x14f0): undefined reference to `OFConsoleApplication::printError(char const*, int)'
> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /nix/store/k01fyygqcdzhq5l0hcirmzr1sqqs6zy1-dcmtk-3.6.9/lib/liboflog.a(oflog.cc.o):(.text+0x1511): more undefined references to `OFConsoleApplication::printError(char const*, int)' follow
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/MultitenantDicom.dir/build.make:268: libMultitenantDicom.so.1.12.6] Error 1
> make[1]: *** [CMakeFiles/Makefile2:511: CMakeFiles/MultitenantDicom.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 61%] Linking CXX static library libCoreLibrary.a
> [ 61%] Built target CoreLibrary
> make: *** [Makefile:136: all] Error 2
For full logs, run 'nix log /nix/store/zr8f9nif3zrg70gmfnf9grfafiivr9dg-orthanc-1.12.6.drv'.
~/C/N/nixpkgs > (~push-vnnumsrozskt (no description set) lpsyr ad96f (empty)) ✘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment