2000.05.23 07:03 "SONAME=libtiff.so", by Thomas Anders

2000.05.23 07:03 "SONAME=libtiff.so", by Thomas Anders

Hello,

the latest libtiff 3.5.5 distribution produces a libtiff.so with a SONAME=libtiff.so. Is there any reason for not having proper version numbers in the SONAME?

Problem: Solaris ships with /usr/openwin/lib/libtiff.so (linked to /usr/openwin/lib/libtiff.so.3; SONAME=libtiff.so.3). Applications compiled against libtiff 3.5.5 depend on libtiff.so. Depending on the library search path users may pick up /usr/openwin/lib/libtiff.so on Solaris which is apparently bad.

I see two workarounds for the moment:

  1. Remove the link /usr/openwin/lib/libtiff.so on all Solaris systems. This shouldn't break existing applications (e.g. sdtimage) compiled against Solaris' libtiff because they depend on libtiff.so.3. Of course I'd rather avoid having to do this on dozens of machines.
  2. Set another SONAME, e.g. "libtiff.so.35", upon compilation (by "ld -h"). Which name can we all agree with?

Suggestions, comments appreciated.

Kind regards,
Thomas

P.S. Sorry if this question has already been asked here. The mailing list archive unfortunately isn't searchable.

Thomas Anders <anders@hmi.de>
Hahn-Meitner-Institut Berlin, Germany