Mailing List Archive

Quagga from CVS fails to compile
Hi,

the most recent version taken from CVS fails to compile with gcc 3.2.2
because of the ospf6_lsdb prototype declaration inside struct ospf6_lsa.
Moving the prototype outside fixes the problem. Patch below.

Thanks,
Ville

Index: ospf6d/ospf6_lsa.h
===================================================================
RCS file: /var/cvsroot/quagga/ospf6d/ospf6_lsa.h,v
retrieving revision 1.5
diff -u -r1.5 ospf6_lsa.h
--- ospf6d/ospf6_lsa.h 15 Aug 2004 05:52:07 -0000 1.5
+++ ospf6d/ospf6_lsa.h 17 Aug 2004 06:46:36 -0000
@@ -102,6 +102,8 @@
#define OSPF6_LSA_IS_MAXAGE(L) (ospf6_lsa_age_current (L) == MAXAGE)
#define OSPF6_LSA_IS_CHANGED(L1, L2) ospf6_lsa_is_changed (L1, L2)

+struct ospf6_lsdb;
+
struct ospf6_lsa
{
char name[64]; /* dump string */
@@ -121,7 +123,6 @@

int retrans_count;

-struct ospf6_lsdb;
struct ospf6_lsdb *lsdb;

/* lsa instance */

--
Ville Nuorvala
Research Assistant, Institute of Digital Communications,
Helsinki University of Technology
email: vnuorval@tcs.hut.fi, phone: +358 (0)9 451 5257