php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16962 Compile failure with --ldap
Submitted: 2002-05-02 08:18 UTC Modified: 2002-06-12 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: acroft at cyber-wizard dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.2.0 OS: Solaris >= 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: acroft at cyber-wizard dot com
New email:
PHP Version: OS:

 

 [2002-05-02 08:18 UTC] acroft at cyber-wizard dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-02 08:27 UTC] derick@php.net
What does config.log tells you about this?

Derick
 [2002-05-02 08:47 UTC] acroft at cyber-wizard dot com
(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 13:41 UTC] acroft at cyber-wizard dot com
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-11 12:06 UTC] derick@php.net
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-27 19:47 UTC] justin at tanner dot net
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.
 [2002-06-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC