On Sat, Jul 11, 1998 at 11:26:59AM -0500, Paul Keusemann wrote:
I can't get TIFF support configured correctly when trying to
build with
the SPARCWorks compiler. Works fine if I build with gcc. The problem is
solaris includes a libtiff in /usr/openwin/lib which does not have
TIFFOpenClient in it. I've got the 3.4 version of libtiff in /usr/local/lib
but I can't get configure to find it. I've changed my LD_LIBRARY_PATH
variable to check /usr/local/lib before /usr/openwin/lib, /usr/local/lib
is in --site-libraries and --site-runtime-libraries and I've tried adding
"-R /usr/local/lib -L /usr/local/lib" to --ldflags.
Any ideas?
Got it. There were actually two problems:
1) I built the tiff library with gcc which results in a library that
requires libgcc.a to resolve a reference to __eprintf.
2) The runtime linker searches libraries in the path specified by
LD_LIBRARY_PATH before those specified by the -R option at linktime.
When I did manage to get things linked correctly they wouldn't run from
my normal shell which had LD_LIBRARY_PATH set with /usr/openwin/lib
before /usr/local/lib.
--
Paul Keusemann pkeusem(a)visi.com
4266 Joppa Court (612) 894-7805
Savage, MN 55378