Re: [HACKERS] Shared libs with version numbers. - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: [HACKERS] Shared libs with version numbers.
Date
Msg-id 199804300725.JAA07406@gauss.topsystem.de
Whole thread Raw
In response to Shared libs with version numbers.  (darrenk@insightdist.com (Darren King))
List pgsql-hackers
Darren King writes:
> Is there any purpose to the version numbers that some ports append
> to a shared lib name, besides keeping different versions around?

Yes. Making sure your application doesn't load an incompatible version of
the lib.

> Using libpq as an example, is there a difference to the system if...
>
> $(MAKE) libpq.so
> $(INSTALL) libpq.so libpq.so.1
> $(LN) libpq.so.1 libpq.so
>
> ...rather than...
>
> $(MAKE) libpq.so.1
> $(INSTALL) libpq.so.1 libpq.so.1
> $(LN) libpq.so.1 libpq.so

No. The file the system knows is libpq.so.1 either way. You might even call
it foo.bar in your Makefile as long as it is installed as libpq.so.1.

Michael

--
Dr. Michael Meskes, Project-Manager    | topsystem Systemhaus GmbH
meskes@topsystem.de                    | Europark A2, Adenauerstr. 20
meskes@debian.org                      | 52146 Wuerselen
Go SF49ers! Go Rhein Fire!             | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux!                  | Fax: (+49) 2405/4670-10

pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [HACKERS] ANSI error messages
Next
From: Zeugswetter Andreas SARZ
Date:
Subject: AW: [HACKERS] Revised proposal for libpq and FE/BE protocol chang es