Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2010 12:24:29 GMT
From:      Alexey Illarionov <littlesavage@rambler.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152860: [PATCH] net/quagga: set ipv6 address broken again
Message-ID:  <201012061224.oB6COTpA060444@red.freebsd.org>
Resent-Message-ID: <201012061230.oB6CU9MV055352@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152860
>Category:       ports
>Synopsis:       [PATCH] net/quagga: set ipv6 address broken again
>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:   Mon Dec 06 12:30:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Illarionov
>Release:        8.1-STABLE
>Organization:
>Environment:
FreeBSD ls.orionet.ru 8.1-STABLE FreeBSD 8.1-STABLE #22: Thu Oct 21 03:47:03 MSD 2010     alexey@ls.orionet.ru:/usr/obj/usr/src/sys/HP7X2  i386
>Description:
net/quagga 0.99.17_3

Ipv6 addresses still cannot be assigned to interfaces by Quagga.

config.log:

configure:12187: checking for netinet/in_var.h
configure:12187: cc -c -O0 -g3 -pipe -march=prescott -I/usr/local/include  conftest.c >&5
In file included from conftest.c:134:
/usr/include/netinet/in_var.h:60: error: field 'ia_ifa' has incomplete type
/usr/include/netinet/in_var.h:210: error: field 'igi_gq' has incomplete type
/usr/include/netinet/in_var.h:299: error: field 'inm_scq' has incomplete type
In file included from /usr/include/netinet/in_var.h:473,
                 from conftest.c:134:
/usr/include/netinet6/in6_var.h:112: error: field 'ia_ifa' has incomplete type
/usr/include/netinet6/in6_var.h:610: error: field 'in6m_scq' has incomplete type
configure:12187: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Quagga"
| #define PACKAGE_TARNAME "quagga"
| #define PACKAGE_VERSION "0.99.17"
| #define PACKAGE_STRING "Quagga 0.99.17"
| #define PACKAGE_BUGREPORT "https://bugzilla.quagga.net"
| #define PACKAGE_URL ""
| #define PACKAGE "quagga"
| #define VERSION "0.99.17"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define CONSUMED_TIME_CHECK 5000000
| #define HAVE_RTADV /**/
| #define QUAGGA_USER "quagga"
| #define QUAGGA_GROUP "quagga"
| #define CONFIGFILE_MASK 0600
| #define LOGFILE_MASK 0600
| #define restrict __restrict
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_WAIT_H 1
| #define RETSIGTYPE void
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETDB_H 1

| #define HAVE_SYS_PARAM_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_LIBUTIL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_TIME_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_NET_IF_VAR_H 1
| #define HAVE_NET_IF_DL_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| /* end confdefs.h.  */
| #ifdef SUNOS_5
| #define _XPG4_2
| #define __EXTENSIONS__
| #endif
| #include <stdio.h>
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| /* sys/conf.h depends on param.h on FBSD at least */
| #if HAVE_SYS_PARAM_H
| # include <sys/param.h>
| #endif
| /* Required for MAXSIG */
| #if HAVE_SIGNAL_H
| # include <signal.h>
| #endif
| #if HAVE_SYS_SOCKET_H
| # include <sys/socket.h>
| #endif
| #if HAVE_NETINET_IN_H
| # include <netinet/in.h>
| #endif
| #ifdef TIME_WITH_SYS_TIME
| 
| #if HAVE_NET_IF_H
| # include <net/if.h>
| #endif
| #if HAVE_NETINET_IN_VAR_H
| # include <netinet/in_var.h>
| #endif
| #if HAVE_SYS_UN_H
| # include <sys/un.h>
| #endif
| #if HAVE_NETINET_IN_SYSTM_H
| # include <netinet/in_systm.h>
| #endif
| #if HAVE_NETINET_IN_VAR_H
| # include <netinet/in_var.h>
| #endif
| #if HAVE_NET_IF_DL_H
| # include <net/if_dl.h>
| #endif
| #if HAVE_NET_NETOPT_H
| # include <net/netopt.h>
| #endif
| #if HAVE_NET_ROUTE_H
| # include <net/route.h>
| #endif
| #if HAVE_INET_ND_H
| # include <inet/nd.h>
| #endif
| #if HAVE_ARPA_INET_H
| # include <arpa/inet.h>
| #endif
| /* Required for IDRP */
| #if HAVE_NETINET_IP_ICMP_H
| # include <netinet/ip_icmp.h>
| #endif
| #include <security/pam_types.h>
| 
| 
| #include <netinet/in_var.h>


Diff between original config.h and config.h with attached patch:

--- config.h.orig 2010-12-06 14:36:39.239909501 +0300
+++ config.h	2010-12-06 15:04:46.308551703 +0300
@@ -208,10 +208,10 @@
 /* #undef HAVE_NETINET6_IN6_H */
 
 /* Define to 1 if you have the <netinet6/in6_var.h> header file. */
-/* #undef HAVE_NETINET6_IN6_VAR_H */
+#define HAVE_NETINET6_IN6_VAR_H 1
 
 /* Define to 1 if you have the <netinet6/nd6.h> header file. */
-/* #undef HAVE_NETINET6_ND6_H */
+#define HAVE_NETINET6_ND6_H 1
 
 /* Define to 1 if you have the <netinet/icmp6.h> header file. */
 #define HAVE_NETINET_ICMP6_H 1
@@ -226,7 +226,7 @@
 #define HAVE_NETINET_IN_SYSTM_H 1
 
 /* Define to 1 if you have the <netinet/in_var.h> header file. */
-/* #undef HAVE_NETINET_IN_VAR_H */
+#define HAVE_NETINET_IN_VAR_H 1
 
 /* Define to 1 if you have the <netinet/ip_icmp.h> header file. */
 /* #undef HAVE_NETINET_IP_ICMP_H */
@@ -408,7 +408,7 @@
 #define HAVE_STRUCT_IFMEDIAREQ_IFM_STATUS 1
 
 /* Define to 1 if the system has the type `struct in6_aliasreq'. */
-/* #undef HAVE_STRUCT_IN6_ALIASREQ */
+#define HAVE_STRUCT_IN6_ALIASREQ 1
 
 /* Define to 1 if the system has the type `struct in_pktinfo'. */
 /* #undef HAVE_STRUCT_IN_PKTINFO */



>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- /usr/ports/net/quagga_orig/files/patch-configure.ac	2010-09-20 20:29:08.000000000 +0400
+++ /usr/ports/net/quagga/files/patch-configure.ac	2010-12-06 15:02:46.099868778 +0300
@@ -23,8 +23,8 @@
  [#if HAVE_NET_IF_H
  # include <net/if.h>
  #endif
-+#if HAVE_NETINET_IN_VAR_H
-+# include <netinet/in_var.h>
++#if HAVE_NET_IF_VAR_H
++# include <net/if_var.h>
 +#endif
  #if HAVE_SYS_UN_H
  # include <sys/un.h>


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012061224.oB6COTpA060444>