Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620224 - dev-libs/poco-1.7.6[apache] error: ‘conn_rec {aka struct conn_rec}’ has no member named ‘remote_addr’
Summary: dev-libs/poco-1.7.6[apache] error: ‘conn_rec {aka struct conn_rec}’ has no me...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
: 667726 (view as bug list)
Depends on:
Blocks: 609252
  Show dependency tree
 
Reported: 2017-05-30 21:35 UTC by Alessandro Barbieri
Modified: 2019-03-23 12:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
poco-1.7.6:20170530-211633.log (poco-1.7.6:20170530-211633.log,165.39 KB, text/plain)
2017-05-30 21:36 UTC, Alessandro Barbieri
Details
info (info,14.50 KB, text/plain)
2017-05-30 21:37 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2017-05-30 21:35:34 UTC
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));
                   ^
Comment 1 Alessandro Barbieri 2017-05-30 21:36:39 UTC
Created attachment 474720 [details]
poco-1.7.6:20170530-211633.log

log
Comment 2 Alessandro Barbieri 2017-05-30 21:37:05 UTC
Created attachment 474722 [details]
info

info
Comment 3 Jeremy Stent 2018-01-28 01:07:49 UTC
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.
Comment 4 Pacho Ramos gentoo-dev 2018-09-27 07:43:40 UTC
Still valid with 1.9.0?
Comment 5 Pacho Ramos gentoo-dev 2019-03-15 09:35:19 UTC
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.
Comment 6 Pacho Ramos gentoo-dev 2019-03-15 09:42:00 UTC
*** Bug 667726 has been marked as a duplicate of this bug. ***
Comment 7 Pacho Ramos gentoo-dev 2019-03-15 09:43:17 UTC
it seems apache support should simply be dropped per:
https://github.com/pocoproject/poco/issues/1764
Comment 8 Larry the Git Cow gentoo-dev 2019-03-23 12:25:29 UTC
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(+)