ports/115200: [PATCH] www/apache22: Fix build without ipv6

Andrey Slusar anray at FreeBSD.org
Sat Aug 4 22:10:02 UTC 2007


>Number:         115200
>Category:       ports
>Synopsis:       [PATCH] www/apache22: Fix build without ipv6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 04 22:10:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Jul 30 02:18:47 EEST 2007 anray at santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
	
>Description:
	- Fix build without ipv6

	Obtained from:	apache svn
>How-To-Repeat:
	cd ports/www/apache22 && make WITHOUT_IPV6=yes
	Build stopped with error:
	> libapr-1.so: undefined reference to `find_if_index'
>Fix:

--- if_index.diff begins here ---
Index: files/patch-srclib-apr-network_io-unix-multicast.c
===================================================================
RCS file: files/patch-srclib-apr-network_io-unix-multicast.c
diff -N files/patch-srclib-apr-network_io-unix-multicast.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-srclib-apr-network_io-unix-multicast.c	4 Aug 2007 22:02:15 -0000
@@ -0,0 +1,23 @@
+--- srclib/apr/network_io/unix/multicast.c.orig	2007-08-05 00:58:21.000000000 +0300
++++ srclib/apr/network_io/unix/multicast.c	2007-08-05 00:59:51.000000000 +0300
+@@ -57,11 +57,10 @@
+     }
+ }
+ 
+-#if APR_HAVE_IPV6
+ static unsigned int find_if_index(const apr_sockaddr_t *iface)
+ {
+     unsigned int index = 0;
+-#ifdef HAVE_GETIFADDRS
++#if defined(HAVE_GETIFADDRS) && APR_HAVE_IPV6
+     struct ifaddrs *ifp, *ifs;
+ 
+     /**
+@@ -92,6 +91,7 @@
+     return index;
+ }
+ 
++#if APR_HAVE_IPV6
+ static void fill_mip_v6(struct ipv6_mreq *mip, const apr_sockaddr_t *mcast,
+                         const apr_sockaddr_t *iface)
+ {
--- if_index.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list