logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: post_read_request with Apache 2.2.4 on Win32
Author
Hemant Kapadia



Joined: 30 Jul 2007
Posts: 3

PostPosted: Mon 30 Jul '07 22:59    Post subject: post_read_request with Apache 2.2.4 on Win32 Reply with quote

Hello I am new to building Apache modules. Have been at it for a week or so. Have done Hello world, but I want to use ap_hook_post_read_reque
to get control before the request is passed on a reverse proxy. But when I buid with my below APXS I am getting Link errors. What do I need to resove this. Thanks all in advance.

Hemant
===============================================
APXS commandC:\Apache2.2.4\bin>apxs -c -i -a mod_tut1.c libapr-1.lib libaprutil-1.lib libapr
iconv-1.lib libhttpd.lib
cl /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG -I"C:\APACHE~1.4\inclu
de" /c /Fomod_tut1.lo mod_tut1.c
mod_tut1.c
mod_tut1.c(76) : warning C4013: 'ap_hook_post_read_request' undefined; assuming
extern returning int
link kernel32.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"c:\APA
CHE~1.4\lib" /out:mod_tut1.so mod_tut1.lo libapr-1.lib libaprutil-1.lib libap
riconv-1.lib libhttpd.lib
Creating library mod_tut1.lib and object mod_tut1.exp
mod_tut1.lo : error LNK2001: unresolved external symbol _ap_hook_post_read_reque
st
mod_tut1.so : fatal error LNK1120: 1 unresolved externals
apxs:Error: Command failed with rc=6291456
===============================================
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Tue 31 Jul '07 15:00    Post subject: Reply with quote

Do you have this in mod_tut1.c?
Code:
#include "http_protocol.h"

This header declares the hook functions.

The function ap_hook_post_read_request should be in libhttpd.lib.

-tom-
Back to top
Hemant Kapadia



Joined: 30 Jul 2007
Posts: 3

PostPosted: Thu 02 Aug '07 0:29    Post subject: Reply with quote

Thanks, I have it resolved.

Hemant
Back to top


Reply to topic   Topic: post_read_request with Apache 2.2.4 on Win32 View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads