php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34636 cannot find -lgcrypt
Submitted: 2005-09-26 01:26 UTC Modified: 2005-10-04 01:00 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: webmaster at sunshinearcade dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.0.5 OS: Fedora Core 3
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: webmaster at sunshinearcade dot com
New email:
PHP Version: OS:

 

 [2005-09-26 01:26 UTC] webmaster at sunshinearcade dot com
Description:
------------
make and make install produce error stating ld could not find lgcrypt

PHP 5.0.5
Fedora Core 3
Apache 2.0.54
MySQL 4.1.14

Reproduce code:
---------------
 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/mysql/bin --with-xsl=/usr/lib


Actual result:
--------------
Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lexslt -lcrypt -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt  -o sapi/cli/php
/usr/bin/ld: cannot find -lgcrypt
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-26 08:49 UTC] sniper@php.net
Something you're building against needs libgcrypt (no idea why, but this
seems to be a rather common FC problem). Try running this:

up2date libgcrypt-devel

(if this doesn't work, you may need to fetch an RPM of libgcrypt from
www.rpmfind.net).

And then compile again.
 [2005-10-04 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-10-12 17:03 UTC] phpbugrep-20050921 at pgregg dot com
This is due to an unresolved dependency in RHEL 4 and FC.

resolve with:
root/pts/3-/mnt/RedHat/RPMS-178#->rpm -i libgpg-error-devel-1.0-1.i386.rpm libgcrypt-devel-1.2.0-3.i386.rpm

Or whatever versions came with your RedHat CDs

PHP will then make cleanly.

Paul Gregg
 [2007-02-13 11:56 UTC] ben at qolc dot net
I hit this bug too, building 5.2.1 on RHEL 4. I think the configure script should test for that library if --with-xsl is specified; many distributions have separate packages for the runtime and compiletime parts of libraries.
 [2007-11-16 07:02 UTC] gigipthta at yahoo dot com
Got this error while compiling php5.0 on fedora core 4
Please help

-lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt  -o sapi/cli/php
/usr/bin/ld: cannot find -lgcrypt
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 [2007-11-26 15:42 UTC] rg dot viza at gmail dot com
If you disable the CLI when configuring the source code this error does not occur. Is there a hardcoding concerning libgcrypt in the cli configuration?

Thought I'd add this observation since it doesn't look like anyone tried this troubleshooting measure.
 [2008-01-09 14:34 UTC] mjs at beebo dot org
PHP 5.2.5 also fails to install on SunOS with the same error.  It will install if you configure --without-xsl (or install libgcrypt and libgpg-error).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 05:01:28 2025 UTC