#20926 [Opn]: libmcrypt error in configure

From: Date: Wed, 11 Dec 2002 16:52:45 +0000
Subject: #20926 [Opn]: libmcrypt error in configure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27370@lists.php.net to get a copy of this message
ID: 20926 User updated by: fn@panix.com Reported By: fn@panix.com Status: Open Bug Type: mcrypt related Operating System: NetBSD-1.5.2 PHP Version: 4.3.0RC2 New Comment: The configure option I used to include libmcrypt is: --with-mcrypt=/usr/local I am using libmcrypt-2.5.3. The config.log entry is as follows: configure:47349: checking for mcrypt support configure:47388: result: yes configure:47412: checking for mcrypt_module_open in -lmcrypt configure:47445: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib -lltdl -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib conftest.c -lmcrypt -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lm -lcrypt >&5 /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_dlclose': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:89: undefined reference to `lt_dlclose' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_dlsym': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:99: undefined reference to `lt_dlsym' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_close': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:112: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_dlopen': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:153: undefined referenc e to `lt_dlsetsearchpath' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:155: undefined referenc e to `lt_dlopenext' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_open': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:173: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:179: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:185: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:192: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:199: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:212: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:219: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_get_size': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:245: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_mode_get_size' : /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:264: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_set_key': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:296: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_enc_set_state' : /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:315: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_enc_get_state' : /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:333: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o):/devel/build/mcrypt/libmcrypt-2.5.3 /lib/mcrypt_modules.c:361: more undefined references to `lt_dlerror' follow /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_self_te st': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:630: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:637: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:656: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:649: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_algorit hm_version': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:672: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:678: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:697: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:690: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_mode_ve rsion': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:713: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:719: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:738: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:731: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_is_bloc k_algorithm': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:754: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:760: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:779: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:772: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_is_bloc k_algorithm_mode': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:795: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:801: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:820: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:813: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_is_bloc k_mode': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:836: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:842: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:861: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:854: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_get_alg o_block_size': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:877: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:883: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:902: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:895: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_get_alg o_key_size': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:918: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:924: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:943: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:936: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_get_alg o_supported_key_sizes': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:963: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:970: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:975: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:984: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:999: undefined referenc e to `lt_dlexit' collect2: ld returned 1 exit status configure:47448: $? = 1 configure: failed program was: #line 47419 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* 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 (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { mcrypt_module_open (); ; return 0; } configure:47465: result: no configure:47590: checking for init_mcrypt in -lmcrypt configure:47623: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib conftest.c -lmcrypt -lp ng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lm -lcrypt >&5 /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_dlclose': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:89: undefined reference to `lt_dlclose' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_dlsym': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:99: undefined reference to `lt_dlsym' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_close': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:112: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_dlopen': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:153: undefined referenc e to `lt_dlsetsearchpath' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:155: undefined referenc e to `lt_dlopenext' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_open': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:173: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:179: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:185: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:192: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:199: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:212: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:219: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_get_size': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:245: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_mode_get_size' : /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:264: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_set_key': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:296: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_enc_set_state' : /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:315: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_enc_get_state' : /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:333: undefined referenc e to `lt_dlerror' /usr/local/lib/libmcrypt.a(mcrypt_modules.o):/devel/build/mcrypt/libmcrypt-2.5.3 /lib/mcrypt_modules.c:361: more undefined references to `lt_dlerror' follow /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_self_te st': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:630: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:637: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:656: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:649: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_algorit hm_version': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:672: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:678: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:697: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:690: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_mode_ve rsion': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:713: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:719: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:738: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:731: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_is_bloc k_algorithm': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:754: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:760: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:779: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:772: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_is_bloc k_algorithm_mode': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:795: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:801: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:820: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:813: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_is_bloc k_mode': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:836: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:842: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:861: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:854: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_get_alg o_block_size': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:877: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:883: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:902: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:895: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_get_alg o_key_size': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:918: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:924: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:943: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:936: undefined referenc e to `lt_dlexit' /usr/local/lib/libmcrypt.a(mcrypt_modules.o): In function `mcrypt_module_get_alg o_supported_key_sizes': /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:963: undefined referenc e to `lt_dlinit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:970: undefined referenc e to `lt_dlerror' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:975: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:984: undefined referenc e to `lt_dlexit' /devel/build/mcrypt/libmcrypt-2.5.3/lib/mcrypt_modules.c:999: undefined referenc e to `lt_dlexit' collect2: ld returned 1 exit status configure:47626: $? = 1 configure: failed program was: #line 47597 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* 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 (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { init_mcrypt (); ; return 0; } configure:47643: result: no configure:47660: error: Sorry, I was not able to diagnose which libmcrypt versio n you have installed. Previous Comments: ------------------------------------------------------------------------ [2002-12-11 10:27:06] derick@php.net Which version of mcrypt do you use, and how did you configure mcrypt and PHP. I've no problems with libmcrypt 2.5.2 here. Please also show the relevant pieces of config.log in this bugreport. Derick ------------------------------------------------------------------------ [2002-12-10 17:03:52] fn@panix.com When attempting to build php with the most recent version of libmcrypt (available at http://mcrypt.hellug.gr/), configure produces the following error: 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. In config.log, the errors are related to undefined references to `lt_dlerror'. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20926&edit=1

« previous php.bugs (#27370) next »