Closed wurtel2 closed 6 months ago
That libtiff version 4.5.1+git230720-3 is a bit suspicious, is that a standard rpm debian installs after 'apt-get dist-upgrade'? The loading error is very specific, it means that the file to be loaded doesn't have the tiff signature, i e first 4 bytes are not 'TIFF' or whatever that signature is... This suggests that the file was corrupted or saved badly. Will try to reproduce, but could you try something along the lines of 'convert test.jpg test.tiff' (the convert tool is from imagemagick) to see if the resulting tiff file is okay?
It appears that that libtiff-dev version is from Debian testing. I'll downgrade to the official Debian 12 version tomorrow and try again. Note that this is from the "make test" part of the install, so any test.tiff would be from the tar.gz; however I don't see that in the tar.gz.
the test is both for saving and loading images, so that test.tiff is generated by Prima/libtiff, that's why you don't see it
I've downgraded to libtiff-dev:amd64 4.5.0-6+deb12u1 and now it works. I've strace'd both versions of the test, the writing of the TIFF file is identical in both, reading it back begins the same then does some lseeks differently and then fails.
Thanks for the hint in the direction of the libtiff library, I can now proceed to play with Prima.
Hopefully the issues in libtiff are resolved before being definitely released.
I'm using Debian 12, library versions:
Perl version 5.36.0-10
Compilation seems to go fine, no relevant warnings AFAICS. If I remove the img/codec_tiff.c source file and rebuild, all tests succeed.
Any hints how to fix this?