본문 바로가기
PHP

imap 소스 설치

by ohrohi 2016. 10. 4.
반응형

 wget ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz

 tar zxvf imap-2007f.tar.gz

 cd imap-2007f/src/c-client

 cp *.h /usr/local/include/



cd  /usr/local/src/imap-2007f


make lnp SSLTYPE=unix

or

make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd EXTRACFLAGS=-fPIC IP=4


mkdir /usr/local/imap-2007f/

mkdir /usr/local/imap-2007f/include/

mkdir /usr/local/imap-2007f/lib/

cp c-client/*.h /usr/local/imap-2007f/include/

cp c-client/*.c /usr/local/imap-2007f/lib/

cp c-client/c-client.a /usr/local/imap-2007f/lib/libc-client.a



make가 안되는 경우



osdep.c:106: warning: 'struct pam_response' declared inside parameter list

osdep.c:106: warning: its scope is only this definition or declaration, which is probably not what you want

osdep.c:106: warning: 'struct pam_message' declared inside parameter list

osdep.c: In function 'checkpw_conv':

osdep.c:110: error: invalid application of 'sizeof' to incomplete type 'struct pam_response'

osdep.c:111: error: dereferencing pointer to incomplete type

osdep.c:112: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this function)

osdep.c:112: error: (Each undeclared identifier is reported only once

osdep.c:112: error: for each function it appears in.)

osdep.c:113: error: invalid use of undefined type 'struct pam_response'

osdep.c:113: error: dereferencing pointer to incomplete type

osdep.c:113: error: 'PAM_SUCCESS' undeclared (first use in this function)

osdep.c:114: error: invalid use of undefined type 'struct pam_response'

osdep.c:114: error: dereferencing pointer to incomplete type

osdep.c:116: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)

osdep.c:117: error: invalid use of undefined type 'struct pam_response'

osdep.c:117: error: dereferencing pointer to incomplete type

osdep.c:118: error: invalid use of undefined type 'struct pam_response'

osdep.c:118: error: dereferencing pointer to incomplete type

osdep.c:120: error: 'PAM_TEXT_INFO' undeclared (first use in this function)

osdep.c:121: error: 'PAM_ERROR_MSG' undeclared (first use in this function)

osdep.c:122: error: invalid use of undefined type 'struct pam_response'

osdep.c:122: error: dereferencing pointer to incomplete type

osdep.c:123: error: invalid use of undefined type 'struct pam_response'

osdep.c:123: error: dereferencing pointer to incomplete type

osdep.c:127: error: 'PAM_CONV_ERR' undeclared (first use in this function)

osdep.c: At top level:

osdep.c:138: error: expected ')' before '*' token

osdep.c: In function 'checkpw':

osdep.c:155: error: 'pam_handle_t' undeclared (first use in this function)

osdep.c:155: error: 'hdl' undeclared (first use in this function)

osdep.c:156: error: storage size of 'conv' isn't known

osdep.c:164: error: 'PAM_SUCCESS' undeclared (first use in this function)

osdep.c:165: error: 'PAM_RHOST' undeclared (first use in this function)

osdep.c:168: error: 'PAM_ESTABLISH_CRED' undeclared (first use in this function)

osdep.c:184: error: 'checkpw_cleanup' undeclared (first use in this function)

make[3]: *** [osdep.o] Error 1

make[3]: Leaving directory `/home/kit/imap-2007f/c-client'

make[2]: *** [lnp] Error 2

make[2]: Leaving directory `/home/kit/imap-2007f/c-client'

make[1]: *** [OSTYPE] Error 2

make[1]: Leaving directory `/home/kit/imap-2007f'

make: *** [ldb] Error 2


이런식의 메시지가 뜨면서 imap 이 안되는 경우


yum install pam-devel 설치후 다시 make



반응형

'PHP' 카테고리의 다른 글

php-fpm + nginx 소켓통신 설정방법  (0) 2019.04.16
php 7버전 설치 패키지  (0) 2019.04.12
php 5.2.17 make error시  (0) 2016.09.07
php 다운그레이드 후 libphp5.so 문제 해결방법  (0) 2016.08.30
php sockets 모듈 설치  (0) 2016.08.30