php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9559 /usr/bin/ld: cannot find -lcrypto
Submitted: 2001-03-05 06:59 UTC Modified: 2001-03-05 09:43 UTC
From: gzero at totalnet dot ro Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gzero at totalnet dot ro
New email:
PHP Version: OS:

 

 [2001-03-05 06:59 UTC] gzero at totalnet dot ro
I have the PHP 4.0.4pl1 source tarball. I used the following config command:

./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr --with-imap --with-imap-ssl

Configure runs fine, when I attempt a 'make' I get this:

make[1]: Entering directory `/usr/src/php-4.0.4pl1'
[stub.c compiles fine, the next compile line gives this:]
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.4pl1'
make: *** [all-recursive] Error 1

I happen to have a solution. PHP 4.0.4pl1 indeed would have no trouble finding libcrypto.a, if only it would be in /usr/lib. It sometimes gets installed in /usr/local/ssl/lib. Just copy libcrypto.a  to /usr/lib and run configure then make again.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-05 09:43 UTC] sniper@php.net
You can give the location of ssl libs (both should be in same place)
for --with-imap-ssl  like this:

--with-imap-ssl=/usr/local/ssl


--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC