Re: expat install libapreq2-2.0.5-dev

2005-05-24 Thread Marc Lambrichs

Marc Lambrichs wrote:

Randy Kobes wrote:


On Mon, 23 May 2005, Philip M. Gollucci wrote:



Marc Lambrichs wrote:



[ ... ]


But wait, there's more.
In file included from Apache2.xs:39
/home/mlambrichs/libapreq2-2.05-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34: 


modperl_unembed.h: No such file or directory

Somehow I'm under the impression that the Makefile isn't fit for my
system.




That's strange - glue/perl/xsbuilder/apreq_xs_postperl.h
of my copy is including modperl_perl_unembed.h,
not modperl_unembed.h. Was this a cut-n-paste error,
or is it really trying to include modperl_unembed.h?

Also, do you have modperl_perl_unembed.h under your Apache2
include/ subdirectory? It should get installed there upon
installing mod_perl-2.



Probably a cut-n-paste error. Sorry about that. And 
yes...modperl_perl_unembed.h is under include directory.
I think my freebsd system is a bit mixed up. I've changed the ports to a 
manual install in /usr/local/httpd_2.0.54. Made a manual install of 
libapreq2. Now I get:


/libexec/ld-elf.so.1: 
/usr/local/lib/perl5/site_perl/5.8.5/mach/auto/APR/Request/Apache2/Apache2.so: 
Undefined symbol apreq_handle_apache2




simple case of RTFM. I didn't activate mod_apreq2. Sorry.



Re: APR::Request API for playing with cookies

2005-05-24 Thread Joe Schaefer
Simon Perreault [EMAIL PROTECTED] writes:

  I just want to get to the value of my cookie, which is a list of two
 strings. I can get the frozen string of the cookie using:

 my $cookie = $jar-{CookieID};

 However this is not a blessed object, it's only a string.

 How can I get my value() method?

  $jar-cookie_class(My::Class);
  my $cookie = $jar-{CookieID};


-- 
Joe Schaefer


Re: APR::Request API for playing with cookies

2005-05-24 Thread Simon Perreault
On Tuesday 24 May 2005 10:29, Joe Schaefer wrote:
   $jar-cookie_class(My::Class);
   my $cookie = $jar-{CookieID};

There is no default class? My first impression is that this is strange...

Also, I can't do this, right?

$req-jar-cookie_class('My::Class');

This seems to not have any effect.


Re: APR::Request API for playing with cookies

2005-05-24 Thread Joe Schaefer
Simon Perreault [EMAIL PROTECTED] writes:

 On Tuesday 24 May 2005 10:29, Joe Schaefer wrote:
   $jar-cookie_class(My::Class);
   my $cookie = $jar-{CookieID};

 There is no default class? My first impression is
 that this is strange... 

It is for performance raisins, mainly,
but that's also how the C API works: if you
don't care about the objects stored in
our tables, you don't have to deal with them.

 Also, I can't do this, right?

 $req-jar-cookie_class('My::Class');

 This seems to not have any effect.

Correct.  It's a property of the $jar *variable*,
not the $req.

-- 
Joe Schaefer