2008.04.10 15:56 "[Tiff] PREFIX with a comma?", by Dean

2008.04.10 23:38 "Re: [Tiff] Linking against libz, libjpeg", by Dean

Bob Friesenhahn wrote on 04/10/08 16:43:

Hello Tiff folks, remember me? ;-)

I am building libtiff for sparc-sun-solaris2.10 and can't get it to link

against the non-system libz and libjpeg.

Note that I tell it to look for zlib and jpeg in /usr/dist/share/..., but the

compiled binaries link against /usr/lib:

Is there something I am missing?

I never use libtiff configure's "helper" arguments so I can't say if they work. However, it is important that the libraries you install are shared libraries because the linker will turn its nose up at a static library and use a shared library instead even if the static library is in the linker search path first.

Luckily, I built that libz and know that I included --shared.

When in doubt about what is actually being tested, look in config.log and see what the compiler was trying to do.

Thanks for the pointer. These seem to be the relevant lines from config.log for tiff. Looks like everything passes.

configure:13020: checking for inflateEnd in -lz
configure:13050: /usr/dist/share/sunstudio_sparc/SUNWspro/bin/cc -o conftest
-g  -L/usr/dist/share/zlib,v1.2.3/5.10-lib.sun4  conftest.c -lz  -lm -lc  >&5
configure:13056: $? = 0
configure:13059: test -z                         || test ! -s conftest.err
configure:13062: $? = 0
configure:13065: test -s conftest
configure:13068: $? = 0
configure:13081: result: yes

configure:13108: checking zlib.h usability
configure:13120: /usr/dist/share/sunstudio_sparc/SUNWspro/bin/cc -c -g
-I/usr/dist/share/zlib,v1.2.3/5.10-include.sun4  conftest.c >&5
configure:13126: $? = 0
configure:13129: test -z                         || test ! -s conftest.err
configure:13132: $? = 0
configure:13135: test -s conftest.o
configure:13138: $? = 0
configure:13148: result: yes

configure:13152: checking zlib.h presence
configure:13162: /usr/dist/share/sunstudio_sparc/SUNWspro/bin/cc -E
-I/usr/dist/share/zlib,v1.2.3/5.10-include.sun4  conftest.c
configure:13168: $? = 0
configure:13188: result: yes
configure:13223: checking for zlib.h
configure:13230: result: yes

I'm a little stuck here.

--Dean
--
Unscrambler of eggs
[1709.5k, 224.8deg] Apparent Rennerian
-------------------------------------------------------------------------------
i am become def, the mixer of words

I must obey the inscrutable exhortations of my soul