TIFF library remove TIFFFindFieldInfo

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Locked
beta
Posts: 13
Joined: 24 Feb 2012, 13:34

TIFF library remove TIFFFindFieldInfo

Post by beta »

Hello, I'm new here and I'm not use to speak english at all, so please correct me if I'm wrong ^^!

I'm a gentoo user, and 3 days ago, while I tried to compile openmw, I got this error :
/usr/lib/libfreeimage.so.3: undefined reference to `TIFFFindFieldInfo'

after a little search, I got this:
TIFF library remove TIFFFindFieldInfo function but freeimage can compile with it and cause error for any application while linking.

It seems that libtiff 4 has no more a function called TIFFFindFieldInfo.

A downgrade to libtiff 3 after and the error has vanished.

maybe you already know that openmw doesn't work with libtiff 4 !
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: TIFF library remove TIFFFindFieldInfo

Post by psi29a »

I compile against libtiff4-dev in ubuntu and I've never seen this issue. To be fair, on ubuntu (11.10), libtiff4 is actually 3.9.5-1ubuntu1 so that would make sense. You, beta, are bleeding edge. :)

Did some research and found this from recent libtiff4

http://comments.gmane.org/gmane.comp.video.tiff/5707
TIFFFindFieldInfo() (and related functions in tif_dirinfo.c) is now
deprecated in favour of TIFFFindField. Right now, it just silently
returns 0. But a return value of 0 could just mean that the particular
tag was not found, not that we no longer support this API. I feel
strongly that we should call TIFFErrorExt() here with a suitable message
pointing to the new API. This silent behaviour caused me some grief in
figuring out why my images no longer used predictors.
Thanks for pointing this out beta.

I also looked through openmw code and could find no use of TIFFindFieldInfo, so this leads me to believe that it is a library that we use and nothing in openmw itself.
brick@zwartevogel:~/workspace/openmw$ grep -R "TIFFFindFieldInfo" . | wc -l
0
Locked