2012.12.08 22:31 "[Tiff] libtiff not compiled on mountain lion Mac OS X 10.8.2", by Jingping Li
Hi,
I have a Macbook with Mac OS X 10.8.2 (mountain lion) installed. When I tried to install tiff-4.0.3 I got the error below:
#############
libtool: compile: c++ -DHAVE_CONFIG_H -I. -g -O2 -c tif_stream.cxx -o tif_stream.o >/dev/null 2>&1 libtool: link: cc -dynamiclib -o .libs/libtiff.5.dylib .libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o .libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o
.libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o
.libs/tif_getimage.o .libs/tif_jbig.o .libs/tif_jpeg.o .libs/tif_jpeg_12.o .libs/tif_luv.o .libs/tif_lzma.o .libs/tif_lzw.o .libs/tif_next.o
.libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o
.libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o
.libs/tif_unix.o -Wl,-force_load,../port/.libs/libport.a -ljpeg -lz -O2
-install_name /usr/local/Cellar/libtiff/4.0.3/lib/libtiff.5.dylib
-compatibility_version 8 -current_version 8.0 -Wl,-single_module brew: superenv removed: -O2
Undefined symbols for architecture x86_64:
"_edeflate", referenced from:
_PixarLogPostEncode in tif_pixarlog.o
_PixarLogEncode in tif_pixarlog.o
_ZIPPostEncode in tif_zip.o
_ZIPEncode in tif_zip.o
...(similar msgs omitted)
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libtiff.la] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install-recursive] Error 1
#############
My configurations are:
#############
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
X11: 2.7.4 => /opt/X11
Libtiff is now configured for i386-apple-darwin12.2.0
Installation directory: /usr/local/Cellar/libtiff/4.0.3
Documentation directory: ${prefix}/share/doc/tiff-4.0.3
C compiler: cc -g -O2 -Wall -W
C++ compiler: c++ -g -O2
Enable runtime linker paths: no
Enable linker symbol versioning: no
Support Microsoft Document Imaging: yes
Use win32 IO: no
Support for internal codecs:
CCITT Group 3 & 4 algorithms: yes
Macintosh PackBits algorithm: yes
LZW algorithm: yes
ThunderScan 4-bit RLE algorithm: yes
NeXT 2-bit RLE algorithm: yes
LogLuv high dynamic range encoding: yes
Support for external codecs:
ZLIB support: yes
Pixar log-format algorithm: yes
JPEG support: yes
Old JPEG support: yes
JPEG 8/12 bit dual mode: no
ISO JBIG support: no
LZMA2 support: no
C++ support: yes
OpenGL support: no
#############
Could you tell what is the problem? I think it is something with the lib links and compiler, but don't know exactly what...
Thank you!
Jingping