AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2016.11.02 13:00 "[Tiff] Building libtiff from source fails with v4.0.6", by Guillaume Rossolini
2016.11.03 01:46 "Re: [Tiff] Building libtiff from source fails with v4.0.6", by Bob Friesenhahn
2016.11.03 09:01 "Re: [Tiff] Building libtiff from source fails with v4.0.6", by Guillaume Rossolini

2016.11.02 13:00 "[Tiff] Building libtiff from source fails with v4.0.6", by Guillaume Rossolini

Hi,

I am having trouble building version 4.0.6.

Here are the commands used and their output:

make clean

./configure --with-zlib-include-dir=/usr/local/include --with-zlib-lib-dir=/usr/local/lib --with-jpeg-include-dir=/usr/local/include

--with-jpeg-lib-dir=/usr/local/lib
--with-lzma-include-dir=/usr/local/include
--with-lzma-lib-dir=/usr/local/lib --enable-jpeg12
--with-jpeg12-include-dir=/usr/local/include
--with-jpeg12-lib=/usr/local/lib
make && make install
[...]

libtool: link: ( cd ".libs" && rm -f "libtiffxx.la" && ln -s "../ libtiffxx.la" "libtiffxx.la" ) gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -Wall -W -MT mkg3states.o -MD -MP -MF .deps/mkg3states.Tpo -c -o mkg3states.o mkg3states.c mv -f .deps/mkg3states.Tpo .deps/mkg3states.Po

/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -W

 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -o mkg3states

mkg3states.o ../port/libport.la /usr/local/lib -llzma -ljbig -ljpeg -lz -lm libtool: link: gcc -g -O2 -Wall -W -o mkg3states mkg3states.o /usr/local/lib -L/usr/local/lib ../port/.libs/libport.a /usr/local/lib/liblzma.so -lrt -ljbig /usr/local/lib/libjpeg.so -lz -lm -pthread

/usr/bin/ld: cannot find /usr/local/lib: File format not recognized collect2: error: ld returned 1 exit status Makefile:602: recipe for target 'mkg3states' failed make[2]: *** [mkg3states] Error 1

make[2]: Leaving directory '/usr/local/src/tiff-4.0.6/libtiff' Makefile:494: recipe for target 'all' failed make[1]: *** [all] Error 2

make[1]: Leaving directory '/usr/local/src/tiff-4.0.6/libtiff' Makefile:545: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

Could you please help me fix this issue on my boxes? One uses gcc v6.10 and the other, gcc v4.9.2, both with the same error.

Thanks,