Just to follow up. I took your advice on building building modperl. My actual
command was as follows:
perl Makefile.PL \
EVERYTHING=1 \
USE_APACI=1 \
APACHE_PREFIX=/lsurf/wohg \
APACHE_SRC=../$APACHE/src \
DO_HTTP=1 \
APACI_ARGS="--enable-rule=expat --enable-module=so --enable-shared=info \
--enable-shared=proxy --enable-shared=rewrite"
I first tried this with perl 5.005_3 with no problems. I then upgraded to perl
5.6.1, reinstalled the XML::Parser 2.30, and rebuild modperl/apache. The nasty
bug showed back up. At this point it still looks like I'm SOL using
XML::Parser with perl 5.6.1 under modper.
I did download and install XML::LibXML and started playing with it. I'm
actually using XML::Parser via XML::Simple to put short XML "messages" into
handy 'data structures'. Maybe I should make an XML::LibXML::Simple :)
Thanks for the help,
Matthew
Matt Sergeant wrote:
> > -----Original Message-----
> > From: Matthew H. Gerlach [mailto:[EMAIL PROTECTED]]
> >
> > Now that I had something reproducible, I continued. I rebuilt using
> > Apache 1.3.22 just like above, and everything continued to work. I
> > upgraded to XML::Parser-2.30, and things continued to work.
> > It was only
> > when I went from perl 5.005_3 to 5.6.1 did my module break. As I said
> > above I tried a statically linked apache. I also tried
> > building Apache
> > 1.3.22 as above with perl 5.6.1 and my code failed with both
> > XML::Parser-2.29 and XML::Parser-2.30. Whatever way I tried
> > using perl
> > 5.6.1 I had my nasty problem.
> >
> > When configuring Apache 1.3.22 I noticed it said it was using the
> > system's libexpat which was installed with RH. XML::Parser-2.29 uses
> > its own copy of expat, but XML::Parser-2.30 uses the system libexpat.
> > As I said with perl 5.005_3 I was able to use either version of
> > XML::Parser.
>
> >From what I can tell from the Apache 1.3.22 build, here's how to get it
> stable:
>
> 1. Install libexpat.
> 2. Install perl
> 3. Install XML::Parser 2.30
> 4. Install mod_perl and Apache, telling mod_perl to build Apache for you.
> ** Do not use APXS to build mod_perl **
>
> The recipe in the AxKit INSTALL file seems to work best for people doing XML
> stuff inside mod_perl:
>
> $ perl Makefile.PL \
> > EVERYTHING=1 \
> > USE_APACI=1 \
> > DYNAMIC=1 \
> > APACHE_PREFIX=/opt/apache \
> > APACHE_SRC=../apache_1.3.22/src \
> > DO_HTTPD=1 \
> > APACI_ARGS="--enable-module=so --enable-shared=info
> > --enable-shared=proxy --enable-shared=rewrite
> > --enable-shared=log_agent"
> $ make
> $ su
> $ make install
>
> However, that also builds Apache with --disable-rule=expat, so it might
> kinda defeat your purpose :-) If you *really* need the expat in Apache, I
> think you can add in there --enable-rule=expat, but I haven't tried it.
>
> If all that fails, switch to XML::LibXML or XML::SAX::PurePerl (actually,
> think about doing that anyway :-)
>
> Matt.
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or alternatively call
> Star Internet for details on the Virus Scanning Service.