ID: 16962 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Compile Failure Operating System: Solaris >= 2.6 PHP Version: 4.2.0 New Comment:
I'm having the exact same problem as the guy about, using php-4.2.1, if anybody knows of a fix or patch, could you please tell me, i'd like to be able to compile php thanks. Previous Comments: ------------------------------------------------------------------------ [2002-05-11 12:06:49] [EMAIL PROTECTED] These things have nothing to do with mcrypt, can you try only configuring with ldap? (And also try the latest RC from www.php.net/~derick). Deric ------------------------------------------------------------------------ [2002-05-02 13:41:35] [EMAIL PROTECTED] I added the information as a comment, instead of through here-please forgive my newbieness. It appears as the comment at "2 May 8:47am". Please let me know if you need additional information. ------------------------------------------------------------------------ [2002-05-02 08:47:35] [EMAIL PROTECTED] (I flattened the undefined symbol list somewhat-can send you the complete config.log if helpful.) configure:36252: checking for mcrypt support configure:36292: result: yes configure:36313: checking for mcrypt_module_open in -lmcrypt configure:36340: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208108 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT -L/usr/local/lib -lltdl -R/usr/ucblib -L/usr/ucblib -R/usr/local/ssl/lib -L/usr/local/ssl/lib -R/usr/local/lib -L/usr/local/lib conftest.c -lmcrypt -lldap -lgd -lz -lcrypt -lssl -lcrypto -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lcrypt >&5 Undefined first referenced symbol in file (the following as undefined symbols, all first referenced from /usr/local/lib/libldap.so : ber_dup, ber_get_int, ber_printf, ber_next_element, ber_sockbuf_io_readahead, ber_init, ber_write, ber_log_dump, ber_first_element, ber_sockbuf_alloc, ber_reset, ber_sockbuf_io_tcp, ber_memrealloc, ber_sockbuf_io_fd, ber_flush, ber_flatten, ber_pvt_socket_set_nonblock, ber_scanf, ber_peek_tag, ber_memfree, ber_memcalloc, ber_set_option, ber_memvfree, ber_sockbuf_io_debug, ber_get_next, ber_sockbuf_ctrl, ber_bvfree, ber_free, ber_bvecfree, ber_memalloc, ber_strdup, ber_sockbuf_free, ber_skip_tag, ber_pvt_log_print, ber_alloc_t, ber_sockbuf_add_io) ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure:36343: $? = 1 configure: failed program was: #line 36321 "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 (); int main () { mcrypt_module_open (); ; return 0; } configure:36360: result: no configure:36469: checking for init_mcrypt in -lmcrypt configure:36496: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208108 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT -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 conftest.c -lmcrypt -lldap -lgd -lz -lcrypt -lssl -lcrypto -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lcrypt >&5 Undefined first referenced symbol in file init_mcrypt /var/tmp/ccKHWj2o.o (the following as undefined symbols, all first referenced from /usr/local/lib/libldap.so : ber_dup, ber_get_int, ber_printf, ber_next_element, ber_sockbuf_io_readahead, ber_init, ber_write, ber_log_dump, ber_first_element, ber_sockbuf_alloc, ber_reset, ber_sockbuf_io_tcp, ber_memrealloc, ber_sockbuf_io_fd, ber_flush, ber_flatten, ber_pvt_socket_set_nonblock, ber_scanf, ber_peek_tag, ber_memfree, ber_memcalloc, ber_set_option, ber_memvfree, ber_sockbuf_io_debug, ber_get_next, ber_sockbuf_ctrl, ber_bvfree, ber_free, ber_bvecfree, ber_memalloc, ber_strdup, ber_sockbuf_free, ber_skip_tag, ber_pvt_log_print, ber_alloc_t, ber_sockbuf_add_io) ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure:36499: $? = 1 configure: failed program was: #line 36477 "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 (); int main () { init_mcrypt (); ; return 0; } configure:36516: result: no configure:36530: error: Sorry, I was not able to diagnose which libmcrypt version you have installed. ------------------------------------------------------------------------ [2002-05-02 08:27:07] [EMAIL PROTECTED] What does config.log tells you about this? Derick ------------------------------------------------------------------------ [2002-05-02 08:18:47] [EMAIL PROTECTED] Results of configure command: 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. Commands being executed (shortened to include only applicable): gzip -d libmcrypt-2.5.0.tar.gz ; tar xf libmcrypt-2.5.0.tar ; cd libmcrypt-2.5.0 ; ./configure ; make ; make check ; make install ; cd .. export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/libmcrypt:/usr/local/mysql/lib/mysql/lib:/usr/local/ssl/lib:$LD_LIBRARY_PATH gzip -d mcrypt-2.5.13.tar.gz ; tar xf mcrypt-2.5.13.tar ; cd mcrypt-2.5.13 ; CPPFLAGS=-I/usr/local/include ./configure ; make ; make check ; make install ; cd .. gzip -d php-4.2.0.tar.gz ; tar xf php-4.2.0.tar ; cd php-4.2.0 ; ./configure --with-apxs=/usr/local/apache/bin/apxs --with-gd --with-ldap --with-mcrypt --with-mhash --with-mm=/usr/local/lib --with-mysql --with-openssl=/usr/local/ssl --with-snmp=/usr/local/ucd-snmp --with-zlib-dir=/usr/local --enable-bcmath --enable-calendar --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-track-vars ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16962&edit=1