[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: .so version numbers for dlopen'd objects
- To: "Paul B. Henson" <henson@acm.org>
- Subject: RE: .so version numbers for dlopen'd objects
- From: Robert Heller <heller@deepsoft.com>
- Date: Tue, 22 May 2018 20:37:23 -0400 (EDT)
- Cc: Robert Heller <heller@deepsoft.com>, openldap-technical@openldap.org
- Dkim-filter: OpenDKIM Filter v2.11.0 sharky3.deepsoft.com DA7F426C1F29
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deepsoft.com; s=deepsoft.com; t=1527035844; bh=BT1EaAS35l4I/y5MHIcRl8Y579D1XLvaNVtbCNEJIbs=; h=From:Subject:In-Reply-To:References:To:Cc:Date:From; b=kzYigPPmxNhArBEMICAKnwPsxp+7Ll8cy1ARau4dQekT8Hlf5Iqf/CWIC13wkofzl M5fRuxZWltZSqGjFWntgYi8vzzFpKj/Pup3vAc5kfMjb9cNVVENXj3PmdR7iMOhXs+ oD0un8XE5QPphPXYjZ3XSB5pfsY7Pkxb7lwy8AqE=
- In-reply-to: <0ff101d3f22b$ec586d50$c50947f0$@acm.org>
- Organization: Deepwoods Software
- References: <0f9401d3f206$547d9c00$fd78d400$@acm.org> <20180522201616.8F8C526C1F29@sharky3.deepsoft.com> <0ff101d3f22b$ec586d50$c50947f0$@acm.org>
At Tue, 22 May 2018 17:20:57 -0700 "Paul B. Henson" <henson@acm.org> wrote:
>
> > From: Robert Heller
> > Sent: Tuesday, May 22, 2018 1:16 PM
> >
> > (specificly Tcl extensions). If using libtool, it *should* create
> symlinks
> > for the .so file without the version numbers like this:
>
> Yes, currently it both creates a .so.x.y file as well as a symbolic link
> from just .so, the assertion from OpenBSD is that for this use case there
> should only be the .so.
You can suppress the version numbers with the "-avoid-version" LDFLAGS option
(I need to do this with the MS-Windows cross-build).
>
> > In my case, the shared library is *both* a dlopen'ed tcl extension and can
> > also be linked to by a C++ program. This is under Linux, but I do the
> same
> > under MacOSX (which is an OpenBSD variant under-the-hood).
>
> OS X is actually based off of FreeBSD :). But all of the BSD's cross
> pollinate to some extent.
>
> In this case, it is only a dynamically loaded module, I do not believe it is
> suitable or there would be a use case to link to it directly from an
> application. I don't really care myself, but it is one of the stall points
> keeping my changes from getting incorporated so I need to sort it out.
>
> Thanks.
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services