HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Problem compiling HylaFAX+ from source



Hi

I've spent the last couple of hours trying to compile HylaFAX+ from source on Ubuntu Server 10.04 LTS (clean install), but I can't get past the ./configure stage due to ZLIB.

This is what I've done:

1. Downloaded libtiff v.3.9.4, Ghostscript 9.00 and HylaFAX+ v5.4.3.

2. Ran tar xzvf for each of the archives from (1).

3. For libtiff I ran: ./configure && make && sudo make install

4. For ghostscript I ran: ./configure && make && sudo make install

So far everything seems fine as far as I can tell. However, when I move on to (5) I run into trouble.

5. For hylafax+: ./configure

This is the complete output:

Configuring HylaFAX (tm) (aka FlexFAX) 5.4.3.

If configure does the wrong thing, check the file config.log for
information that may help you understand what went wrong.

Reading site-wide parameters from ./config.site.
Well I'll be, a i686-pc-linux-gnu system.
Using /usr/bin/gcc for a C compiler (set CC to override).
Looks like /usr/bin/gcc supports the -g option.
Using " -g" for C compiler options.
Looks like /usr/bin/gcc has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Looks like /usr/bin/gcc supports the -M option for generating make dependencies.
Using /usr/bin/g++ for a C++ compiler (set CXX to override).
Looks like /usr/bin/g++ supports the -g option.
Using " -g" for C++ compiler options.
Looks like /usr/bin/g++ has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Using /usr/bin/make to configure the software.
Using "include file" syntax for Makefiles.
Looks like make supports "sinclude" for conditional includes.
Using /bin/bash to process command scripts.
Checking for regular _expression_ library support
... found. Using system regular _expression_ support.
Checking for PAM (Pluggable Authentication Module) support
... not found. Disabling PAM support
Checking for JBIG library support
... not found. Disabling JBIG support
Checking for JPEG library support
... not found. Disabling JPEG library support
Checking for Little CMS library support
... not found. Disabling Little CMS support
Checking for LDAP (Lightweight Directory Access Protocol) support
... not found. Disabling LDAP support
Looks like -lcrypt is needed for crypt.
Looks like -lutil is needed for wtmp file logging.
Looks like -lm is the library for math functions.

Creating port.h with necessary definitions.
... open FIFO files read+write to avoid select bug
... using call-by-reference for TIOCMBIS ioctl
... constrain client IDs to be <= 60002
... configure use of <stdint.h>
... configure use of <sys/select.h>
... use (sig_t) for sigaction handler type
... use (sig_t) for signal handler type
... configure use of mmap for memory-mapped files
... configure use of sysconf
... configure use of ulimit
... configure use of getdtablesize
... add #define for howmany
... configure use of fchown
... configure use of fchmod
... configure use of struct tm timezone information
... configure use of <locale.h> (internationalization support)
... configure use of <langinfo.h> (internationalization support)
... configure use of <paths.h>
... configure use of logwtmp (BSD-style wtmp logging)
... configure use of logout (BSD-style utmp support)
... configure use of <utmp.h> (normal utmp interface)
... configure use of extended exit status in utmp
... configure use of POSIX realtime process control interface
... configure use of <crypt.h>
... checking TIFF library version
  Found tiffio.h version 20100615
  Found libtiff version 3.9
... add declaration for tiff_runlen_t
Done creating port.h.

Checking system libraries for functionality to emulate.
Done checking system libraries.

Checking ZLIB support.

Incompatible/missing ZLIB Library.

Compilation or execution of the following test program failed:

----------------------------------------------------------
#include <stdlib.h>
#include <stdio.h>
#include "zlib.h"
main()
{
    if (strcmp(ZLIB_VERSION, "0.95") < 0) {     /* include file version */
        printf("old include files: version %u\n", ZLIB_VERSION);
        exit(-1);
    }
    if (strncmp(zlib_version, ZLIB_VERSION, 4) != 0) {
        printf("library/header file incompatibility: %s %s\n",
        zlib_version, ZLIB_VERSION);
        exit(-1);
    } else {
        exit(0);
    }
}
----------------------------------------------------------

With the following directories tried:
DIRS=<default compiler search path> /usr/local /opt/zlib

The above program checks the version of the ZLIB library to ensure it
is suitable for use with HylaFAX.  HylaFAX 5.4.3 requires a recent
ZLIB software distribution; version 0.95 or newer.  If you have the right
software, verify that you have the ZLIBINC(location of zlib.h) and
LIBZ(location of libz.a/libz.so) configuration parameters set correctly
for your system and that any environment variables are setup that are
needed to locate a libz DSO at runtime (e.g.  LD_LIBRARY_PATH).
Also be sure that any relative pathnames are made relative to the top of
the build area.


Unrecoverable error!  Once you've corrected the problem rerun this script.

I've been trying to find an answer in ghostscript's documentation and online, but I don't know how to proceed. My understanding is that ghostscript's source contains the zlib source and that unless SHARE_ZLIB=0 is changed to "1" zlib will be compiled in the resulting gs executable. Anyway, I'm not sure as all of this is new to me.

Please help. Thanks ;)





Project hosted by iFAX Solutions