ID:               20926
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Open
 Bug Type:         mcrypt related
 Operating System: NetBSD-1.5.2
 PHP Version:      4.3.0RC2
 New Comment:

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"


Previous Comments:
------------------------------------------------------------------------

[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

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

[2002-12-11 11:02:53] [EMAIL PROTECTED]

In order to reproduce it, I'd like to have:
1. The full configure line of libmcrypt
2. The full configure line for PHP
3. version numbers of autoconf and automake
4. version numbers of relevant libraries.

regards,
Derick

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

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

Reply via email to