2006.03.27 23:18 "[Tiff] Compile errors Tiff-3.8.0 on FreeBSD 5.4", by Karyn Williams

2006.03.28 06:19 "Re: [Tiff] Compile errors Tiff-3.8.0 on FreeBSD 5.4", by Kai-Uwe Behrmann

Be carefully with libtiff 3.8.0. As reported by Holger Schemel on 10 Mar 2006 and others too, this version is buggy and caused allready numerous crashes. Better do an upgrade.

regards
Kai-Uwe Behrmann

                                + development for color management 
                                + imaging / panoramas
                                + email: ku.b@gmx.de
                                + http://www.behrmann.name

Am 27.03.06, 15:18 -0800 schrieb Karyn Williams:

Make and configure output below. Trying to make tiff-3.8.0 on freebsd 5.4, GNU Make 3.80. Have installed jpeg-6b and libtool-1.5.22. Any help would be appreciated.

test# gmake
Making all in port
gmake[1]: Entering directory `/usr/src/tiff-3.8.0/port'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/src/tiff-3.8.0/port'
Making all in libtiff
gmake[1]: Entering directory `/usr/src/tiff-3.8.0/libtiff'
gmake all-am

gmake[2]: Entering directory `/usr/src/tiff-3.8.0/libtiff' if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.

 -g -O2 -Wall -W -MT tif_dirread.lo -MD -MP -MF ".deps/tif_dirread.Tpo" -c
-o tif_dirread.lo tif_dirread.c; \
then mv -f ".deps/tif_dirread.Tpo" ".deps/tif_dirread.Plo"; else rm -f
".deps/tif_dirread.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -Wall -W -MT tif_dirread.lo -MD
-MP -MF .deps/tif_dirread.Tpo -c tif_dirread.c -fPIC -DPIC -o
.libs/tif_dirread.o

tif_dirread.c: In function `ChopUpSingleUncompressedStrip':
tif_dirread.c:1716: error: syntax error before ')' token
tif_dirread.c:1702: warning: unused variable `bytecount'
tif_dirread.c:1703: warning: unused variable `offset'
tif_dirread.c:1704: warning: unused variable `stripbytes'
tif_dirread.c:1705: warning: unused variable `strip'
tif_dirread.c:1705: warning: unused variable `nstrips'
tif_dirread.c:1706: warning: unused variable `newcounts'
tif_dirread.c:1707: warning: unused variable `newoffsets'
tif_dirread.c: At top level:
tif_dirread.c:1719: error: syntax error before "else"

gmake[2]: *** [tif_dirread.lo] Error 1
gmake[2]: Leaving directory `/usr/src/tiff-3.8.0/libtiff'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/src/tiff-3.8.0/libtiff'
gmake: *** [all-recursive] Error 1
test#

test# ./configure
checking build system type... i386-unknown-freebsd5.4
checking host system type... i386-unknown-freebsd5.4
checking target system type... i386-unknown-freebsd5.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for C compiler warning flags... -Wall -W
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 16384
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes

checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... freebsd5.4 ld.so

checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes

checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... freebsd5.4 ld.so

checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes

checking for main in -lc... yes
checking for main in -lm... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for off_t... yes
checking for size_t... yes
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for int8... no
checking for int16... no
checking for int32... no
checking for floor... yes
checking for isascii... yes
checking for memmove... yes
checking for memset... yes
checking for mmap... yes
checking for pow... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for getopt... yes
checking for strcasecmp... yes
checking for strtoul... yes
checking for lfind... yes
checking native cpu bit order... lsb2msb
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for jpeg_read_scanlines in -ljpeg... no
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes

checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... -D_THREAD_SAFE

checking for cc_r... gcc
checking whether we are using the Microsoft C compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenGL library... -lGL
checking for OpenGL Utility library... -lGLU
checking for GLUT library... no
test: x: unexpected operator
configure: creating ./config.status

config.status: creating Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/acorn/Makefile
config.status: creating contrib/addtiffo/Makefile
config.status: creating contrib/dbs/Makefile
config.status: creating contrib/dbs/xtiff/Makefile
config.status: creating contrib/iptcutil/Makefile
config.status: creating contrib/mac-cw/Makefile
config.status: creating contrib/mac-mpw/Makefile
config.status: creating contrib/mfs/Makefile
config.status: creating contrib/ojpeg/Makefile
config.status: creating contrib/pds/Makefile
config.status: creating contrib/ras/Makefile
config.status: creating contrib/stream/Makefile
config.status: creating contrib/tags/Makefile
config.status: creating contrib/win_dib/Makefile
config.status: creating html/Makefile
config.status: creating html/images/Makefile
config.status: creating html/man/Makefile
config.status: creating libtiff/Makefile
config.status: creating man/Makefile
config.status: creating port/Makefile
config.status: creating test/Makefile
config.status: creating tools/Makefile
config.status: creating libtiff/tif_config.h
config.status: libtiff/tif_config.h is unchanged
config.status: creating libtiff/tiffconf.h
config.status: libtiff/tiffconf.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Libtiff is now configured for i386-unknown-freebsd5.4

  Installation directory:             /usr/local
  Documentation directory:            ${prefix}/share/doc/tiff-3.8.0
  C compiler:                         gcc -g -O2 -Wall -W
  C++ compiler:                       g++ -g -O2
  Enable runtime linker paths:        no
  Support Microsoft Document Imaging: yes

 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:                       no
  Old JPEG support:                   no

  C++ support:                        yes

  OpenGL support: no

--

Karyn Williams
Network Services Manager
California Institute of the Arts
karyn@calarts.edu
http://www.calarts.edu/network