Jump to content

PHP IMAP compile fails


Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/278872-php-imap-compile-fails/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.