Dec 19, 2012

openSUSE Forums: php 5.3.19编译imap扩展的问题

Blogtrottr
openSUSE Forums
openSUSE Forums
php 5.3.19编译imap扩展的问题
Dec 19th 2012, 08:18

大家好,小弟初来乍到,请多关照。
我有生产环境是两机open suse的12.1的版本。
1台跑php+nginx 1台跑redis+mysql
今日需要用php的来收取邮件,但是在配置安装php imap的扩展上出了一点问题,还想请大家指点一二:
我的安装过程如下:
zypper install imap-devel
cd /home/wangye/ServerSoft/php/php-5.3.19/ext/imap
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-libdir=lib64

报出:
configure: error: This c-client library is built with SSL support.


Add --with-imap-ssl to your configure line. Check config.log for details.
第二次,我按提示增加了imap-ssl选项
./configure --with-php-config=/usr/local/php/bin/php-config --with-libdir=lib64 --with-imap-ssl
报出:
checking whether build with IMAP works... noconfigure: error: build test failed. Please check the config.log for details.
在日志里看到,
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc-client.so: undefined reference to `pam_acct_mgmt'
之前编译的时候也出现了libc-client没有找到的问题,我用zypper search 没有找到libc-client,只找到了libc-client2007e_suse,
安装imap-devel的时候貌似已经关联安装了这个lib。

现在我不知道这样的问题应该如何解决,来此之前,问了google大神若干次,都是在centos或者其它的linux下遇到的问题,貌似都是安装了libc-client解决了问题。
貌似open suse还是比较特别的,各位大侠能给一个此问题的解决方案或者思路吗?多谢


由于没有办法贴附件,以下是我的config.log的内容(太长,不让帖,只找了其中一部分,请见谅):
configure:5099: result: no
configure:5239: checking for crypt in -lcrypt
configure:5264: cc -o conftest -g -O2 conftest.c -lcrypt >&5
configure:5264: $? = 0
configure:5273: result: yes
configure:5876: checking for pkg-config
configure:5894: found /usr/bin/pkg-config
configure:5907: result: /usr/bin/pkg-config
configure:6642: cc -o conftest -g -O2 conftest.c -lc-client -lcrypt -lssl -lcrypto -ldl -lz >&5
/tmp/cccJ1NIk.o: In function `main':
/home/wangye/ServerSoft/php/php-5.3.19/ext/imap/conftest.c:42: undefined reference to `auth_gssapi_valid'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc-client.so: undefined reference to `pam_acct_mgmt'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc-client.so: undefined reference to `pam_authenticate'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc-client.so: undefined reference to `pam_setcred'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc-client.so: undefined reference to `pam_end'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc-client.so: undefined reference to `pam_start'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc-client.so: undefined reference to `pam_set_item'
collect2: ld returned 1 exit status
configure:6642: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define COMPILE_DL_IMAP 1
| #define HAVE_IMAP 1
| #define HAVE_IMAP2000 1
| #define HAVE_IMAP2004 1
| #define HAVE_NEW_MIME2TEXT 1
| #define HAVE_LIBCRYPT 1
| #define HAVE_IMAP_SSL 1
| /* end confdefs.h. */
|
|
| #if defined(__GNUC__) && __GNUC__ >= 4
| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
| #else
| # define PHP_IMAP_EXPORT
|

No comments: