Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Missing Tiff library version check installing Hylafax-client FreeBSD



Help required with installation of the Hylafax-client on an Apple Macintosh


Already installed Hylafax-server with Linux Debian Sarge 3.1 (unstable version)


Installing Hylafax-client with FreeBSD and Mac OSX 10.3.9 (Panther) gives an error in the configuration file. The Tiff library is missing. This part of the source of the configuration file is checking for the right library version.

#
# Check if TIFF library is compatible. If successful,
# set $tiff_runlen_t on exit to "uint16" or "uint32"
#
CheckLibtiff()
{
Note "... checking TIFF library version"
tiff_runlen_t=""
cat>t.c<<EOF
#include "tiffio.h"
main()
{
printf( "header_ver=%d lib_ver=%s", TIFFLIB_VERSION, TIFFGetVersion() );
exit(0);
}
EOF
capture cat t.c
if runMake t "t:; \${CC} \${CVERSION} -I${OTIFFINC} t.c ${LIBTIFF} ${MACHDEPLIBS}"; then
header_ver=0
lib_ver=""
eval `./a.out | \
sed -n -e 's/header_ver=\([0-9][0-9]*\) lib_ver=.*Version *\([0-9][0-9]*\.[0-9]\).*/\
header_ver=\1;lib_ver=\2/p'`
Note " Found tiffio.h version ${header_ver}"
Note " Found libtiff version ${lib_ver}"
if [ ${header_ver} -ge 19960307 ]; then
if [ "${lib_ver}" = "3.4" ]; then
tiff_runlen_t="uint16"
elif [ "${lib_ver}" = "3.5" ]; then
tiff_runlen_t="uint32"
fi
fi
else
cat 1>&2 <<EOF


Missing TIFF Library.

Does the source code normally set the path to the tiffio.h version or what changes do I need to make to the shell script to make this version check work? Somehow the path to the header files is not found by the existing source code of the configuration file. I have placed my header files tiff.h and tiffio.h in usr/local/include,

This is done in the Macintosh FreeBSD terminal. The tiff files were extracted from tiff-3.7.3. I assumed the tiff library version check was done on these two files. The test program tiffio.h cannot be compiled.

I have set the TIIFINC and LIBTIFF configuration parameters in the source of the configuration file. To no avail until now...

computer:/usr/local/include root# ls -la
total 104
drwxr-xr-x  4 root   staff    136  5 Aug 10:51 .
drwxr-xr-x  8 oscar  staff    272  4 Aug 15:58 ..
-rw-r--r--  1 root   staff  30663  5 Aug 10:51 tiff.h
-rw-r--r--  1 root   staff  19160  5 Aug 10:51 tiffio.h

I think I still miss a file in computer:/usr/local/lib/ tiff.a ??
I am still not certain if this thing is a bug and whether to submit it to bugzilla :-(


Erik




____________________ HylaFAX(tm) Users Mailing List _______________________
 To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services