Am Dienstag, 21. Mai 2002 17:52 schrieb Oden Eriksson:
> On Tuesdayen den 21 May 2002 17.17, Alexander Feigl wrote:
> > Am Dienstag, 21. Mai 2002 07:25 schrieb Alexander Feigl:
> > > Am Dienstag, 21. Mai 2002 01:33 schrieb Oden Eriksson:
> > > > Hmm...
> > > >
> > > > I'm using the "mod_php.spec" file as a start point, but getting an
> > > > error I don't understand...
> > > >
> > > > php_functions.c: In function `zif_apache_lookup_uri':
> > > > php_functions.c:93: structure has no member named `boundary'
> > > > php_functions.c:93: structure has no member named `boundary'
> > > > apxs2:Error: Command failed with rc=65536
> > >
> > > Seems like apache changed their headers and made it incompatible. It
> > > compiles with 2.0.36 but not with the newer version cooker seems to
> > > use. You might want to try the apache2filter sources from a php
> > > snapshot
> >
> > As I see now , php 4.2.1 is available. The apache module probably
> > compiles with it. Otherwise you just can delete the offending code line.
> > The patch puts a conditional compile around it and ignores it for newer
> > apache versions
>
> Thanks Alexander!
>
> I have allready packed all the php 4.2.1 stuff but forgot to announce it...
> Which patch are you referring to?
I was referring to the patch which fixed php for recent apache. But it is
included in 4.2.1.
>
> And, no... I didn't get the mod_php module to compile against apache2 just
> yet.
>
> I will announce my work on this in another mail to the list.
>
> BTW. I'm the (initial) maintainer of the apache2 rpm packages, so if you
> have some valuble feedback about this we all will jump for joy!
Here it comes:
First I changed php.spec. Manually linking libpthread is not needed any more
and breaks the build process because it is added by configure automatically.
The option --enable-experimential-zts seems to be needed for apache2 module.
I hope it won't make php unstable - it is activated automatically if you
compille the apache2 module with a configure option. If this option is
enabled, libtsrm is included in libphp_common and you won't have to install
it explicitly
--- /home/moondream/cvs/mdk/SPECS/php/php.spec 2002-05-20 23:52:05.000000000
+0200
+++ php.spec 2002-05-21 19:55:41.000000000 +0200
@@ -143,7 +140,7 @@
#For eventual compatibility with RedHat
#%{!?nokerberos:krb5libs="-L%{_prefix}/kerberos/lib -lgssapi_krb5 -lkrb5
-lk5crypto -lcom_err"}
-LIBS="$LIBS -lpthread $krb5libs"
+LIBS="$LIBS $krb5libs"
export LIBS
EXTENSION_DIR="/usr/lib/php/extensions"
@@ -188,6 +185,7 @@
--with-openssl=%{_prefix} \
--without-aspell \
--without-kerberos \
+ --enable-experimental-zts \
`for i in %{external_modules}; do echo --without-${i} --disable-${i}; done`
### This configuration makes a dependency on those libs:
/usr/src/php-devel/buildext libphp4 "-lapr -lphp_common" \
"sapi_apache2.c php_functions.c apache_config.c" "-I/usr/include/apache2"
should build the module. I didn't test it but tested it with a changed
include/lib path which was referring to my self-compiled apache2
Alexander Feigl