Bug#1011710: freeimage: FTBFS: ld: /<<PKGBUILDDIR>>/Dist/libfreeimage.so: undefined reference to `_TIFFDataSize'

Lucas Nussbaum lucas at debian.org
Thu May 26 07:35:40 BST 2022


Source: freeimage
Version: 3.18.0+ds2-6
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I/<<PKGBUILDDIR>>/Dist *.cpp -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/<<PKGBUILDDIR>>/Dist -lfreeimage -o testAPI && \
> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/Dist ./testAPI
> testHeaderOnly.cpp: In function ‘void ParseMetadata(FIBITMAP*, FREE_IMAGE_MDMODEL)’:
> testHeaderOnly.cpp:81:37: warning: unused variable ‘key’ [-Wunused-variable]
>    81 |                         const char *key = FreeImage_GetTagKey(tag);
>       |                                     ^~~
> testHeaderOnly.cpp:83:37: warning: unused variable ‘value’ [-Wunused-variable]
>    83 |                         const char *value = FreeImage_TagToString(model, tag);
>       |                                     ^~~~~
> testHeaderOnly.cpp: In function ‘BOOL testHeaderData(const char*)’:
> testHeaderOnly.cpp:121:33: warning: unused variable ‘type’ [-Wunused-variable]
>   121 |                 FREE_IMAGE_TYPE type = FreeImage_GetImageType(dib);
>       |                                 ^~~~
> testHeaderOnly.cpp:122:26: warning: unused variable ‘width’ [-Wunused-variable]
>   122 |                 unsigned width = FreeImage_GetWidth(dib);
>       |                          ^~~~~
> testHeaderOnly.cpp:123:26: warning: unused variable ‘height’ [-Wunused-variable]
>   123 |                 unsigned height = FreeImage_GetHeight(dib);
>       |                          ^~~~~~
> testHeaderOnly.cpp:124:26: warning: unused variable ‘bpp’ [-Wunused-variable]
>   124 |                 unsigned bpp = FreeImage_GetBPP(dib);
>       |                          ^~~
> testHeaderOnly.cpp: In function ‘BOOL testExifRawFile(const char*, int, int)’:
> testHeaderOnly.cpp:188:45: warning: unused variable ‘key’ [-Wunused-variable]
>   188 |                                 const char *key = FreeImage_GetTagKey(dst_tag);
>       |                                             ^~~
> testHeaderOnly.cpp:189:38: warning: unused variable ‘dst_id’ [-Wunused-variable]
>   189 |                                 WORD dst_id = FreeImage_GetTagID(dst_tag);
>       |                                      ^~~~~~
> testHeaderOnly.cpp:190:51: warning: unused variable ‘dst_type’ [-Wunused-variable]
>   190 |                                 FREE_IMAGE_MDTYPE dst_type = FreeImage_GetTagType(dst_tag);
>       |                                                   ^~~~~~~~
> testHeaderOnly.cpp:191:39: warning: unused variable ‘dst_count’ [-Wunused-variable]
>   191 |                                 DWORD dst_count = FreeImage_GetTagCount(dst_tag);
>       |                                       ^~~~~~~~~
> testHeaderOnly.cpp:193:39: warning: unused variable ‘dst_value’ [-Wunused-variable]
>   193 |                                 BYTE *dst_value = (BYTE*)FreeImage_GetTagValue(dst_tag);
>       |                                       ^~~~~~~~~
> testHeaderOnly.cpp:169:37: warning: unused variable ‘key’ [-Wunused-variable]
>   169 |                         const char *key = FreeImage_GetTagKey(tag);
>       |                                     ^~~
> testHeaderOnly.cpp:170:30: warning: unused variable ‘id’ [-Wunused-variable]
>   170 |                         WORD id = FreeImage_GetTagID(tag);
>       |                              ^~
> testHeaderOnly.cpp:171:43: warning: unused variable ‘type’ [-Wunused-variable]
>   171 |                         FREE_IMAGE_MDTYPE type = FreeImage_GetTagType(tag);
>       |                                           ^~~~
> testHeaderOnly.cpp:172:31: warning: unused variable ‘count’ [-Wunused-variable]
>   172 |                         DWORD count = FreeImage_GetTagCount(tag);
>       |                               ^~~~~
> testHeaderOnly.cpp:174:31: warning: unused variable ‘value’ [-Wunused-variable]
>   174 |                         BYTE *value = (BYTE*)FreeImage_GetTagValue(tag);
>       |                               ^~~~~
> testHeaderOnly.cpp:186:30: warning: unused variable ‘bResult’ [-Wunused-variable]
>   186 |                         BOOL bResult = FreeImage_GetMetadata(FIMD_EXIF_RAW, dib, "ExifRaw", &dst_tag);
>       |                              ^~~~~~~
> testHeaderOnly.cpp:167:22: warning: unused variable ‘bResult’ [-Wunused-variable]
>   167 |                 BOOL bResult = FreeImage_GetMetadata(FIMD_EXIF_RAW, dib, "ExifRaw", &tag);
>       |                      ^~~~~~~
> testImageType.cpp: In function ‘BOOL testAllocateCloneUnloadType(FREE_IMAGE_TYPE, unsigned int, unsigned int)’:
> testImageType.cpp:75:23: warning: enumeration value ‘FIT_UNKNOWN’ not handled in switch [-Wswitch]
>    75 |                 switch(image_type) {
>       |                       ^
> testImageType.cpp:194:23: warning: enumeration value ‘FIT_UNKNOWN’ not handled in switch [-Wswitch]
>   194 |                 switch(image_type) {
>       |                       ^
> testMPageMemory.cpp: In function ‘void testMultiPageMemory(const char*)’:
> testMPageMemory.cpp:268:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   268 |         bSuccess = testMemoryStreamMultiPageOpenSave("sample.tif", "mpage-mstream-redirect.tif", 0, 0);
>       |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> testMPageMemory.cpp: In function ‘void testLoadMultiBitmapFromMemory(const char*)’:
> testMPageMemory.cpp:68:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    68 |                                 fread(mem_buffer, sizeof(BYTE), buf.st_size, stream);
>       |                                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> testMemIO.cpp: In function ‘void testLoadMemIO(const char*)’:
> testMemIO.cpp:83:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    83 |                                 fread(mem_buffer, sizeof(BYTE), buf.st_size, stream);
>       |                                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/bin/ld: /<<PKGBUILDDIR>>/Dist/libfreeimage.so: undefined reference to `_TIFFDataSize'
> collect2: error: ld returned 1 exit status


The full build log is available from:
http://qa-logs.debian.net/2022/05/25/freeimage_3.18.0+ds2-6_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the debian-science-maintainers mailing list