2013.08.21 09:08 "[Tiff] compiling tiff on solaris for 64 bit", by KAs Coenen

2013.08.21 14:17 "Re: [Tiff] compiling tiff on solaris for 64 bit", by Bob Friesenhahn

I am trying to compile libtiff 4.0.3 on Solaris 5.10 as this is needed for pdflib. I need the 64 bit libraries because i need them for pdflib which is needed to compile the libpdf module for php (my php install is 64 bit and so is my apache). My specific systems info is:

# cat /etc/release

>                     Oracle Solaris 10 9/10 s10x_u9wos_14a X86 >      Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

>                             Assembled 11 August 2010

When running configure everything seems ok. This is the configure line:

# CC=/opt/csw/bin/gcc-4.8 CFLAGS=-m64 ABI=64 LD_LIBRARY_PATH=/opt/csw/lib/amd64/ ./configure --prefix=/usr/local/ --disable-static

This is the last few lines from make output:

LD_LIBRARY_PATH is a run-time environment variable. It is used to find shared libraries at run-time, but not for linking. You definitely need to set LDFLAGS to tell the linker where to find the libraries. The Solaris linker also uses LD_RUN_PATH as a way to specify the run-time search paths to encode into the binaries (see 'ld' manual page).

Try something more like

./configure CC=/opt/csw/bin/gcc-4.8 'CFLAGS=-m64' \
   'LDFLAGS=-m64 -L/opt/csw/lib/amd64' --prefix=/usr/local --disable-static

I don't know if it meets the desires of the CSW project, but you can also add -R/opt/csw/lib/amd64 to LDFLAGS (or set LD_RUN_PATH) so that the built binaries will search that directory by default.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/