[Debian-med-packaging] Bug#807394: orthanc-dicomweb: FTBFS: Plugin.cpp:167:87: error: invalid conversion from 'int32_t (*)(OrthancPluginRestOutp [..]

Chris Lamb lamby at debian.org
Tue Dec 8 12:16:13 UTC 2015


Source: orthanc-dicomweb
Version: 0.1+dfsg-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

orthanc-dicomweb fails to build from source in unstable/amd64:

  [..]
               ^
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Plugin/Plugin.cpp:167:87:
  error: invalid conversion from 'int32_t (*)(OrthancPluginRestOutput*,
  const char*, const OrthancPluginHttpRequest*) {aka int
  (*)(_OrthancPluginRestOutput_t*, const char*, const
  OrthancPluginHttpRequest*)}' to 'OrthancPluginRestCallback {aka
  OrthancPluginErrorCode (*)(_OrthancPluginRestOutput_t*, const char*,
  const OrthancPluginHttpRequest*)}' [-fpermissive]
         Register(root, "studies/([^/]*)/series/([^/]*)/metadata",
         RetrieveSeriesMetadata);
                                                                                         ^
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Plugin/Plugin.cpp:84:13:
  note:   initializing argument 3 of 'void Register(const string&, const
  string&, OrthancPluginRestCallback)'
   static void Register(const std::string& root,
               ^
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Plugin/Plugin.cpp:182:77:
  error: invalid conversion from 'int32_t (*)(OrthancPluginRestOutput*,
  const char*, const OrthancPluginHttpRequest*) {aka int
  (*)(_OrthancPluginRestOutput_t*, const char*, const
  OrthancPluginHttpRequest*)}' to 'OrthancPluginRestCallback {aka
  OrthancPluginErrorCode (*)(_OrthancPluginRestOutput_t*, const char*,
  const OrthancPluginHttpRequest*)}' [-fpermissive]
         OrthancPluginRegisterRestCallback(context_, wado.c_str(),
         WadoCallback);
                                                                               ^
  In file included from
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Plugin/Plugin.h:23:0,
                   from
                   /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Plugin/Plugin.cpp:21:
  /usr/include/orthanc/OrthancCPlugin.h:1181:30: note:   initializing
  argument 3 of 'void
  OrthancPluginRegisterRestCallback(OrthancPluginContext*, const char*,
  OrthancPluginRestCallback)'
     ORTHANC_PLUGIN_INLINE void OrthancPluginRegisterRestCallback(
                                ^
  CMakeFiles/OrthancDicomWeb.dir/build.make:353: recipe for target
  'CMakeFiles/OrthancDicomWeb.dir/Plugin/Plugin.cpp.o' failed
  make[3]: *** [CMakeFiles/OrthancDicomWeb.dir/Plugin/Plugin.cpp.o]
  Error 1
  make[3]: *** Waiting for unfinished jobs....
  [ 75%] Building CXX object
  CMakeFiles/UnitTests.dir/Plugin/DicomResults.cpp.o
  /usr/bin/c++   -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_HAS_DATE_TIME=1
  -DBOOST_HAS_FILESYSTEM_V3=1 -DBOOST_HAS_LOCALE=1 -DBOOST_HAS_REGEX=1
  -DORTHANC_DICOM_WEB_VERSION=\"0.1\" -DORTHANC_ENABLE_BASE64=0
  -DORTHANC_ENABLE_MD5=0 -DORTHANC_PUGIXML_ENABLED=1 -DORTHANC_STATIC=0
  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -g -O2
  -fstack-protector-strong -Wformat -Werror=format-security
  -D_FORTIFY_SOURCE=2  -Wall -pedantic -Wno-long-long
  -Wno-variadic-macros -I/usr/src/gtest -I/usr/include/jsoncpp
  -I/usr/include/gdcm-2.6    -o
  CMakeFiles/UnitTests.dir/Plugin/DicomResults.cpp.o -c
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Plugin/DicomResults.cpp
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Orthanc/Core/Toolbox.cpp:
  In function 'Orthanc::Endianness
  Orthanc::Toolbox::DetectEndianness()':
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Orthanc/Core/Toolbox.cpp:871:33:
  warning: dereferencing type-punned pointer will break strict-aliasing
  rules [-Wstrict-aliasing]
       switch (*((uint32_t *)buffer)) 
                                   ^
  [ 78%] Building CXX object
  CMakeFiles/UnitTests.dir/Plugin/JpegWriter.cpp.o
  [ 81%] Building CXX object
  CMakeFiles/UnitTests.dir/usr/src/gtest/src/gtest-all.cc.o
  /usr/bin/c++   -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_HAS_DATE_TIME=1
  -DBOOST_HAS_FILESYSTEM_V3=1 -DBOOST_HAS_LOCALE=1 -DBOOST_HAS_REGEX=1
  -DORTHANC_DICOM_WEB_VERSION=\"0.1\" -DORTHANC_ENABLE_BASE64=0
  -DORTHANC_ENABLE_MD5=0 -DORTHANC_PUGIXML_ENABLED=1 -DORTHANC_STATIC=0
  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -g -O2
  -fstack-protector-strong -Wformat -Werror=format-security
  -D_FORTIFY_SOURCE=2  -Wall -pedantic -Wno-long-long
  -Wno-variadic-macros -I/usr/src/gtest -I/usr/include/jsoncpp
  -I/usr/include/gdcm-2.6    -o
  CMakeFiles/UnitTests.dir/Plugin/JpegWriter.cpp.o -c
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Plugin/JpegWriter.cpp
  /usr/bin/c++   -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_HAS_DATE_TIME=1
  -DBOOST_HAS_FILESYSTEM_V3=1 -DBOOST_HAS_LOCALE=1 -DBOOST_HAS_REGEX=1
  -DORTHANC_DICOM_WEB_VERSION=\"0.1\" -DORTHANC_ENABLE_BASE64=0
  -DORTHANC_ENABLE_MD5=0 -DORTHANC_PUGIXML_ENABLED=1 -DORTHANC_STATIC=0
  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -g -O2
  -fstack-protector-strong -Wformat -Werror=format-security
  -D_FORTIFY_SOURCE=2  -Wall -pedantic -Wno-long-long
  -Wno-variadic-macros -I/usr/src/gtest -I/usr/include/jsoncpp
  -I/usr/include/gdcm-2.6    -o
  CMakeFiles/UnitTests.dir/usr/src/gtest/src/gtest-all.cc.o -c
  /usr/src/gtest/src/gtest-all.cc
  [ 84%] Building CXX object
  CMakeFiles/UnitTests.dir/UnitTestsSources/UnitTestsMain.cpp.o
  /usr/bin/c++   -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_HAS_DATE_TIME=1
  -DBOOST_HAS_FILESYSTEM_V3=1 -DBOOST_HAS_LOCALE=1 -DBOOST_HAS_REGEX=1
  -DORTHANC_DICOM_WEB_VERSION=\"0.1\" -DORTHANC_ENABLE_BASE64=0
  -DORTHANC_ENABLE_MD5=0 -DORTHANC_PUGIXML_ENABLED=1 -DORTHANC_STATIC=0
  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -g -O2
  -fstack-protector-strong -Wformat -Werror=format-security
  -D_FORTIFY_SOURCE=2  -Wall -pedantic -Wno-long-long
  -Wno-variadic-macros -I/usr/src/gtest -I/usr/include/jsoncpp
  -I/usr/include/gdcm-2.6    -o
  CMakeFiles/UnitTests.dir/UnitTestsSources/UnitTestsMain.cpp.o -c
  /home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/UnitTestsSources/UnitTestsMain.cpp
  make[3]: Leaving directory
  '/home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Build'
  CMakeFiles/Makefile2:70: recipe for target
  'CMakeFiles/OrthancDicomWeb.dir/all' failed
  make[2]: *** [CMakeFiles/OrthancDicomWeb.dir/all] Error 2
  make[2]: *** Waiting for unfinished jobs....
  [ 87%] Linking CXX executable UnitTests
  /usr/bin/cmake -E cmake_link_script CMakeFiles/UnitTests.dir/link.txt
  --verbose=1
  /usr/bin/c++   -g -O2 -fstack-protector-strong -Wformat
  -Werror=format-security -D_FORTIFY_SOURCE=2  -Wall -pedantic
  -Wno-long-long -Wno-variadic-macros   -Wl,-z,relro -Wl,--as-needed
  CMakeFiles/UnitTests.dir/Orthanc/Core/ChunkedBuffer.cpp.o
  CMakeFiles/UnitTests.dir/Orthanc/Core/Enumerations.cpp.o
  CMakeFiles/UnitTests.dir/Orthanc/Core/ImageFormats/ImageAccessor.cpp.o
  CMakeFiles/UnitTests.dir/Orthanc/Core/ImageFormats/ImageBuffer.cpp.o
  CMakeFiles/UnitTests.dir/Orthanc/Core/ImageFormats/PngReader.cpp.o
  CMakeFiles/UnitTests.dir/Orthanc/Core/OrthancException.cpp.o
  CMakeFiles/UnitTests.dir/Orthanc/Core/Toolbox.cpp.o
  CMakeFiles/UnitTests.dir/Plugin/ChunkedBuffer.cpp.o
  CMakeFiles/UnitTests.dir/Plugin/Configuration.cpp.o
  CMakeFiles/UnitTests.dir/Plugin/Dicom.cpp.o
  CMakeFiles/UnitTests.dir/Plugin/DicomResults.cpp.o
  CMakeFiles/UnitTests.dir/Plugin/JpegWriter.cpp.o
  CMakeFiles/UnitTests.dir/usr/src/gtest/src/gtest-all.cc.o
  CMakeFiles/UnitTests.dir/UnitTestsSources/UnitTestsMain.cpp.o  -o
  UnitTests  -lpthread -lrt -ldl -lboost_filesystem -lboost_thread
  -lboost_system -lboost_date_time -lboost_regex -lboost_locale
  -lpthread -ljsoncpp -lpng -lz -lz -lpugixml -ljpeg -lrt
  /usr/lib/x86_64-linux-gnu/libgdcmMSFF.so.2.6.0 -ldl -lboost_filesystem
  -lboost_thread -lboost_system -lboost_date_time -lboost_regex
  -lboost_locale -lpthread -ljsoncpp -lpng -lz -lpugixml -ljpeg
  /usr/lib/x86_64-linux-gnu/libgdcmDICT.so.2.6.0
  /usr/lib/x86_64-linux-gnu/libgdcmIOD.so.2.6.0
  /usr/lib/x86_64-linux-gnu/libgdcmDSED.so.2.6.0
  /usr/lib/x86_64-linux-gnu/libgdcmCommon.so.2.6.0 
  make[3]: Leaving directory
  '/home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Build'
  [ 87%] Built target UnitTests
  make[2]: Leaving directory
  '/home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Build'
  Makefile:130: recipe for target 'all' failed
  make[1]: *** [all] Error 2
  make[1]: Leaving directory
  '/home/lamby/temp/cdt.20151208135554.yE2P8vcjOm/orthanc-dicomweb-0.1+dfsg/Build'
  dh_auto_build: make -j8 returned exit code 2
  debian/rules:8: recipe for target 'build' failed
  make: *** [build] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: orthanc-dicomweb.0.1+dfsg-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 4520 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20151208/999f835c/attachment.obj>


More information about the Debian-med-packaging mailing list