First of all, I apologize for my first post being a question. I've just been going at this for a few days now and I'm at my wit's end.
I'm trying to put imap support in my php5 so I can run Horde, but I'm stumped. Using the various how-to's in these forums and occasionally referencing the almighty google, I've gotten everything to this point working.
When I run 'make' after configuring php (see below for my configure.php), it eventually errors as follows:
Houston, we have a problem. In my googling, I found a German and a Japanese guy who had the same problems (apart from DA), but even with Google's translate feature, they were no help.
The closest I've gotten to figuring out what the problem is was searching these forums, I came across this post:
http://www.directadmin.com/forum/sh...page=20&highlight=a local symbol&pagenumber=2
He had the same compile error, but on libjpg (which seems to work fine for me). In that case, he just needed to add "CFLAGS=-fpic" to a make command somewhere, and I assume it's the same story for me. I'm just not sure where I would need to add it...
Anyway, I know that it's my own dumb fault for using a 64-bit OS, but when this is the only thing that's giving me problems, I hesitate to reinstall. Any help that would prevent me from having to start from scratch would be highly appreciated.
Server:
CentOS 4.2 x86_64
PHP 5.1.4
Everything else - as installed by DA or recommended on IMAP how-tos in these forums
configure.php:
I'm trying to put imap support in my php5 so I can run Horde, but I'm stumped. Using the various how-to's in these forums and occasionally referencing the almighty google, I've gotten everything to this point working.
When I run 'make' after configuring php (see below for my configure.php), it eventually errors as follows:
Code:
/usr/bin/ld: /usr/local/imap-2004g/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/imap-2004g/lib/libc-client.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
Houston, we have a problem. In my googling, I found a German and a Japanese guy who had the same problems (apart from DA), but even with Google's translate feature, they were no help.
The closest I've gotten to figuring out what the problem is was searching these forums, I came across this post:
http://www.directadmin.com/forum/sh...page=20&highlight=a local symbol&pagenumber=2
He had the same compile error, but on libjpg (which seems to work fine for me). In that case, he just needed to add "CFLAGS=-fpic" to a make command somewhere, and I assume it's the same story for me. I'm just not sure where I would need to add it...
Anyway, I know that it's my own dumb fault for using a 64-bit OS, but when this is the only thing that's giving me problems, I hesitate to reinstall. Any help that would prevent me from having to start from scratch would be highly appreciated.
Server:
CentOS 4.2 x86_64
PHP 5.1.4
Everything else - as installed by DA or recommended on IMAP how-tos in these forums
configure.php:
Code:
#!/bin/sh
./configure \
--with-apxs \
--with-imap=/usr/local/imap-2004g \
--with-imap-ssl \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-mcrypt \
--with-mhash \
--with-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit \
--with-gettext