LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   problem compiling hylafax 5.2.2 from source on SUSE Linux 10.0 (https://www.linuxquestions.org/questions/suse-opensuse-60/problem-compiling-hylafax-5-2-2-from-source-on-suse-linux-10-0-a-630057/)

boxenberg 03-23-2008 01:48 PM

problem compiling hylafax 5.2.2 from source on SUSE Linux 10.0
 
Hi,
I downloaded the hylafax 5.2.2 source from sourceforge. I exracted the tarball so the folder hylafax-5.2.2 resides under /usr/src. When I go to compile a build the script bombs with the following error:
<snip>
Compilation of the following test program failed:

----------------------------------------------------------
#include <stdio.h>
#include "tiffio.h"
main()
{
printf( "header_ver=%d lib_ver=%s", TIFFLIB_VERSION, TIFFGetVersion() );
exit(0);
}
----------------------------------------------------------

TIFFINC=/usr/local/include
LIBTIFF=-L/usr/local/lib -ltiff

Verify that you have the TIFFINC and LIBTIFF configuration parameters
set correctly for your system (see above) and that any environment
variables are setup that are needed to locate a libtiff 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.
</snip>
I have LibTIFF installed, at least I think so - in fact when I was doing a system update via YaST it said something about LibTIFF 3.7.3. In any event, in looking through my sysem I have a folder named tiff-3.8.2 under /usr/local.
I suspect my problem is, being relatively new to Linux, I installed LibTIFF to the wrong location, or at least not where the application I want to install is expecting to find the libraries.
If I am correct in my analysis, would someone please help me correct it so I can compile and install the application?
On another note, in reading the hylafax instruction pages at sourceforge, I came across the following paragraph:
<snip>
If you are using an environment that supports DSOs and HylaFAX supports DSOs in your enviornment (i.e. Linux), then you must ensure that your /etc/ld.so.conf (or equivalent) file contains a reference to /usr/local/lib or wherever libfaxserver.so and libfaxutil.so were installed. (Remember that if you alter /etc/ld.so.conf you must run ldconfig afterwards.)
</snip>
Well, on my system I do not have a /etc/ld.so.conf but rather /etc/ld.so.conf.d and it is a folder, not a file.
Would someone please enlighten me???
Thanks!
Dov

boxenberg 03-23-2008 04:20 PM

RE: Problem compiling hylafax...
 
Just some more info in case it is relevant.
I have been doing some more digging and under /usr/lib I have the following libtiff related files:
libtiff.so.3
libtiff.so.3.7.3
libtiffxx.so.3
libtiffxx.so.3.7.3

knudfl 03-23-2008 06:08 PM

libtiff.so.3
libtiff.so.3.7.3
libtiffxx.so.3
libtiffxx.so.3.7.3
These are runtime libraries, and cannot be used for compiling.
You also need headers for compiling.../usr/include/"files.h"
Everything is in the -devel package 'libtiff-devel-3.7.3-2.i586.rpm'
(incl. 'libtiff.so')

boxenberg 03-23-2008 07:37 PM

[SOLVED] problem compiling hylafax 5.2.2 from source on SUSE Linux 10.0
 
Thank you knudfl for your reply.
Actually you were exactly right...I had to go into YaST, search for libtiff-devel and choose to install it. The system also installed zlib I think or something like that to resolve a dependency issue.
Anyway, I was successfully able to compile after installing these packages.
Thanks for your help!@


All times are GMT -5. The time now is 10:44 PM.