Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApacheConnector.cpp use old apache old api interface #14

Closed
flachesis opened this issue Nov 15, 2012 · 2 comments
Closed

ApacheConnector.cpp use old apache old api interface #14

flachesis opened this issue Nov 15, 2012 · 2 comments

Comments

@flachesis
Copy link

(apache 2.4)
ap_log_error(...) has change api interface,
and remote_ip and remote_addr,
change to client_ip and client_addr.

@obiltschnig
Copy link
Member

No time to maintain ApacheConnector anymore. Will remove it from release, unless someone steps in and takes responsibility for it.

kostya-lnk-ms pushed a commit to kostya-lnk-ms/poco that referenced this issue Sep 1, 2015
…pstream:ms-develop to ms-develop

* commit '1d89fe4cbb8da4f232f22b59d3b1c786e022f80c':
  Added "const" accessors to Row
  Fixed problem of binding of null via Any()
  Made changes to allow compilation without c++11
@yegorich
Copy link

Just heads up in the case that ApacheConnector is still going to be maintained. During my CMake related tests I've encountered following compilation error (Apache 2 version: apache2-dev 2.4.25-3+deb9u3, poco version: current git/develop branch)

[ 96%] Building CXX object ApacheConnector/CMakeFiles/mod_poco.dir/src/ApacheConnector.cpp.o
/home/user/Documents/versioned/poco/ApacheConnector/src/ApacheConnector.cpp: In static member function ‘static void ApacheConnector::log(const char*, int, int, int, const char*)’:
/home/user/Documents/versioned/poco/ApacheConnector/src/ApacheConnector.cpp:157:51: warning: passing NULL to non-pointer argument 5 of ‘void ap_log_error_(const char*, int, int, int, apr_status_t, const server_rec*, const char*, ...)’ [-Wconversion-null]
ap_log_error(file, line, level, 0, NULL, 0, text);
^
/home/user/Documents/versioned/poco/ApacheConnector/src/ApacheConnector.cpp: In function ‘int ApacheConnector_handler(request_rec*)’:
/home/user/Documents/versioned/poco/ApacheConnector/src/ApacheConnector.cpp:196:37: error: invalid new-expression of abstract class type ‘ApacheServerRequest’
r->connection->client_addr->port));
^
In file included from /home/user/Documents/versioned/poco/ApacheConnector/include/ApacheRequestHandlerFactory.h:15:0,
from /home/user/Documents/versioned/poco/ApacheConnector/include/ApacheApplication.h:15,
from /home/user/Documents/versioned/poco/ApacheConnector/src/ApacheConnector.cpp:12:
/home/user/Documents/versioned/poco/ApacheConnector/include/ApacheServerRequest.h:24:7: note: because the following virtual functions are pure within ‘ApacheServerRequest’:
class ApacheServerRequest: public Poco::Net::HTTPServerRequest
^~~~~~~~~~~~~~~~~~~
In file included from /home/user/Documents/versioned/poco/ApacheConnector/include/ApacheServerRequest.h:17:0,
from /home/user/Documents/versioned/poco/ApacheConnector/include/ApacheRequestHandlerFactory.h:15,
from /home/user/Documents/versioned/poco/ApacheConnector/include/ApacheApplication.h:15,
from /home/user/Documents/versioned/poco/ApacheConnector/src/ApacheConnector.cpp:12:
/usr/local/include/Poco/Net/HTTPServerRequest.h:69:15: note: virtual bool Poco::Net::HTTPServerRequest::secure() const
virtual bool secure() const = 0;
^~~~~~
ApacheConnector/CMakeFiles/mod_poco.dir/build.make:110: recipe for target 'ApacheConnector/CMakeFiles/mod_poco.dir/src/ApacheConnector.cpp.o' failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants