Re: PHP 4.0 Bug #2471: configure --with-xml --with-apxs does not use apaches expat-lite
| From: | Thies C. Arntzen | Date: | Sat, 09 Oct 1999 12:43:19 +0000 |
| Subject: | Re: PHP 4.0 Bug #2471: configure --with-xml --with-apxs does not use apaches expat-lite | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11640@lists.php.net to get a copy of this message | ||
On Sat, 9 Oct 1999, Sascha Schumann wrote:
> On Sat, Oct 09, 1999 at 08:19:13AM -0000, thies@digicol.de wrote:
> > From: thies@digicol.de
> > Operating system: likely all
> > PHP version: 4.0 Latest CVS (09/10/1999)
> > PHP Bug Type: Compile Failure
> > Bug description: configure --with-xml --with-apxs does not use apaches expat-lite
> >
> > hi,
> > if you don't have libexpat installed somewhere ('cause you want to use
> > expat-lite/apache) you have a problem.
>
> Thies, that cannot be the latest CVS. I've committed the
> necessary changes weeks ago.
whoops - but not everything works
i'm using a shadow-tree, stock RH6.1 / apache-devel-1.3.9-4 /
apache-1.3.9-4.
configure is:
../php4/configure --with-config-file-path=/dot/dc4/conf
--enable-track-vars --disable-magic-quotes --with-xml --enable-sysvsem
--enable-sysvshm --with-apxs --enable-debug
>
> > checking for main in -lxmltok... no
> > configure: error: No expat library found for the xml module
>
> --with-apache and --with-apxs set XML_INCLUDE. xml/config.m4
> tests for this variable and does no include/library searches
> at all.
>
> > so - can we detect apaches expat-lite somehow?
>
> Yes, we do already.
>
> $ ../php4/configure --with-apache=../apache_1.3.9/ --with-wddx --with-xml
> [...]
> checking whether to include WDDX support... yes
> checking for XML support... yes (static)
> checking whether to include YP support... no
> [...]
that works fine!
but just using --with-apxs does not.
>
> > 2nd problem is that our xml sources (xml.c wddx.c) try to include
> > xml/xmltok.h but in expat-lite there's no subfolder called xml - so we just need to
> > #include "xmltok.h".
>
> $ grep xmltok.h xml/*
> xml/php3_xml.h:#include <xmltok.h>
>
> WDDX uses php3_xml.h
my mistake - sorry.
>
> If it fails for you, please send me the configure command and
> output. Be sure to use Apache 1.3.9.
works for --with-apache=path doesn't for --with-apxs
../php4/configure --with-wddx --with-xml --with-apxs
....
checking whether to enable System V shared memory support... no
checking whether to include WDDX support... yes
checking for XML support... yes (static)
checking for main in -lexpat... no
checking for main in -lxmltok... no
configure: error: No expat library found for the xml module
tc
>
> --
>
> Regards,
>
> Sascha Schumann
> Consultant
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany