| View previous topic :: View next topic |
| Author |
Message |
rburcham Apprentice

Joined: 20 Mar 2003 Posts: 247
|
Posted: Tue Jul 08, 2003 8:24 pm Post subject: mod_php with imap builds; doesn't load! |
|
|
I am running on a PPC, with up-to-date portage. I have apache 1.3 and uw-imap installed:
$ emerge -s apache
Latest version available: 1.3.27-r3
Latest version installed: 1.3.27-r3
$ emerge -s uw-imap
Latest version available: 2002d
Latest version installed: 2002d
$ grep USE /etc/make.conf
USE="X gnome gtk kde alsa arts dvd cups gphoto2 mpeg samba sox spell v4l xmms xvid xml imap"
When I emerge mod_php, everything builds correctly.
$ ls -l /etc/apache/extramodules/libphp4.so
-rwxr-xr-x 1 root root 3034448 Jul 8 14:30 libphp4.so
I execute the configure step and add the -D PHP4 to the apache start script. I then start apache with a tail -f on the error log and get:
Cannot load /etc/apache/extramodules/libphp4.so into server: /etc/apache/extramodules/libphp4.so: R_PPC_REL24 relocation at 0x0d9c5660 for symbol 'encoding' out of range
and apache does not start. I then decide to try without imap, so I edit USE flags accordingly and re-emerge mod_php.
$ ls -l /etc/apache/extramodules/libphp4.so
-rwxr-xr-x 1 root root 1884952 Jul 8 15:18 libphp4.so
Wow, much smaller. With this version, apache starts with no error, and starts PHP nicely. Of course there is no imap support, which is a bummer.
Questions: Why when I compile with imap does mod_php appear to statically link c-client? Is this right? And if it is statically linked, why does it throw an error when loading and complain that the 'encoding' symbol is out of range (presuming it's external, right)?
Hold on...
$ qpkg -l uw-imap
net-mail/uw-imap-2002d *
...
/usr/lib
/usr/lib/c-client.a
/usr/lib/libc-client.a -> /usr/lib/c-client.a
...
Ah okay, looks like uw-imap does not have any kind of c-client.so... it just has a c-client.a. So that explains the static linking. But I still don't get the error. It doesn't make sense that the imap-enabled libphp4.so would fail in this way when it is loaded by apache. |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 9566 Location: beyond the rim
|
Posted: Wed Jul 09, 2003 12:42 am Post subject: |
|
|
| Do you actually use uw-imapd or do you only need the c-client library? In the latter case you can use the c-client package (in net-libs IIRC). Won't fix your problems as it uses the same code and Makefile, but it avoids the (in most cases uneeded) server stuff. For your problems: you should file a bug about that at https://bugs.gentoo.org. |
|
| Back to top |
|
 |
rburcham Apprentice

Joined: 20 Mar 2003 Posts: 247
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|