大家好!小弟刚接触linux不久,在网上看各位高手搭建php平台,心痒痒的,自己也想弄个玩玩,但是在编译php5.2.5时加上--with-imap参数会提示
`U8T_CANONICAL' undeclared (first use in this function) 之类的错误,按网上说的:到
ftp://ftp.cac.washington.edu/imap 下载 IMAP 的客户端程序。在编译完成之后将c-client/c-client.a 复制到 /usr/local/lib 之中,并 cp *.h 文件到 /usr/local/include 之下,
`U8T_CANONICAL' undeclared问题解决了,但是新问题又来了,php编译
成功,但是make的时候提示:
/usr/bin/ld: /usr/local/lib/libc-client.a(osdep.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libc-client.a: could not read symbols: Bad value
应该是说编译osdep.o要在CFLAGS后加-fPIC参数吧?但是imap是不用编译的啊,直接make lrh,imap-2007a1解压后也没有configure文件,在网上也找不到什么提示,哪现在怎么办呢?