Bug #63010 [NEW]: libtool: link: cannot find the library `/lib/libgcrypt.la'
From: showerheadsuk at hotmail dot com
Operating system: Ubuntu 12.04 LTS
PHP version: 5.4.6
Package: Compile Failure
Bug Type: Bug
Bug description:libtool: link: cannot find the library `/lib/libgcrypt.la'
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
--
Edit bug report at https://bugs.php.net/bug.php?id=63010&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63010&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63010&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63010&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63010&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=63010&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=63010&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63010&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63010&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63010&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63010&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63010&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63010&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63010&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63010&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63010&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63010&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63010&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63010&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63010&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63010&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63010&r=mysqlcfg
Thread (2 messages)
- showerheadsuk at hotmail dot com