Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40146 - mod_php fails to load with apache2
Summary: mod_php fails to load with apache2
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: PPC Porters
Depends on:
Reported: 2004-02-01 19:39 UTC by Lars Weiler (RETIRED)
Modified: 2006-02-04 06:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Lars Weiler (RETIRED) gentoo-dev 2004-02-01 19:39:52 UTC
I installed mod_php-4.3.4-r3 and apache-2.0.48-r4.  Apache can't start with the option -D PHP4 set in it's config-file.  The error is:

Syntax error on line 5 of /usr/lib/apache2/conf/modules.d/70_mod_php.conf:
Cannot load /usr/lib/apache2/extramodules/ into server: /usr/lib/apache2/extramodules/ R_PPC_REL24 relocation 
at 0x0d77fcdc for symbol `malloc' out of range

I built PHP in the recent version with distcc enabled, but mod_php not.

For your information about my use-flags, here's emerge info (it's a mixed stable/testing machine):

Portage 2.0.50_pre20 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-benh1)
System uname: 2.6.1-benh1 ppc 0
Gentoo Base System version
distcc 2.12.1 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.8
CFLAGS="-O2 -pipe"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/lib/pbbuttonsd /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
FEATURES="ccache cvs digest distcc sandbox strict userpriv usersandbox"
USE="X acl apache2 apm berkdb crypt cups dga dvd dvdr ethereal fbcon gd gdbm gif gnome gpm gtk2 imagemagick imap imlib imlib2 ipv6 jabber javascript jpeg lcd libwww maildir mozcalendar mozinterfaceinfo moznocompose moznoirc moznomail mpeg ncurses nls oggvorbis opengl pam pdflib perl png ppc python quicktime rage128 readline samba sdl slang spell ssl tcpd truetype unicode usb video_cards_ati128 vim-with-x xml xml2 xosd xv zlib"
Comment 1 Lars Weiler (RETIRED) gentoo-dev 2004-02-05 16:25:16 UTC
Seems to be a PHP without -fPIC-issue.  See also the bug on php's site:
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-05 16:44:31 UTC
trace where that malloc symbol came from (it's not native to PHP) and fix the -fPIC in that.
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2004-02-05 17:25:42 UTC
I already reinstalled php4 and mod_php with -fPIC set.  No change.

The stupid thing is, that qpkg doesn't know any package that belongs to the broken library /usr/lib/apache2/extramodules/  Any chance to find it out?
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2004-02-05 17:38:23 UTC
Regarding to the timestamp of that file, it seems to be installed with mod_php.

/var/db/pkg/dev-php/mod_php-4.3.4-r3/CONTENTS tells me, that the file is from this package.  Now, why didn't changed -fPIC the issue?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-05 19:33:53 UTC
as I said, the malloc symbol is NOT from php, it's from somewhere else.
you need to find that other item and fix it. I suspect c-client / uw-imap is the culpert.
Comment 6 Lars Weiler (RETIRED) gentoo-dev 2004-02-05 21:09:46 UTC
Yep, it was c-client.  Thanks a lot! :-)

You should also add a append-flag to the ebuild like you already did for alpha, robbat2.  After that we can go for a stable bump of php, php_mod and apache2 on ppc.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-05 21:54:03 UTC
c-client fixed.
there will be a php/mod_php/php-cgi bump sometime this weekend probably, depending on some other stuff i'm doing with php.
Comment 8 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-03-28 20:39:14 UTC
tested, works.