ID: 20926 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: mcrypt related Operating System: NetBSD-1.5.2 PHP Version: 4.3.0RC2 New Comment:
hmm, :-) Patching configure is of little use, it's generated from config.m4 files. It would be nice if you could try to fix ext/mcrypt/config.m4, but I doubt it's possible. After you modify config.m4's dont forget to rm configure && ./buildconf It works all fine here, so I cant really help you. Derick Previous Comments: ------------------------------------------------------------------------ [2002-12-11 13:04:24] [EMAIL PROTECTED] Actually, the problem is here: --- configure~ Wed Nov 27 15:02:21 2002 +++ configure Wed Dec 11 13:57:27 2002 @@ -47410,16 +47410,14 @@ save_old_LDFLAGS=$LDFLAGS - LDFLAGS=" - -L$MCRYPT_DIR/lib -lltdl - $LDFLAGS" + LDFLAGS="$LDFLAGS" echo "$as_me:$LINENO: checking for mcrypt_module_open in -lmcrypt" >&5 echo $ECHO_N "checking for mcrypt_module_open in -lmcrypt... $ECHO_C" >&6 if test "${ac_cv_lib_mcrypt_mcrypt_module_open+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lmcrypt $LIBS" +LIBS="-lmcrypt -lltdl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" ------------------------------------------------------------------------ [2002-12-11 12:59:36] [EMAIL PROTECTED] Right, not a PHP problem -> bogus. ------------------------------------------------------------------------ [2002-12-11 12:50:22] [EMAIL PROTECTED] The problem here is: --enable-shared=no in libmcrypt, but still there are lt_dl symbols in there. The lt_dl approach has never worked nicely - especially on BSD's and Derick is right, that the prefix does matter, even with --with-pic (use make DESTDIR=/pkg/libmcrypt-2.5.3 install for what I think you wanna do). The more recent versions, allow you to link in the encryptions in the shared lib, which is the approach I would recommend. ------------------------------------------------------------------------ [2002-12-11 11:52:51] [EMAIL PROTECTED] I believe the pkg prefix might be the problem here. Why don't you just use "/usr/local" here? ------------------------------------------------------------------------ [2002-12-11 11:14:58] [EMAIL PROTECTED] Please ignore the /pkg settings. These packages get installed into /usr/local. configure for libmcrypt: ./configure --prefix=/pkg/libmcrypt-2.5.3 --enable-shared=no --with-pic configure for php: ./configure --prefix=/pkg/php-4.3.0rc2 --enable-shared=no --with-mysql=/pkg/mysql-3.23.46 --enable-discard-path --with-config-file-path=/pkg/php-4.3.0rc2/libdata/php-4.3.0rc2 --with-xml --with-imap-ssl=/devel/build/pine/pine-4.50/imap/ --libdir=/pkg/php-4.3.0rc2/libdata/php-4.3.0rc2 --with-openssl=/usr/local --with-ndbm --with-gd --with-jpeg-dir=/usr/local --with-mcrypt=/usr/local --with-zlib-dir=/usr/local --with-db autoconf (GNU Autoconf) 2.53 automake (GNU automake) 1.4 libmcrypt-2.5.3 mysql-3.23.46 openssl-0.9.6g gd-2.0.4 jpeg-6b zlib-1.1.4 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20926 -- Edit this bug report at http://bugs.php.net/?id=20926&edit=1