~alpine/devel

2 2

ld cannot find library with .so.1 extension

Details
Message ID
<eff44cb6-1394-4e3b-adfe-60c55f3869a6@www.fastmail.com>
DKIM signature
missing
Download raw message
Hi all,

I am working on my first Alpine package, the Softether VPN.
Trying to build the package, ld complained "Cannot find -lz". Checking the ld man page, I see -lfile will search for (summarizing here) libfile.a and libfile.so . I checked all of the other -l parameters, they all end in .a or .so- only libz ends in .so.1 (which is a symlink to libz.so.1.2.11). I tried simply creating a libz.so -> libz.so.1.2.11 symlink, and my package happily compiled.

So, my question is-
Should libz have a libz.so -> libz.so.(version) symlink in addtion to the .so.1 symlink, or is there a parameter or something else I am unaware of that will make ld find the library with the .so* extension?

Thanks!
-- 
  Ben Weiss
  b.weiss@fastmail.fm
Details
Message ID
<CH49DH5Z9X4D.34X1VJEOWZ7VF@psykose>
In-Reply-To
<eff44cb6-1394-4e3b-adfe-60c55f3869a6@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
> So, my question is-
> Should libz have a libz.so -> libz.so.(version) symlink in addtion to
> the .so.1 symlink, or is there a parameter or something else I am
> unaware of that will make ld find the library with the .so* extension?
zlib-dev has this symlink- you need to add that package.
Details
Message ID
<9c37781f-5c9c-4f0c-ab1f-ba90b41cbf3f@www.fastmail.com>
In-Reply-To
<CH49DH5Z9X4D.34X1VJEOWZ7VF@psykose> (view parent)
DKIM signature
missing
Download raw message
On Wed, Jan 12, 2022, at 10:23 PM, alice wrote:
> zlib-dev has this symlink- you need to add that package.

Ach, I had thought I installed that. Indeed, I did not.
Yes, that solved the problem.

Thank you.
Reply to thread Export thread (mbox)