You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jonathan Mangin <jo...@comcast.net> on 2007/01/23 16:43:07 UTC

Find source for Apache2::Request::args_status

Hi,
I'm a mod_perl newbie going slightly nuts.

MethodLookup doesn't know anything about args_status().

I see the references to XSLoader so I'm _guessing_ that it's
hiding in C code somewhere.  Maybe I'm wrong.

How/where can I find the source for args_status?

Thanks,
Jon


Re: Find source for Apache2::Request::args_status

Posted by Jonathan Mangin <jo...@comcast.net>.
> 
> The xs subs and c code should be in the Perl glue
> 
> that will be in something like
> 
> /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/Request/Request.so
> 
> libapreq is a confusing beast
> 
> (i) its a general Apache Request Library
> but
> (ii) its best known for the perl glue , which makes use of the API  
> it provides
> 
> so
> the libapreq module routines should be in libapreq.so.  you load  
> mod_libapreq2 into apache via httpd.conf just as you would anything  
> else ( mod_perl mod_rewrite mod_php mod_svn etc )
> the perl glue that  accesses it should all be in your Perl library  
> tree, and that is loaded in your startup.pl file or as you need
> 
> does that make sense ?
> 
> // Jonathan Vanasco
> 
Yes, it does.  (I actually forgot about mod_apreq2.)

Thanks,
Jon


Re: Find source for Apache2::Request::args_status

Posted by Jonathan Vanasco <jv...@2xlp.com>.
On Jan 24, 2007, at 2:35 PM, Jonathan Mangin wrote:

> Thanks Geoff,
>
> the gist is what I needed for now.  So I'm guessing (again)
> that the xsubs are living in libapreq.so*.  Is that right?
> Is it in import() (in APR::Request) where the loading
> occurs?
> These are my last questions on the subject.  Lots of
> reading to do.


The xs subs and c code should be in the Perl glue

that will be in something like

	/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/Request/Request.so

libapreq is a confusing beast

	(i) its a general Apache Request Library
	but
	(ii) its best known for the perl glue , which makes use of the API  
it provides

so
	the libapreq module routines should be in libapreq.so.  you load  
mod_libapreq2 into apache via httpd.conf just as you would anything  
else ( mod_perl mod_rewrite mod_php mod_svn etc )
	the perl glue that  accesses it should all be in your Perl library  
tree, and that is loaded in your startup.pl file or as you need

does that make sense ?

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



Re: Find source for Apache2::Request::args_status

Posted by Jonathan Mangin <jo...@comcast.net>.
> > 
> > Glancing at docs for ExtUtils::XSBuilder leads me to believe
> > there should be a Perl function named args_status (probably)
> > in APR::Request, but no. 
> 
> no, it wouldn't be if the function is defined in XS.
> 
> > Can someone point me to a user list
> > for libapreq2? 
> 
> you can try
> 
>   apreq-dev@httpd.apache.org
> 
> > (Or to a basic XS tutorial?)
> 
>   $ perldoc perlxs
> 
> but that's probably a bit heavy for just getting the gist of xs.  in a
> nutshell, perl subroutines are defined in Foo.xs using C calls and a set
> of special XS macros.  then a Foo.pm makes a call to DynaLoader which
> exposes the xs-written functionality as though they were defined in perl
> right there in the Foo.pm file.  magic :)
> 
> HTH
> 
> --Geoff

Thanks Geoff,

the gist is what I needed for now.  So I'm guessing (again)
that the xsubs are living in libapreq.so*.  Is that right?
Is it in import() (in APR::Request) where the loading
occurs?
These are my last questions on the subject.  Lots of
reading to do.

Thanks again,
Jon


Re: Find source for Apache2::Request::args_status

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> Wrong list?  That explains some things.apreq-dev@httpd.apache.org
> The 1st page of libapreq2 docs says:
> 
>      o Mailing Lists:
> 
>         user lists:
>                C/C++ API - modules@apache.org
>                 Perl API - modperl@perl.apache.org

lots of apreq folks hang out here as well, so no worries.

> 
> Glancing at docs for ExtUtils::XSBuilder leads me to believe
> there should be a Perl function named args_status (probably)
> in APR::Request, but no. 

no, it wouldn't be if the function is defined in XS.

> Can someone point me to a user list
> for libapreq2? 

you can try

  apreq-dev@httpd.apache.org

> (Or to a basic XS tutorial?)

  $ perldoc perlxs

but that's probably a bit heavy for just getting the gist of xs.  in a
nutshell, perl subroutines are defined in Foo.xs using C calls and a set
of special XS macros.  then a Foo.pm makes a call to DynaLoader which
exposes the xs-written functionality as though they were defined in perl
right there in the Foo.pm file.  magic :)

HTH

--Geoff

Re: Find source for Apache2::Request::args_status

Posted by Jonathan Mangin <jo...@comcast.net>.
----- Original Message ----- 
From: "Jonathan Vanasco" <jv...@2xlp.com>
To: "Geoffrey Young" <ge...@modperlcookbook.org>
Cc: "Jonathan Mangin" <jo...@comcast.net>; <mo...@perl.apache.org>
Sent: Tuesday, January 23, 2007 11:59 AM
Subject: Re: Find source for Apache2::Request::args_status


> 
> On Jan 23, 2007, at 11:40 AM, Geoffrey Young wrote:
> 
> > I've never heard of args_status in mod_perl, but google finds it in
> > libapreq, which is a separate entity.
> >
> > anyway, the source you seek is here
> >
> > http://svn.apache.org/viewvc/httpd/apreq/trunk/glue/perl/xsbuilder/ 
> > APR/Request/Request.xs
> 
> 
> Just to add to the above:
> 
> Apache2::RequestRec is part of modperl
> Apache2::Request , which is what the OP titled the thread, is part  
> of libapreq
> 
> So the OP was looking for the right module but on the wrong list.
> 
> // Jonathan Vanasco
> 
Wrong list?  That explains some things.
The 1st page of libapreq2 docs says:

     o Mailing Lists:

        user lists:
               C/C++ API - modules@apache.org
                Perl API - modperl@perl.apache.org

Glancing at docs for ExtUtils::XSBuilder leads me to believe
there should be a Perl function named args_status (probably)
in APR::Request, but no.  Can someone point me to a user list
for libapreq2?  (Or to a basic XS tutorial?)

Thanks,
Jon


Re: Find source for Apache2::Request::args_status

Posted by Jonathan Vanasco <jv...@2xlp.com>.
On Jan 23, 2007, at 11:40 AM, Geoffrey Young wrote:

> I've never heard of args_status in mod_perl, but google finds it in
> libapreq, which is a separate entity.
>
> anyway, the source you seek is here
>
> http://svn.apache.org/viewvc/httpd/apreq/trunk/glue/perl/xsbuilder/ 
> APR/Request/Request.xs


Just to add to the above:

	Apache2::RequestRec is part of modperl
	Apache2::Request , which is what the OP titled the thread, is part  
of libapreq

So the OP was looking for the right module but on the wrong list.

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



Re: Find source for Apache2::Request::args_status

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
Jonathan Mangin wrote:
> Hi,
> I'm a mod_perl newbie going slightly nuts.
> 
> MethodLookup doesn't know anything about args_status().
> 
> I see the references to XSLoader so I'm _guessing_ that it's
> hiding in C code somewhere.  Maybe I'm wrong.
> 
> How/where can I find the source for args_status?

I've never heard of args_status in mod_perl, but google finds it in
libapreq, which is a separate entity.

anyway, the source you seek is here

http://svn.apache.org/viewvc/httpd/apreq/trunk/glue/perl/xsbuilder/APR/Request/Request.xs

HTH

--Geoff