perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Embperl (Apache2::Request ) is not working with embperl.
Date Thu, 29 Sep 2005 18:01:24 GMT
Hi,

> 
> [vimal@vimal temp]$ embpexec.pl emtest.html
> /usr/bin/perl: error while loading shared libraries: 
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/AP
> R/Request/Apache2/Apache2.so: 
> undefined symbol: modperl_xs_sv2request_rec
> 

You cannot use Apache function (like APR::Pool) outside of Apache, how
should this work?

> My Code is
> <html>
> <title>vimal Here</title>
> <body>
> hello
> [-
> use Apache2::Request;
> use APR::Pool;
> my $r = APR::Pool->new;
> my $q = Apache2::Request->new($r);

Apache2::Request -> new needs a Apache2::RequestRec object, not a pool, so
inside Embperl do

my $q = Apache2::Request->new($req_rec);

$req_rec is set up by Embperl for you.

Gerald



---------------------------------------------------------------------------
Besuchen Sie uns auf der Systems 2005 in M√ľnchen, Halle B2, Stand 704
---------------------------------------------------------------------------
Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
---------------------------------------------------------------------------
ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------

  


 
** Virus checked by BB-5000 Mailfilter ** 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message