From: [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version: 4.3.0
PHP Bug Type: *Configuration Issues
Bug description: since php-4.3.0 i can't configure using libmcrypt
hi,
i try to compile php-4.3.0 with libmcrypt 2.5.6.
i am using Sun Workshop 6 U1.
the libmcrypt was configured in 2 ways:
1st, i tried it with just ./configure. this did not work because no
algorithms were included.
2nd, i tried it with:
./configure \
--enable-static=yes \
--with-included-algos="3-way arcfour blowfish cast-128 cast-256 des enigma
gost loki97 rc2 rijndael rijndael-128 rijndael-192 rijndael-256 safer
safer128 safer64 saferplus serpent tripledes twofish wake xtea"
this gave me a good version with a libmcrypt.a and a .so.
i did a make install and everything went fine. even mcrypt could be
compiled and linked against the new version.
then i try to configure php with libmcrypt like this:
./configure \
--prefix=/usr/local \
--disable-cgi \
--disable-debug \
--with-config-file-path=/usr/local/etc \
--with-exec-dir \
--enable-sigchild \
--enable-magic-quotes \
--disable-rpath \
--disable-ipv6 \
--with-openssl \
--disable-all \
--with-zlib=/usr/local \
--with-crack=/usr/local \
--enable-ctype \
--with-curl=/usr/local \
--with-db3=/usr/local/BerkeleyDB.3.2 \
--enable-exif \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--with-gettext=/usr/local \
--with-iconv \
--with-imap=/usr/local \
--with-imap-ssl=/usr/local \
--with-ldap=shared,/usr/local \
--enable-mbstring \
--enable-mbregex \
--with-mcrypt \
--with-mhash=shared,/usr/local \
--enable-mime-magic \
--with-mysql=/usr/local \
--with-oci8=/data/oracle \
--disable-posix \
--disable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-xml \
--with-expat-dir=/usr/local \
--enable-shared \
--enable-static \
--disable-inline-optimization \
--enable-zend-multibyte
the configure script is happy until this:
checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... no
checking for init_mcrypt in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt
version you have installed.
the output from config.log is:
checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... no
checking for init_mcrypt in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt
version you have installed.
x:/data/a/c/php-4.3.0# tail -20 config.log
configure:41510: checking for init_mcrypt in -lmcrypt
configure:41529: cc -o conftest -xO5 -D_POSIX_PTHREAD_SEMANTICS
-L/usr/local/lib
-R/usr/ucblib -L/usr/ucblib -R/usr/local/ssl/lib
-L/usr/local/ssl/lib -R/usr/local/lib -L/usr/local/lib
-R/usr/local/BerkeleyDB.3.2/lib -L/usr/local/BerkeleyDB.3.2/lib conftest.c
-lmcrypt -lcrypt -lpam -lintl -lpng -lz -ldb -lcurl -lcrack -lz -lcrypt
-lssl -lcrypto -lresolv -lm -ldl -lnsl -lsocket -lcrypt -lcurl -lz -lssl
-lcrypto -ldl -lsocket -lnsl -lz 1>&5
"conftest.c", line 1: warning: 41518 is invalid in #line directive
Undefined first referenced
symbol in file
init_mcrypt conftest.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 41518 "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; }
now, i had some ideas and tried a few things, but the real success is
missing. i don't know, whats wrong here...
is it the mcrypt-version or is it php, searching for an exported function
that simply does not exist?
cu, md.
ps: this is very similar to bug #20926, but the other bug is not worked on
anymore as far as i can see, and a real solution was not provided within
that case...
--
Edit bug report at http://bugs.php.net/?id=21936&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21936&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21936&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21936&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21936&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21936&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21936&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21936&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21936&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21936&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21936&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21936&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21936&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21936&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21936&r=gnused