PHP IMAP Problem

Bash, Shell, PHP, Python, Perl, CGI
virus inc.
Posts: 67
Joined: 2002-08-27 02:01

PHP IMAP Problem

Post by virus inc. »

Hi,

ich habe bei mir Courier IMAP am laufen und imap-lib sowie imap-devel installiert

trotzdem bekommen ich beim ./configure von PHP 4.3.4 immer folgenden Fehler:
checking for IMAP support... yes
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.
woran könnte das liegen ? habe bisher keine Lösung dafür gefunden.

Danke.

mfg Virus Inc.
squize
Userprojekt
Userprojekt
Posts: 729
Joined: 2003-05-19 16:46
Location: Karlsruhe

Re: PHP IMAP Problem

Post by squize »

Poste mal die Fehlerzeilen aus dem config.log. Wahrscheinlich fehlt da noch der IMAP c-client.

PHP mit IMAP

Gruss

Marc
virus inc.
Posts: 67
Joined: 2002-08-27 02:01

Re: PHP IMAP Problem

Post by virus inc. »

HI,

hm, die Seite hatte ich schon gesehen und die Dateien sind auch alle da und scheinen gefunden zu werden.
ein erneutes Kompilieren ist irgendwie nicht möglich, da kommen nur nen haufen fehler.

hier der Auszug aus dem Log:
configure:40552: checking whether IMAP works
configure:40585: gcc -o conftest -g -O2 -pthread -D_REENTRANT -Wl,-rpath,/usr/ssl/lib -L/usr/ssl/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lc-client -lssl -lcrypto -lcrypt -lgmp -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lndbm -lgdbm -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lz -lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../libc-client.so: undefined reference to `pam_end'
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../libc-client.so: undefined reference to `pam_authenticate'
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../libc-client.so: undefined reference to `pam_setcred'
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../libc-client.so: undefined reference to `pam_set_item'
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../libc-client.so: undefined reference to `pam_acct_mgmt'
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../libc-client.so: undefined reference to `pam_start'
collect2: ld returned 1 exit status
configure: failed program was:
#line 40560 "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;
}
ich hoffe das ist der richtige Teil.

Danke.

mfg Virus Inc.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim

Re: PHP IMAP Problem

Post by oxygen »

Bau am besten die c-client Libary neu.
virus inc.
Posts: 67
Joined: 2002-08-27 02:01

Re: PHP IMAP Problem

Post by virus inc. »

Hi,

das habe ich ja schon versucht, aber da gibts auch nur Fehlermeldungen ?
kann man eigentlich nur expliziet den c-client bauen lassen ?

hier die Ausgabe des c-clients:
osdep.c:66:31: security/pam_appl.h: No such file or directory
osdep.c:82: warning: `struct pam_response' declared inside parameter list
osdep.c:82: warning: its scope is only this definition or declaration, which is probably not what you want
osdep.c:82: warning: `struct pam_message' declared inside parameter list
osdep.c: In function `checkpw_conv':
osdep.c:86: error: invalid application of `sizeof' to an incomplete type
osdep.c:87: error: dereferencing pointer to incomplete type
osdep.c:88: error: `PAM_PROMPT_ECHO_ON' undeclared (first use in this function)
osdep.c:88: error: (Each undeclared identifier is reported only once
osdep.c:88: error: for each function it appears in.)
osdep.c:89: error: invalid use of undefined type `struct pam_response'
osdep.c:89: error: dereferencing pointer to incomplete type
osdep.c:89: error: `PAM_SUCCESS' undeclared (first use in this function)
osdep.c:90: error: invalid use of undefined type `struct pam_response'
osdep.c:90: error: dereferencing pointer to incomplete type
osdep.c:92: error: `PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)
osdep.c:93: error: invalid use of undefined type `struct pam_response'
osdep.c:93: error: dereferencing pointer to incomplete type
osdep.c:94: error: invalid use of undefined type `struct pam_response'
osdep.c:94: error: dereferencing pointer to incomplete type
osdep.c:96: error: `PAM_TEXT_INFO' undeclared (first use in this function)
osdep.c:97: error: `PAM_ERROR_MSG' undeclared (first use in this function)
osdep.c:98: error: invalid use of undefined type `struct pam_response'
osdep.c:98: error: dereferencing pointer to incomplete type
osdep.c:99: error: invalid use of undefined type `struct pam_response'
osdep.c:99: error: dereferencing pointer to incomplete type
osdep.c:103: error: `PAM_CONV_ERR' undeclared (first use in this function)
osdep.c: In function `checkpw':
osdep.c:117: error: `pam_handle_t' undeclared (first use in this function)
osdep.c:117: error: `hdl' undeclared (first use in this function)
osdep.c:118: error: storage size of `conv' isn't known
osdep.c:125: error: `PAM_SUCCESS' undeclared (first use in this function)
osdep.c:126: error: `PAM_RHOST' undeclared (first use in this function)
osdep.c:129: error: `PAM_ESTABLISH_CRED' undeclared (first use in this function)
osdep.c:131: error: `PAM_DELETE_CRED' undeclared (first use in this function)
osdep.c:132: error: `PAM_AUTH_ERR' undeclared (first use in this function)
er hat wohl wie der bis jetzt vorhandene irgendwelche Probleme mit PAM oder ?
aber wie löse ich die denn ?

mfg Virus Inc.
virus inc.
Posts: 67
Joined: 2002-08-27 02:01

Re: PHP IMAP Problem

Post by virus inc. »

Hi,

tja da habe ich ja eben selber die Lösung gefunden:

pam_devel war nicht installiert

jetzt geht es danke.

mfg Virus Inc.