PHP 5.2.4 --with-imap Probleme

sundriver

Registered User
Hallo@all,

ich versuche grad PHP5.2.4 mit der Option --with-imap zu compilieren, leider nicht ohne Probleme.

System. SuSE 10.1 , Apache 2.2.0 , Confixx3.3.1 , suphp 0.6.2

mein ./configure für das cgi sieht so aus:
Code:
'./configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc/php5/apache2/php-cgi' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-sigchild' '--disable-ctype' '--enable-session' '--with-mysql' '--with-pear' '--with-openssl' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-exif' '--with-gettext' '--enable-curl' '--with-curl' '--enable-ftp' '--with-bz2' '--with-dom=/usr/include/libxml2' '--enable-filepro' '--with-gmp' '--with-iconv' '--with-imap' '--with-ldap=yes' '--enable-mbstring' '--with-mcal=/usr' '--with-mcrypt' '--enable-shmop' '--enable-xslt' '--enable-wddx' '--enable-yp' '--with-zlib=yes' '--enable-track-vars' '--enable-sockets' '--enable-ftp' '--with-zlib' '--with-openssl' '--enable-force-cgi-redirect' '--enable-exif' '--with-gd' '--enable-memory-limit' '--disable-debug' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-iconv' '--enable-filepro' '--with-gettext' '--enable-mbstring' '--enable-shmop' '--enable-wddx' '--enable-xml' '--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql' '--enable-dbx' '--without-mm' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--with-ttf' '--with-tiff-dir=/usr' '--with-freetype-dir=yes' '--enable-t1lib' '--with-xpm' '--with-jpeg-dir=/usr' '--with-imap-ssl' '--enable-soap' '--enable-pdo'

./configure läuft fehlerfrei durch, make verursacht dann:
Code:
/programme/php-5.2.4/ext/imap/php_imap.c: In function 'zm_startup_imap':
/programme/php-5.2.4/ext/imap/php_imap.c:456: error: 'unixdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:456: error: (Each undeclared identifier is reported only once
/programme/php-5.2.4/ext/imap/php_imap.c:456: error: for each function it appears in.)
/programme/php-5.2.4/ext/imap/php_imap.c:457: error: 'mhdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:459: error: 'mmdfdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:460: error: 'newsdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:461: error: 'philedriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:463: error: 'imapdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:464: error: 'nntpdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:465: error: 'pop3driver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:466: error: 'mbxdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:467: error: 'tenexdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:468: error: 'mtxdriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:469: error: 'dummydriver' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:472: error: 'auth_log' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:473: error: 'auth_md5' undeclared (first use in this function)
/programme/php-5.2.4/ext/imap/php_imap.c:477: error: 'auth_pla' undeclared (first use in this function)
make: *** [ext/imap/php_imap.lo] Fehler 1

Ich hatte zunächst Probleme mit ./configure mit utf8_mime2text() has new signature, but U8T_CANONICAL is missing, ich habe dann imap-2006k.DEV.SNAP-0709111641 mit
Code:
make lsu EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib
übersetzt und die ensprechenden *.c und *.h Files nach /usr/include bzw nach /usr/include/lib geschoben. Danach war der Fehler mit dem utf8_mime2text() has new signature, but U8T_CANONICAL is missing weg. Problem nun jedoch beim "make" wie oben beschrieben. Ich brauche diese php-imap Bibliothek für Confixx3.3.1 pro für Webmail.

Wenn ich lediglich die Option --with-imap einstelle bekomme ich beim ./configure folgendes:
Code:
checking if iconv is glibc's... yes
checking if iconv supports errno... yes
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... yes
checking for IMAP Kerberos support... no
checking for IMAP SSL support... no
checking for utf8_mime2text signature... (cached) new
checking for U8T_CANONICAL... (cached) yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.
echo574:/programme/php-5.2.4 #

Das Log dazu:
Code:
figure:46292: checking if iconv is glibc's
configure:46301: gcc -o conftest -I/usr/include -g -O2  -L/usr/lib  conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:46538: checking if iconv supports errno
configure:46573: gcc -o conftest -I/usr/include -g -O2  -L/usr/lib  conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:46605: checking if your cpp allows macro usage in include lines
configure:46617: gcc -c -I/usr/include -g -O2  conftest.c 1>&5
configure:46962: checking for IMAP support
configure:47009: checking for IMAP Kerberos support
configure:47035: checking for IMAP SSL support
configure:47451: checking for utf8_mime2text signature
configure:47498: checking for U8T_CANONICAL
configure:47663: checking for pam_start in -lpam
configure:47837: checking for crypt in -lcrypt
configure:49204: gcc -o conftest -I/usr/include -g -O2  -L/usr/lib  conftest.c -lc-client   -lcrypt -lpam -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/tmp/cc899kXR.o: In function `main':
/programme/php-5.2.4/configure:49198: undefined reference to `auth_gssapi_valid'
collect2: ld returned 1 exit status
configure: failed program was:
#line 49177 "configure"
#include "confdefs.h"

    
    void mm_log(void){}
    void mm_dlog(void){}
    void mm_flags(void){}
    void mm_fatal(void){}
    void mm_critical(void){}
    void mm_nocritical(void){}
    void mm_notify(void){}
    void mm_login(void){}
    void mm_diskerror(void){}
    void mm_status(void){}
    void mm_lsub(void){}
    void mm_list(void){}
    void mm_exists(void){}
    void mm_searched(void){}
    void mm_expunged(void){}
  
    char auth_gssapi_valid();
    int main() {
      auth_gssapi_valid();
      return 0;
    }
  
configure:49231: checking whether build with IMAP works
configure:49269: gcc -o conftest -I/usr/include -g -O2  -L/usr/lib  conftest.c -lc-client   -lcrypt -lpam -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/programme/imap-2006k.DEV.SNAP-0709111641/c-client/osdep.c:335: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/libc-client.a(osdep.o): In function `ssl_open_verify':
osdep.c:(.text+0x10d4): undefined reference to `X509_STORE_CTX_get_error'
osdep.c:(.text+0x10dc): undefined reference to `X509_verify_cert_error_string'
osdep.c:(.text+0x10f0): undefined reference to `X509_STORE_CTX_get_current_cert'
osdep.c:(.text+0x10f8): undefined reference to `X509_get_subject_name'
osdep.c:(.text+0x110c): undefined reference to `X509_NAME_oneline'
/usr/lib/libc-client.a(osdep.o): In function `ssl_server_input_wait':
osdep.c:(.text+0x277b): undefined reference to `SSL_get_fd'
osdep.c:(.text+0x2797): undefined reference to `SSL_pending'
osdep.c:(.text+0x27b5): undefined reference to `SSL_read'
/usr/lib/libc-client.a(osdep.o): In function `ssl_abort':
osdep.c:(.text+0x2fb3): undefined reference to `SSL_shutdown'
osdep.c:(.text+0x2fbe): undefined reference to `SSL_free'
osdep.c:(.text+0x2fd4): undefined reference to `SSL_CTX_free'
/usr/lib/libc-client.a(osdep.o): In function `ssl_sout':
osdep.c:(.text+0x30b9): undefined reference to `SSL_write'
osdep.c:(.text+0x3146): undefined reference to `SSL_get_error'
/usr/lib/libc-client.a(osdep.o): In function `ssl_getdata':
osdep.c:(.text+0x3476): undefined reference to `SSL_get_fd'
osdep.c:(.text+0x34ed): undefined reference to `SSL_pending'
osdep.c:(.text+0x352d): undefined reference to `SSL_read'
osdep.c:(.text+0x354b): undefined reference to `SSL_get_error'
osdep.c:(.text+0x377f): undefined reference to `SSL_get_error'
/usr/lib/libc-client.a(osdep.o): In function `ssl_start':
osdep.c:(.text+0x478f): undefined reference to `TLSv1_client_method'
osdep.c:(.text+0x479c): undefined reference to `SSL_CTX_new'
osdep.c:(.text+0x47c7): undefined reference to `SSL_CTX_ctrl'
osdep.c:(.text+0x47f7): undefined reference to `SSL_CTX_set_verify'
osdep.c:(.text+0x4802): undefined reference to `SSL_CTX_set_default_verify_paths'
osdep.c:(.text+0x4839): undefined reference to `SSL_CTX_load_verify_locations'
osdep.c:(.text+0x486f): undefined reference to `SSL_new'
osdep.c:(.text+0x488f): undefined reference to `BIO_new_socket'
osdep.c:(.text+0x48a2): undefined reference to `SSL_set_bio'
osdep.c:(.text+0x48ad): undefined reference to `SSL_set_connect_state'
osdep.c:(.text+0x48b8): undefined reference to `SSL_state'
osdep.c:(.text+0x48dc): undefined reference to `SSL_write'
osdep.c:(.text+0x48fd): undefined reference to `SSL_get_peer_certificate'
osdep.c:(.text+0x49b3): undefined reference to `X509_get_ext_d2i'
osdep.c:(.text+0x49c1): undefined reference to `sk_num'
osdep.c:(.text+0x49ea): undefined reference to `sk_value'
osdep.c:(.text+0x4ae1): undefined reference to `SSLv23_client_method'
osdep.c:(.text+0x4b07): undefined reference to `SSL_CTX_set_verify'
osdep.c:(.text+0x4bc6): undefined reference to `SSL_ctrl'
osdep.c:(.text+0x4bd8): undefined reference to `BIO_new_mem_buf'
osdep.c:(.text+0x4bfe): undefined reference to `PEM_read_bio_X509'
osdep.c:(.text+0x4c17): undefined reference to `SSL_CTX_use_certificate'
osdep.c:(.text+0x4c21): undefined reference to `X509_free'
osdep.c:(.text+0x4c2f): undefined reference to `BIO_free'
osdep.c:(.text+0x4d50): undefined reference to `BIO_new_mem_buf'
osdep.c:(.text+0x4d76): undefined reference to `PEM_read_bio_PrivateKey'
osdep.c:(.text+0x4d8f): undefined reference to `SSL_CTX_use_PrivateKey'
osdep.c:(.text+0x4d9d): undefined reference to `EVP_PKEY_free'
osdep.c:(.text+0x4dab): undefined reference to `BIO_free'
osdep.c:(.text+0x4ddd): undefined reference to `BIO_free'
/usr/lib/libc-client.a(osdep.o): In function `ssl_genkey':
osdep.c:(.text+0x57e7): undefined reference to `RSA_generate_key'
osdep.c:(.text+0x581f): undefined reference to `ERR_error_string'
osdep.c:(.text+0x583c): undefined reference to `ERR_get_error'
/usr/lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
osdep.c:(.text+0x5b45): undefined reference to `SSL_library_init'
osdep.c:(.text+0x5cb9): undefined reference to `RAND_seed'
/usr/lib/libc-client.a(osdep.o): In function `ssl_server_init':
osdep.c:(.text+0x5d11): undefined reference to `ERR_load_crypto_strings'
osdep.c:(.text+0x5d16): undefined reference to `SSL_load_error_strings'
osdep.c:(.text+0x5dbc): undefined reference to `TLSv1_server_method'
osdep.c:(.text+0x5dc4): undefined reference to `SSL_CTX_new'
osdep.c:(.text+0x5def): undefined reference to `SSL_CTX_ctrl'
osdep.c:(.text+0x5e02): undefined reference to `SSL_CTX_set_cipher_list'
osdep.c:(.text+0x5e3d): undefined reference to `ERR_error_string'
osdep.c:(.text+0x5e5a): undefined reference to `ERR_get_error'
osdep.c:(.text+0x5e87): undefined reference to `SSL_CTX_use_certificate_chain_file'
osdep.c:(.text+0x5f4b): undefined reference to `SSL_CTX_use_RSAPrivateKey_file'
osdep.c:(.text+0x5f76): undefined reference to `SSL_CTX_ctrl'
osdep.c:(.text+0x5f89): undefined reference to `SSL_new'
osdep.c:(.text+0x5fa4): undefined reference to `SSL_set_fd'
osdep.c:(.text+0x5faf): undefined reference to `SSL_accept'
osdep.c:(.text+0x609a): undefined reference to `SSLv23_server_method'
osdep.c:(.text+0x60b4): undefined reference to `SSL_CTX_set_tmp_rsa_callback'
collect2: ld returned 1 exit status
configure: failed program was:
#line 49242 "configure"
#include "confdefs.h"

    
    void mm_log(void){}
    void mm_dlog(void){}
    void mm_flags(void){}
    void mm_fatal(void){}
    void mm_critical(void){}
    void mm_nocritical(void){}
    void mm_notify(void){}
    void mm_login(void){}
    void mm_diskerror(void){}
    void mm_status(void){}
    void mm_lsub(void){}
    void mm_list(void){}
    void mm_exists(void){}
    void mm_searched(void){}
    void mm_expunged(void){}
  
    char mail_newbody();
    int main() {
      mail_newbody();
      return 0;
    }

Hat irgendjemand von den php Cracks hier eventuell eine Idee woran es liegt das ich nicht fehlerfrei durch komme??

Thx & cu
Sundriver
 
Hi society,

Thx, ich war etwas schneller grad eben :-) Hab kurzerhand über Yast die courier sachen gekillt und die imap2004 Geschichten komplett installiert, danach nur das imap wieder runter und courier wieder drauf. Es klappt nun mit dem compilieren von PHP :-)
Ich denke mal das ich noch irgendwelche Probleme mit den header Files hatte. Dein source RPM werd ich mir aber auf alle Fälle mal aufheben ;-)

Allerdings meckert das Webmail Interface von Confixx wieder rum das es grad keinen Connect zum Server bekommt. lt. nmap localhost sind die sachen aber aktiv...

Mal sehen, das bekomm ich noch irgendwie hin .

//EDIT: Probleme gelöst, Compilieren klappt und die Sache mit Confixx klappt auch, Confixx lauscht am imap Port, passt mir zwar nicht ganz weil ich nur imap-ssl möchte. Mal sehen, vieleicht gibt es einen Weg Confixx beizubringen das es nur am imap-ssl Port lauscht..


cu
Sundriver
 
Last edited by a moderator:
Back
Top