when performing a make on php I get the following. ive recompiled IMAP with EXTRAFLAGS=-fPIC but still get the following error
/usr/bin/ld: /usr/local/imap-2007f/c-client/libc-client.a(osdep.o): relocation R_X86_64_32 against `server_input_wait' can not be used when making a shared object; recompile with -fPIC /usr/local/imap-2007f/c-client/libc-client.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [libphp5.la] Error 1
below is the code I used to configure PHP
./configure --with-apxs2=/usr/sbin/apxs --with-mysql --enable-mbstring --with-ldap --with-pdo-mysql --with-zlib --with-openssl --prefix=/usr/local/php5 --with-imap=/usr/local/imap-2007f --enable-pic --with-imap-ssl=/usr/local/imap-2007f --with-libdir=lib64
any help would be great. I've spent the past 5 hours searching the interwebs and used the following guide to help me
http://forum.directadmin.com/showthread.php?t=41879