php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6586 libmcrypt-2.4.4 support broken in Configure
Submitted: 2000-09-07 00:26 UTC Modified: 2000-09-09 08:23 UTC
From: gallen at nospamvalere dot net Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.2 OS: FreeBSD 3.4/4.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gallen at nospamvalere dot net
New email:
PHP Version: OS:

 

 [2000-09-07 00:26 UTC] gallen at nospamvalere dot net
configure in 4.0.2 unable to find mcrypt_module_open after install of libmcrypt-2.4.4

checking for Java support... no
checking whether to include LDAP support... no
checking for MCAL support... no
checking for mcrypt support... yes
checking for init_mcrypt in -lmcrypt... no
checking for mcrypt_module_open in -lmcrypt... no
configure: error: Sorry

Configure info listed below:

CPPFLAGS="-I/usr/local/include/gd/ -I/usr/local/BerkeleyDB.3.1/include/" \
        LDFLAGS=-L/usr/local/BerkeleyDB.3.1/lib/ \
         ./configure --with-apxs=/usr/local/www/bin/apxs \
        --disable-debug \
        --with-pgsql=/usr/home/pgsql \
        --with-xml \
        --with-ftp \
        --enable-track-vars \
        --enable-trans-sid \
        --with-db3=/usr/local/BerkeleyDB.3.1 \
        --with-mcrypt


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-07 11:41 UTC] gallen at nospamvalere dot net
/* 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 -I/usr/local/include/gd/ -I/usr/local/BerkeleyDB.3.1/include/ -R/usr/loc
al/lib -L/usr/local/lib conftest.c -lmcrypt  -ldb-3 -lm -lcrypt  -lltdl 1>&5
/usr/libexec/elf/ld: cannot open -ldb-3: 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; }
 [2000-09-08 01:28 UTC] gallen at nospamvalere dot net
The bug fix is to change line 21236 to:

  LDFLAGS="$LDFLAGS $ld_runpath_switch$MCRYPT_DIR/lib -L$MCRYPT_DIR/lib"




 [2000-09-09 08:23 UTC] derick@php.net
Fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 14:02:33 2024 UTC