Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24862 - Conflict between mod_php 4.3.2-r3 and ming 0.2a causing errors with apache 1.3.27-r4 on PPC
Summary: Conflict between mod_php 4.3.2-r3 and ming 0.2a causing errors with apache 1....
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: PPC Porters
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-20 03:35 UTC by Eric Pretorious
Modified: 2004-01-04 20:27 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Pretorious 2003-07-20 03:35:33 UTC
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
Comment 1 Eric Pretorious 2003-07-24 23:37:43 UTC
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.)
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-24 23:51:03 UTC
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.
Comment 3 Bartosch Pixa (RETIRED) gentoo-dev 2003-07-25 00:20:49 UTC
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
Comment 4 Benoit Chesneau 2003-07-26 08:55:37 UTC
I had the same error until I use USE="-qt" to emerge mod_php.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2003-08-03 11:48:15 UTC
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"
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-16 04:06:07 UTC
beniot/ppc people: is this fixed now?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-04 20:27:38 UTC
no response, closing old bugs.