Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Img 1.4.13: compiling from source requires the TAR, not the ZIP source archive

16 views
Skip to first unread message

Ralf Fassel

unread,
Sep 10, 2021, 6:17:01 AM9/10/21
to
It should be noted prominently in the toplevel README that for compiling
from source on Linux one needs to use the TAR distribution, not the ZIP.

I just downloaded the Img-1.4.13-Source.zip to recompile Img on Linux,
but this failed with:

% sh ./configure
% make
[...]
In file included from tifftclDecls.h:38:0,
from tifftcl.h:50,
from tifftcl.c:29:
../compat/libtiff/libtiff/tiffiop.h:31:10: fatal error: tif_config.h: No such file or directory
#include "tif_config.h"

The reason is that all the 'configure' scripts in the ZIP are not
executable:

% find . -name configure | xargs ls -l
-rw-rw-r-- 1 ralf abg 276196 Jan 6 2021 ./base/configure
-rw-rw-r-- 1 ralf abg 294349 Jan 6 2021 ./bmp/configure
-rw-rw-r-- 1 ralf abg 473932 Apr 29 2019 ./compat/libjpeg/configure
[...]

and two of the subdir configures 'silently' fail with

checking for ANSI C header files... (cached) yes
./configure: line 5251: ./../compat/libtiff/configure: Permission denied
checking for Tcl public headers... (cached) /homes/ralf/si++aegis/si++.4.0.C1130/src/tcltk/tcl8.6.11/generic

checking for tclsh... /homes/ralf/si++aegis/si++.4.0.C1130/src/tcltk/tcl8.6.11/unix/tclsh
env: '.././../compat/libjpeg/configure': Permission denied
configure: creating ./config.status

These errors get lost in the huge amount of output from 'configure'.

The other subdirs obviously use "$(SHELL) configure" in the Makefiles
(haven't checked).

If I use the Img-1.4.13-Source.tar.gz, I get

% find . -name configure | xargs ls -l
-rwxrwx--- 1 ralf abg 276196 Jan 6 2021 ./base/configure
-rwxrwx--- 1 ralf abg 294349 Jan 6 2021 ./bmp/configure
-rwxrwx--- 1 ralf abg 473932 Apr 29 2019 ./compat/libjpeg/configure
[...]

and compilation now succeeds. (IMHO it would be nicer if the files were
mode 755, 'but'...)

HTH
R'
0 new messages