httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: MacOSX Requests and Cookies
Date Sat, 02 Feb 2002 04:28:19 GMT
Rick Frankel <> writes:

> On Fri, Feb 01, 2002 at 10:39:02PM -0500, Joe Schaefer wrote:
> ...
> > Great -  thanks a ton!
> Not so great. I'm half asleep. You need to do patch -r or, apply the
> forward patch included below...

Don't sweat it;  I hand-edited httpd_main.c to read like this:

/* force apreq to be linked into the server executable */
#if defined(USE_APREQ) && !defined(SHARED_CORE_BOOTSTRAP)
#include "apache_request.h"
#include "apache_cookie.h"
ApacheRequest *suck_in_apreq(request_rec *r);
ApacheRequest *suck_in_apreq(request_rec *r)
    return ApacheCookie_new(r), ApacheRequest_new(r);
#endif /* USE_APREQ */

It should have the same effect on linkage as your patch did:

  % nm --dynamic /usr/local/apache/bin/httpd | grep Apache[RC]
  080a9eb0 T ApacheCookie_as_string
  080a98d0 T ApacheCookie_attr
  080aa118 T ApacheCookie_bake
  080a9894 T ApacheCookie_expires
  080a9ad4 T ApacheCookie_new
  080a9ba4 T ApacheCookie_parse
  080a8674 T ApacheRequest___parse
  080a9218 T ApacheRequest_expires
  080a8414 T ApacheRequest_new
  080a81c0 T ApacheRequest_param
  080a823c T ApacheRequest_params
  080a82b8 T ApacheRequest_params_as_string
  080a8a48 T ApacheRequest_parse_multipart
  080a8798 T ApacheRequest_parse_urlencoded
  080a810c T ApacheRequest_script_name
  080a8190 T ApacheRequest_script_path
  080a88f8 T ApacheRequest_tmpfile

( As you noted, the original was missing the 
  ApacheCookie* symbols, even on linux. )

Joe Schaefer

View raw message