apache2 httpd 2.4.2 - mod_gnutls @0.5.10
Bjarne D Mathiesen
macintosh at mathiesen.info
Sat Apr 28 06:40:35 PDT 2012
Bjarne D Mathiesen wrote:
> Bjarne D Mathiesen wrote:
>> fails to build
>
> hmmm ... it looks af if it's a variation on the same problem as with
> mod_evasive & mod_mono :
>
> :info:build gnutls_hooks.c:753:9: error: no member named 'remote_addr'
> in 'struct conn_rec'
> :info:build if (c->remote_addr->hostname ||
> apr_strnatcmp(c->remote_ip,c->local_ip) == 0) {
>
> :info:build gnutls_hooks.c:753:51: error: no member named 'remote_ip' in
> 'struct conn_rec'
> :info:build if (c->remote_addr->hostname ||
> apr_strnatcmp(c->remote_ip,c->local_ip) == 0) {
>
there's nothing on the mailing lists about this problem
http://httpd.apache.org/docs/trunk/developer/new_api_2_4.html#upgrading
conn_rec->remote_ip and conn_rec->remote_addr
These fields have been renamed in order to distinguish between the
client IP address of the connection and the useragent IP address of the
request (potentially overridden by a load balancer or proxy). References
to either of these fields must be updated with one of the following
options, as appropriate for the module:
When you require the IP address of the user agent, which might
be connected directly to the server, or might optionally be separated
from the server by a transparent load balancer or proxy, use
request_rec->useragent_ip and request_rec->useragent_addr.
When you require the IP address of the client that is connected
directly to the server, which might be the useragent or might be the
load balancer or proxy itself, use conn_rec->client_ip and
conn_rec->client_addr.
--
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3
-------------- next part --------------
--- /macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/www/mod_gnutls/Portfile 2012-04-28 15:35:33.000000000 +0200
+++ portfiles/www/mod_gnutls/Portfile 2012-04-28 15:33:04.000000000 +0200
@@ -30,6 +30,13 @@
patchfiles patch-src_Makefile.in.diff
+post-patch {
+ reinplace "s|->remote_ip|->client_ip|g" \
+ ${worksrcpath}/src/gnutls_hooks.c
+ reinplace "s|->remote_addr|->client_addr|g" \
+ ${worksrcpath}/src/gnutls_hooks.c
+}
+
configure.args --with-apxs=${prefix}/apache2/bin/apxs \
--with-libgnutls-prefix=${prefix}
More information about the macports-dev
mailing list