Red Hat Bugzilla – Bug 22438
problem with capi4hylafax and tifflib
Last modified: 2015-03-04 20:08:44 EST
I want to install the capi4hylafax paket from AVM and need tifflib.
the configure script get back, that tifflib is not installed but the
installation is ok. tifflib and tifflib-devel are installed.
if I want to use ist (gcc -ltiff) i'll get an error from the compiler like:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
you can get the avm packet from the avm Homepage (the package is for
compiled for suse but can recompiled for different distibutions.
I've verified your problem and came to the following conclusion:
It is a problem of the configure script that is being delivered with the tarball
of AVM. It does check for libtiff, which actually is installed, but it doesn't
check for the math library which is required for tiff programs to work and
therefore the test fails during linking as several mathematical symbols are
The solution is fairly simple.
Edit the configure.in script and prepend the line:
AC_CHECK_LIB(tiff, TIFFGetVersion, , AC_MSG_ERROR(libtiff not found))
with this line:
AC_CHECK_LIB(m, cos, , AC_MSG_ERROR(libm not found))
Afterwards run autoconf and do the rest as usual. This works for me then.
If you don't have autoconf installed or for whatever reason have to modify the
configure script directly simple search for all occurences of '-ltiff' and
change them to '-ltiff -lm', this will work as well.
Read ya, Phil