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/libphp4.so into server: /usr/lib/apache2/extramodules/libphp4.so: 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 1.4.3.12 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 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc-unknown-linux-gnu" COMPILER="gcc3" 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" DISTDIR="/usr/portage/distfiles" FEATURES="ccache cvs digest distcc sandbox strict userpriv usersandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.52/gentoo-portage" 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"
Seems to be a PHP without -fPIC-issue. See also the bug on php's site: http://bugs.php.net/bug.php?id=5094
trace where that malloc symbol came from (it's not native to PHP) and fix the -fPIC in that.
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/libphp4.so Any chance to find it out?
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?
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.
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.
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.
tested, works.