[Debian-med-packaging] Bug#801228: libopenjp2-7-dev should conflict with src:gdcm

Mathieu Malaterre malat at debian.org
Wed Oct 7 15:53:25 UTC 2015


Package: gdcm
Version: 2.4.4-4
Severity: serious
Justification: FTBFS

One cannot compile gdcm when libopenjp2-7-dev is installed. Make sure
to add a Build-Conflict and/or fix the code upstream.

[ 61%] Building CXX object
Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEG2000Codec.cxx.o
cd /tmp/gdcm-2.4.4/obj-x86_64-linux-gnu/Source/MediaStorageAndFileFormat
&& /usr/bin/c++   -DgdcmMSFF_EXPORTS -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -fPIC
-I/tmp/gdcm-2.4.4/Source/Common
-I/tmp/gdcm-2.4.4/obj-x86_64-linux-gnu/Source/Common
-I/tmp/gdcm-2.4.4/Source/DataStructureAndEncodingDefinition
-I/tmp/gdcm-2.4.4/Source/DataDictionary
-I/tmp/gdcm-2.4.4/Source/InformationObjectDefinition
-I/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat
-I/tmp/gdcm-2.4.4/Utilities
-I/tmp/gdcm-2.4.4/obj-x86_64-linux-gnu/Utilities
-I/usr/include/openjpeg-2.1 -I/usr/include/json-c -I/usr/include/json
  -o CMakeFiles/gdcmMSFF.dir/gdcmJPEG2000Codec.cxx.o -c
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:
In function ‘void**
gdcm::opj_stream_create_memory_stream(gdcm::myfile*, OPJ_UINT32,
bool)’:
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:193:42:
error: too few arguments to function ‘void
opj_stream_set_user_data(void**, void*, opj_stream_free_user_data_fn)’
   opj_stream_set_user_data(l_stream,p_mem);
                                          ^
In file included from /tmp/gdcm-2.4.4/Utilities/gdcm_openjpeg2.h:20:0,
                 from
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:29:
/usr/include/openjpeg-2.1/openjpeg.h:1154:27: note: declared here
 OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t*
p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
                           ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:
In member function ‘std::pair<char*, long unsigned int>
gdcm::JPEG2000Codec::DecodeByStreamsCommon(char*, size_t)’:
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:465:35:
error: ‘CODEC_J2K’ was not declared in this scope
     dinfo = opj_create_decompress(CODEC_J2K);
                                   ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:468:35:
error: ‘CODEC_JP2’ was not declared in this scope
     dinfo = opj_create_decompress(CODEC_JP2);
                                   ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:509:46:
error: ‘J2K_STREAM_CHUNK_SIZE’ was not declared in this scope
   cio = opj_stream_create_memory_stream(fsrc,J2K_STREAM_CHUNK_SIZE, true);
                                              ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:525:8:
error: invalid conversion from ‘opj_image_t** {aka opj_image**}’ to
‘void**’ [-fpermissive]
     cio);
        ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:525:8:
error: cannot convert ‘OPJ_INT32* {aka int*}’ to ‘opj_image_t** {aka
opj_image**}’ for argument ‘3’ to ‘OPJ_BOOL opj_read_header(void**,
void**, opj_image_t**)’
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:531:54:
error: ‘opj_get_reversible’ was not declared in this scope
   reversible = opj_get_reversible(dinfo, &parameters );
                                                      ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:535:32:
error: too few arguments to function ‘OPJ_BOOL opj_decode(void**,
void**, opj_image_t*)’
   image = opj_decode(dinfo, cio);
                                ^
In file included from /tmp/gdcm-2.4.4/Utilities/gdcm_openjpeg2.h:20:0,
                 from
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:29:
/usr/include/openjpeg-2.1/openjpeg.h:1299:31: note: declared here
 OPJ_API OPJ_BOOL OPJ_CALLCONV opj_decode(   opj_codec_t *p_decompressor,
                               ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:539:40:
error: ‘check_comp_valid’ was not declared in this scope
   if (!image || !check_comp_valid(image) )
                                        ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:
In function ‘opj_image_t* gdcm::rawtoimage(char*, opj_cparameters_t*,
int, int, int, int, int, int, int, int, int)’:
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:777:19:
error: ‘CLRSPC_GRAY’ was not declared in this scope
     color_space = CLRSPC_GRAY;
                   ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:782:19:
error: ‘CLRSPC_SRGB’ was not declared in this scope
     color_space = CLRSPC_SRGB;
                   ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:
In member function ‘bool
gdcm::JPEG2000Codec::CodeFrameIntoBuffer(char*, size_t, size_t&, const
char*, size_t)’:
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1012:31:
error: ‘CODEC_J2K’ was not declared in this scope
   cinfo = opj_create_compress(CODEC_J2K);
                               ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1019:31:
error: ‘image_len’ was not declared in this scope
   char *buffer_j2k = new char[image_len]; // overallocated
                               ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1025:46:
error: ‘J2K_STREAM_CHUNK_SIZE’ was not declared in this scope
   cio = opj_stream_create_memory_stream(fsrc,J2K_STREAM_CHUNK_SIZE,false);
                                              ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:
In member function ‘bool gdcm::JPEG2000Codec::GetHeaderInfo(const
char*, size_t, gdcm::TransferSyntax&)’:
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1243:35:
error: ‘CODEC_J2K’ was not declared in this scope
     dinfo = opj_create_decompress(CODEC_J2K);
                                   ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1246:35:
error: ‘CODEC_JP2’ was not declared in this scope
     dinfo = opj_create_decompress(CODEC_JP2);
                                   ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1280:46:
error: ‘J2K_STREAM_CHUNK_SIZE’ was not declared in this scope
   cio = opj_stream_create_memory_stream(fsrc,J2K_STREAM_CHUNK_SIZE, true);
                                              ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1296:8:
error: invalid conversion from ‘opj_image_t** {aka opj_image**}’ to
‘void**’ [-fpermissive]
     cio);
        ^
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1296:8:
error: cannot convert ‘OPJ_INT32* {aka int*}’ to ‘opj_image_t** {aka
opj_image**}’ for argument ‘3’ to ‘OPJ_BOOL opj_read_header(void**,
void**, opj_image_t**)’
/tmp/gdcm-2.4.4/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx:1331:54:
error: ‘opj_get_reversible’ was not declared in this scope
   reversible = opj_get_reversible(dinfo, &parameters );
                                                      ^
Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/build.make:2177:
recipe for target
'Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEG2000Codec.cxx.o'
failed
make[3]: *** [Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEG2000Codec.cxx.o]
Error 1
make[3]: Leaving directory '/tmp/gdcm-2.4.4/obj-x86_64-linux-gnu'
CMakeFiles/Makefile2:398: recipe for target
'Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/all' failed
make[2]: *** [Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/all]
Error 2
make[2]: Leaving directory '/tmp/gdcm-2.4.4/obj-x86_64-linux-gnu'



More information about the Debian-med-packaging mailing list