php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63010 libtool: link: cannot find the library `/lib/libgcrypt.la'
Submitted: 2012-09-04 12:55 UTC Modified: 2013-03-29 08:54 UTC
From: showerheadsuk at hotmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.4.6 OS: Ubuntu 12.04 LTS
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: showerheadsuk at hotmail dot com
New email:
PHP Version: OS:

 

 [2012-09-04 12:55 UTC] showerheadsuk at hotmail dot com
Description:
------------
When I try to make or make test php, compile fails with the error:
libtool: link: cannot find the library `/lib/libgcrypt.la' or unhandled argument `/lib/libgcrypt.la'
make: *** [sapi/cli/php] Error 1

I have libgcrypt installed in a non-standard location, but I am specifying the location with the LDFLAGS and CPPFLAGS in configure. It is still looking in /lib for the files though, I don't why?

Test script:
---------------
LDFLAGS=-L$HOME/apps/libgcrypt/lib CPPFLAGS=-I$HOME/apps/libgcrypt/include ./configure --prefix=$HOME/apps/$PHP \
--enable-mbstring \
--enable-zip \
--enable-fpm \
--enable-ftp \
--with-openssl=$HOME/apps/openssl \
--with-openssl-dir=$HOME/apps/openssl \
--with-jpeg-dir=$HOME/apps/libjpeg-turbo \
--with-gd \
--with-freetype-dir=/usr \
--with-gettext \
--with-xmlrpc \
--with-icu-dir=$HOME/apps/icu4c \
--enable-intl \
--with-pdo-mysql=mysqlnd \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-zlib-dir=/usr \
--with-kerberos=/usr \
--with-png-dir=/usr \
--with-ldap=$HOME/apps/openldap \
--with-curl=$HOME/apps/curl \
--with-mcrypt=$HOME/apps/libmcrypt \
--with-mhash=$HOME/apps/mhash \
--with-tidy=$HOME/apps/tidy \
--with-libxml-dir=$HOME/apps/libxml2 \
--with-iconv-dir=$HOME/apps/libiconv \
--with-xsl=$HOME/apps/libxslt

Expected result:
----------------
Successful compile

Actual result:
--------------
libtool: link: cannot find the library `/lib/libgcrypt.la' or unhandled argument `/lib/libgcrypt.la'
make: *** [sapi/cli/php] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-29 08:54 UTC] showerheadsuk at hotmail dot com
-Status: Open +Status: Closed
 [2013-03-29 08:54 UTC] showerheadsuk at hotmail dot com
Issue was that libxslt had been compiled pointing at a libgcrypt that no longer 
existed. Recompiling libxslt with the new location of libgcrypt solved the issue. 
(So not a PHP bug)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 04 01:01:29 2025 UTC