RE: Apache 2.4 and Openssl 3.3 compilation failed

"'Michael Wojcik' via openssl-users" <[email protected]>
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <SA1PR07MB976424642C0002FAA4BC464AC0B32@SA1PR07MB9764.namprd07.prod.outlook.com>
> From: [email protected] <[email protected]> On Behalf Of Marcello Lorenzi
> Sent: Monday, 14 April, 2025 03:27

> I try to compile Apache 2.4 with newer OpenSSL versions but I can't update
> it after the 3.2.1 and I receive this error message:
...
> /usr/bin/ld: cannot find -lssl
> /usr/bin/ld: cannot find -lcrypto

In my experience, the usual causes of a "cannot find" message from ld are:

1. The directory containing the libraries (libssl.a for static linking, libssl.so for dynamic; the latter is often a symlink to a versioned shared object file, libssl.so.1 or similar) is not on the link path, typically because a -L directive is missing or incorrect.

2. The file is in a directory on the link path, but is the wrong bitness. Verify which bitness of the target program you're trying to link (e.g. with "file something.o" where "something.o" is an object from the link command line), and the bitness of the library file in the directory that's on the link path. Adding the -t option to the ld command line is sometimes helpful.

3. There's an issue with file permissions or other restrictions (e.g. EDR software or other add-on security mechanisms).

--
Michael Wojcik
================================
Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy
================================

This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.

-- 
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/SA1PR07MB976424642C0002FAA4BC464AC0B32%40SA1PR07MB9764.namprd07.prod.outlook.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.