Edit report at https://bugs.php.net/bug.php?id=63010&edit=1

 ID:                 63010
 User updated by:    showerheadsuk at hotmail dot com
 Reported by:        showerheadsuk at hotmail dot com
 Summary:            libtool: link: cannot find the library
                     `/lib/libgcrypt.la'
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Ubuntu 12.04 LTS
 PHP Version:        5.4.6
 Block user comment: N
 Private report:     N

 New Comment:

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)


Previous Comments:
------------------------------------------------------------------------
[2012-09-04 12:55:18] 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


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63010&edit=1

Reply via email to