I've merged mod_php 4.3.2-r3 and apache 1.3.27-r4 and configured both. the presence of mod_php is preventing apache from binding to :80 and from responding to requests. (see forum topic http://forums.gentoo.org/viewtopic.php?t=68136 for configuration details) /var/log/apache/error_log: Syntax error on line 57 of /etc/apache/conf/apache.conf: Cannot load /etc/apache/extramodules/libphp4.so into server: /usr/lib/libming.so: R_PPC_REL24 relocation at 0x0d1a3a38 for symbol `' out of range Reproducible: Always Steps to Reproduce: From http://forums.gentoo.org/viewtopic.php?t=68136: I've just finished merging Apache 1.3.27-r4 and mod_php 4.3.2-r3. Apache works fine except for parsing PHP files. I've added the directives... Loadmodule php4_module extramodules/libphp4.so Addmodule mod_php4.c ...to /etc/apache/conf/apache.conf and the contents of /etc/apache/conf/addon-modules/mod_php.conf... <IfModule mod_php4.c> AddType applications/x-httpd-php .php .php4 .php3 .phtml AddType applications/x-httpd-php-source .phps </IfModule> ...to /etc/apache/conf/commonapache.conf. Before I added the Loadmodule and Addmodule directives, Apache functioned correctly. Now that I've added these directives, Apache starts without any complaints but won't bind to any ports and won't respond to any requests. Actual Results: /var/log/apache/error_log: Syntax error on line 57 of /etc/apache/conf/apache.conf: Cannot load /etc/apache/extramodules/libphp4.so into server: /usr/lib/libming.so: R_PPC_REL24 relocation at 0x0d1a3a38 for symbol `' out of range
From http://forums.gentoo.org/viewtopic.php?p=430321 'Try to rebuild mod_php with USE="-flash" , iirc 'flash' is x86 only.' I have confirmed that removing "flash" from the list of USE values (in make.conf) eliminates the reported behavior. (I'm not sure that it addresses the root cause in a larger fashion but mod_php works now.)
Could you please put 'swf' and 'flash' back in your USE flags, and attach the output from these two commands (seperately please): emerge info emerge -eDvp mod_php The PHP eclass explictly specfies that the flash stuff should not be used on any arch except x86, so I'm wondering why it was still being brought in.
not sure if it will work then as i dont have/use/know php but the relocation error should go away when ming is compiled with -fPIC
I had the same error until I use USE="-qt" to emerge mod_php.
Hi, I'm having the problem, that apache doesn't parse php files, too; And the config of apache-1.3.28/mod_php_4.3.2-r4 is 100% correct. Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Duron(tm) Processor GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.berlios.de/pub/gentoo-deutsch http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mmx mpeg ncurses nls pdflib png spell truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm berkdb slang readline arts tetex aalib nas bonobo svga ggi tcltk java ruby mysql postgres X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis gtk qt kde motif opengl mozilla gphoto2 ldap snmp cdr scanner acl acpi acpi4linux artswrappersuid curl dga dnd doc dvd emacs faad fbcon firebird gd gtk2 hbci imap innodb jack jack-tmpfs jikes junit ladcca lcms libgda lirc maildir mbox mng moznocompose moznoirc moznomail mozsvg mozxmlterm oav openal plotutils pnp samba sasl slp sse tiff usb vim-with-x wmf xml xvid zeo -quicktime -guile -esd" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -pipe -foptimize-sibling-calls -fomit-frame-pointer -funroll-loops -fforce-addr -msse -mmmx -m3dnow " CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" FEATURES="sandbox ccache keeptemp keepwork"
beniot/ppc people: is this fixed now?
no response, closing old bugs.