[PHP-DEV] PHP 4.0 Bug #6476: configure cannot seem to find libmcrypt 2.4.4 From: carl <email protected>
Date: 08/31/00

From: carl <email protected>
Operating system: linux RH 5.0
PHP version: 4.0.2
PHP Bug Type: Compile Failure
Bug description: configure cannot seem to find libmcrypt 2.4.4

Using essentially the same scripts, php4.0.1pl2 builds nicely with libmcrypt 2.2.7. Let me know if there is anything else you need.

My script is here, see below for the config.log extract.

---------------
echo "build libmcrypt"
cd libmcrypt-2.4.4
    ./configure --prefix=/usr \
                --disable-posix-threads
    make
    make check
    make install
cd ..

echo "config apache since we may have just unpacked it"
cd apache_1.3.12
./configure --prefix=/usr \
            --sysconfdir=/etc/httpd \
            --runtimedir=/var/run/httpd \
            --logfiledir=/var/log/httpd \
            --enable-module=all \
            --enable-shared=max \
            --disable-shared=frontpage \
            --disable-shared=apache_ssl \
            --activate-module=src/modules/php4/libphp4.a
cd ..

echo " "
echo "build php"
cd php-4.0.2
    rm -f config.cache
    ./configure --with-apache=/usr/src/apache_1.3.12\
                --enable-debug=no \
                --enable-track-vars=yes \
                --enable-bcmath=yes \
                --enable-memory-limit=yes \
                --with-imap \
                --with-ldap=/usr/src/openldap-1.2.11\
                --with-mysql=/usr \
                --with-mcrypt=/usr
    make install
cd ..

--------------
config.log extract:
configure:21153: checking for mcrypt support
configure:21240: checking for init_mcrypt in -lmcrypt
configure:21259: gcc -o conftest -g -O2 -Wl,-rpath,/usr/lib -L/usr/lib conftest.c -lmcrypt -lldap -llber -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5
ld: cannot open -lldap: No such file or directory
configure: failed program was:
#line 21248 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char init_mcrypt();

int main() {
init_mcrypt()
; return 0; }
configure:21289: checking for mcrypt_module_open in -lmcrypt
configure:21308: gcc -o conftest -g -O2 -Wl,-rpath,/usr/lib -L/usr/lib conftest.c -lmcrypt -lldap -llber -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lltdl 1>&5
ld: cannot open -lldap: No such file or directory
configure: failed program was:
#line 21297 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char mcrypt_module_open();

int main() {
mcrypt_module_open()
; return 0; }

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>