Re: using XML::Parser with apache/modperl ???

2001-07-03 Thread Robin Berjon

On Tuesday 03 July 2001 18:06, Christian Wattinger wrote:
> question: is it possibly (should certainly be) to use
> the perl XML::Parser module with apache/modperl??

It is, though you need to compile with --disable-rule=EXPAT. Mod_perl should 
do that for you though.

> when i run a CGI
> (it makes use of XML::Parser which uses EXPAT, a XMLparser C-library )
> under my apache/mod_perl server it generates an error saying:
>
> 
> dyld: /usr/sbin/httpd multiple definitions of symbol _XML_DefaultCurrent
>
> /usr/sbin/httpd definition of _XML_DefaultCurrent
> /Library/Perl/darwin/auto/XML/Parser/Expat/Expat.bundle definition of
> _XML_DefaultCurrent
> -
> apache vs. expat conflict as it seems

In my experience when that happens it just segfaults. But then maybe it 
doesn't work the same way under osx. Try disabling expat to see if it makes a 
difference. Also, have a look at the corresponding item there 
http://axkit.org/faq.xml (in any case, you should probably be using AxKit 
anyway ;-)

-- 
___
Robin Berjon <[EMAIL PROTECTED]> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
---
In which level of metalanguage are you now speaking?




Re: using XML::Parser with apache/modperl ???

2001-07-03 Thread James G Smith

Christian Wattinger <[EMAIL PROTECTED]> wrote:
>hi
>
>question: is it possibly (should certainly be) to use
>the perl XML::Parser module with apache/modperl??

I don't know about OS X, but my experience on OpenBSD requires 
Apache and XML::Parser be compiled with the same expat library.

Either have Apache link against the system installed lib (which 
Perl most likely links against for XML::Parser) or change the 
RULE_EXPAT rule in src/Configuration (or similarly named file) to 
RULE_EXPAT=no.  Details may vary a bit from system to system, but 
the goal is the same: Apache and XML::Parser using the same expat 
lib.
-- 
James Smith <[EMAIL PROTECTED]>, 979-862-3725
Texas A&M CIS Operating Systems Group, Unix



Re: using XML::Parser with apache/modperl ???

2001-07-03 Thread clayton cottingham


one thing you might need to do is compile apache without its expat build
in
as per Matt S.'s suggestion on axkit.org

http://axkit.org/faq.xml
look for
'I install AxKit and Apache segfaults when it starts'


Christian Wattinger wrote:
> 
> hi
> 
> question: is it possibly (should certainly be) to use
> the perl XML::Parser module with apache/modperl??
> -
> -
> i ran into some problems trying this, here is what
> happened:
> 
> i installed expat and  the  XML::Parser onto
> my macosx/darwin machine (perl 5.6.0, apache 1.3.19).
> 
> when i run a CGI
> (it makes use of XML::Parser which uses EXPAT, a XMLparser C-library )
> under my apache/mod_perl server it generates an error saying:
> 
> 
> dyld: /usr/sbin/httpd multiple definitions of symbol _XML_DefaultCurrent
> 
> /usr/sbin/httpd definition of _XML_DefaultCurrent
> /Library/Perl/darwin/auto/XML/Parser/Expat/Expat.bundle definition of
> _XML_DefaultCurrent
> -
> 
> apache vs. expat conflict as it seems
> 
> the CGI script runs fine in the  tcsh-shell
> 
> on first try i only removed the
> /Library/Perl/darwin/auto/XML/Parser/Expat/Expat.bundle
> but of course this makes it worse saying:
> 
> ---
> [Tue Jul  3 15:27:30 2001] [error] PerlRun: `Can't locate loadable object
> for module
> XML::Parser::Expat in @INC (@INC contains: /System/Library/Perl/darwin
> /System/Library/Perl
>  /Library/Perl/darwin /Library/Perl /Library/Perl
> /Network/Library/Perl/darwin /Network/Library/Perl
>  /Network/Library/Perl /usr/ /usr/lib/perl) at
> /Library/Perl/darwin/XML/Parser.pm line 15
>  Compilation failed in require at /Library/Perl/darwin/XML/Parser.pm line 15
> during global destruction.
> BEGIN failed--compilation aborted at /Library/Perl/darwin/XML/Parser.pm line
> 19 during global destruction.
> Compilation failed in require at /Library/Perl/Create_Sentence.pm line 4
> during global destruction.
> BEGIN failed--compilation aborted at /Library/Perl/Create_Sentence.pm line 4
> during global destruction.
> Compilation failed in require at /Library/Perl/Speak.pm line 5 during global
> destruction.
> [Tue Jul  3 15:27:30 2001] [error] Can't locate object method "uri" via
> package
> "Apache::PerlRun" at /System/Library/Perl/darwin/Apache/PerlRun.pm line 212
> during global destruction.
> --
> 
> obviously i cant remove
> /usr/sbin/httpd
> ...well its the apache server...
> 
> any ideas?
> 
> cheers
> christian



using XML::Parser with apache/modperl ???

2001-07-03 Thread Christian Wattinger

hi

question: is it possibly (should certainly be) to use
the perl XML::Parser module with apache/modperl??
-
-
i ran into some problems trying this, here is what
happened:

i installed expat and  the  XML::Parser onto
my macosx/darwin machine (perl 5.6.0, apache 1.3.19).

when i run a CGI  
(it makes use of XML::Parser which uses EXPAT, a XMLparser C-library )
under my apache/mod_perl server it generates an error saying:


dyld: /usr/sbin/httpd multiple definitions of symbol _XML_DefaultCurrent

/usr/sbin/httpd definition of _XML_DefaultCurrent
/Library/Perl/darwin/auto/XML/Parser/Expat/Expat.bundle definition of
_XML_DefaultCurrent
-

apache vs. expat conflict as it seems

the CGI script runs fine in the  tcsh-shell

on first try i only removed the
/Library/Perl/darwin/auto/XML/Parser/Expat/Expat.bundle
but of course this makes it worse saying:

---
[Tue Jul  3 15:27:30 2001] [error] PerlRun: `Can't locate loadable object
for module 
XML::Parser::Expat in @INC (@INC contains: /System/Library/Perl/darwin
/System/Library/Perl
 /Library/Perl/darwin /Library/Perl /Library/Perl
/Network/Library/Perl/darwin /Network/Library/Perl
 /Network/Library/Perl /usr/ /usr/lib/perl) at
/Library/Perl/darwin/XML/Parser.pm line 15
 Compilation failed in require at /Library/Perl/darwin/XML/Parser.pm line 15
during global destruction.
BEGIN failed--compilation aborted at /Library/Perl/darwin/XML/Parser.pm line
19 during global destruction.
Compilation failed in require at /Library/Perl/Create_Sentence.pm line 4
during global destruction.
BEGIN failed--compilation aborted at /Library/Perl/Create_Sentence.pm line 4
during global destruction.
Compilation failed in require at /Library/Perl/Speak.pm line 5 during global
destruction.
[Tue Jul  3 15:27:30 2001] [error] Can't locate object method "uri" via
package 
"Apache::PerlRun" at /System/Library/Perl/darwin/Apache/PerlRun.pm line 212
during global destruction.
--

obviously i cant remove
/usr/sbin/httpd 
...well its the apache server...

any ideas?

cheers
christian