Building poco with 'apache' use fails with: make[2]: Entering directory '/var/tmp/portage/dev-libs/poco-1.7.6/work/poco-1.7.6_build' /var/tmp/portage/dev-libs/poco-1.7.6/work/poco-poco-1.7.6-release/ApacheConnector/src/ApacheConnector.cpp: In static member function ‘static void ApacheConnector::log(c onst char*, int, int, int, const char*)’: /var/tmp/portage/dev-libs/poco-1.7.6/work/poco-poco-1.7.6-release/ApacheConnector/src/ApacheConnector.cpp:154:53: warning: converting to non-pointer type ‘apr_status_t {aka int}’ from NULL [-Wconversion-null] ap_log_error(file, line, level, 0, NULL, "%s", text); ^ /var/tmp/portage/dev-libs/poco-1.7.6/work/poco-poco-1.7.6-release/ApacheConnector/src/ApacheConnector.cpp:154:53: error: cannot convert ‘const char*’ to ‘const server_r ec*’ for argument ‘6’ to ‘void ap_log_error_(const char*, int, int, int, apr_status_t, const server_rec*, const char*, ...)’ /var/tmp/portage/dev-libs/poco-1.7.6/work/poco-poco-1.7.6-release/ApacheConnector/src/ApacheConnector.cpp: In function ‘int ApacheConnector_handler(request_rec*)’: /var/tmp/portage/dev-libs/poco-1.7.6/work/poco-poco-1.7.6-release/ApacheConnector/src/ApacheConnector.cpp:181:19: error: ‘conn_rec {aka struct conn_rec}’ has no member named ‘remote_ip’ r->connection->remote_ip, ^ /var/tmp/portage/dev-libs/poco-1.7.6/work/poco-poco-1.7.6-release/ApacheConnector/src/ApacheConnector.cpp:182:19: error: ‘conn_rec {aka struct conn_rec}’ has no member named ‘remote_addr’ r->connection->remote_addr->port)); ^
Created attachment 474720 [details] poco-1.7.6:20170530-211633.log log
Created attachment 474722 [details] info info
referencing https://github.com/engintron/engintron/issues/1 gives us a clue as to what to change. In poco-poco-1.7.6-release/ApacheConnector/src/ApacheConnector.cpp change remote_ip to client_ip and remote_addr to client_addr . I also had to modify the ApacheConnector::log method (line 154) to add a 0 parameter before the "%s" parameter.
Still valid with 1.9.0?
now fails with /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheChannel.h:15:10: fatal error: Poco/Channel.h: No such file or directory #include "Poco/Channel.h" ^~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [ApacheConnector/CMakeFiles/mod_poco.dir/build.make:87: ApacheConnector/CMakeFiles/mod_poco.dir/src/ApacheChannel.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheServerRequest.h:16, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheRequestHandlerFactory.h:15, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheApplication.h:15, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/src/ApacheApplication.cpp:11: /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheStream.h:16:10: fatal error: Poco/BufferedStreamBuf.h: No such file or directory #include "Poco/BufferedStreamBuf.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [ApacheConnector/CMakeFiles/mod_poco.dir/build.make:63: ApacheConnector/CMakeFiles/mod_poco.dir/src/ApacheApplication.cpp.o] Error 1 In file included from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheServerRequest.h:16, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheRequestHandlerFactory.h:15, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/src/ApacheRequestHandlerFactory.cpp:11: /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheStream.h:16:10: fatal error: Poco/BufferedStreamBuf.h: No such file or directory #include "Poco/BufferedStreamBuf.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [ApacheConnector/CMakeFiles/mod_poco.dir/build.make:135: ApacheConnector/CMakeFiles/mod_poco.dir/src/ApacheRequestHandlerFactory.cpp.o] Error 1 In file included from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheServerRequest.h:16, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheRequestHandlerFactory.h:15, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheApplication.h:15, from /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/src/ApacheConnector.cpp:12: /var/tmp/portage/dev-libs/poco-1.9.0-r1/work/poco-poco-1.9.0-release/ApacheConnector/include/ApacheStream.h:16:10: fatal error: Poco/BufferedStreamBuf.h: No such file or directory #include "Poco/BufferedStreamBuf.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
*** Bug 667726 has been marked as a duplicate of this bug. ***
it seems apache support should simply be dropped per: https://github.com/pocoproject/poco/issues/1764
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cb889f92a3eba8a498804cec6d516c8912331d9 commit 9cb889f92a3eba8a498804cec6d516c8912331d9 Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2019-03-23 12:24:17 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2019-03-23 12:25:16 +0000 dev-libs/poco: Fix deps, drop dead apache support Closes: https://bugs.gentoo.org/675052 Closes: https://bugs.gentoo.org/673158 Closes: https://bugs.gentoo.org/658202 Closes: https://bugs.gentoo.org/620224 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Pacho Ramos <pacho@gentoo.org> dev-libs/poco/poco-1.9.0-r2.ebuild | 131 +++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+)