Apache 2.2.22: missing declspec for ap_read_request()

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache 2.2.22: missing declspec for ap_read_request()

Postby F.Haferkorn » 02. May 2012 16:58

Hello,

I am relatively new to Apache, but have quite good training in C/C++
I am using Apache 2.2.22 on Windows on a x64 machine.
I tried to use the function in my own apache module:

Code: Select all
request_rec*  ap_read_request(conn_rec *conn);


That is what is declared in include/http_protocol.h
and what is given in protocol.c // line 868 in protocol.c

During linking I have no access to the symbol _ap_read_request.
it produces an linker error

When I add the stuff about the dllexport / dllimport
using
Code: Select all
AP_DECLARE(request_rec*) ap_read_request(conn_rec *conn)


in both protocol.c and include/http_protocol.h
the compilation and linkage work flawless!


Is this issue realted to 2.2 only or is it already fixed in 2.4. ?
Yours,
F.Haferkorn :D
F.Haferkorn
 
Posts: 4
Joined: 02. April 2012 13:19
Operating System: Windows 7

Return to Apache

Who is online

Users browsing this forum: No registered users and 48 guests