pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35717: pkgsrc/net/gated compilation errors



>Number:         35717
>Category:       pkg
>Synopsis:       net/gated compilation errors
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 19 20:55:01 +0000 2007
>Originator:     Peter Szilagyi
>Release:        NetBSD 4.99.9
>Organization:
>Environment:
System: NetBSD acer.szilagyi 4.99.9 NetBSD 4.99.9 (GENERIC.MP) #1: Thu Feb 8 
12:07:42 EST 2007 
szilagyi%acer.szilagyi@localhost:/var/tmp/obj/NetBSD-4.99.9/amd64/sys/arch/amd64/compile/GENERIC.MP
 amd64
Architecture: x86_64
Machine: amd64
>Description:
        couple of compilation errors in gated
>How-To-Repeat:
        build net/gated on pkgsrc HEAD
>Fix:
I don't know if these are Right, but the compilation errors look
innocuous enough, and these work for me.

I'm not using gated, I just wanted to look at it, so I haven't tested
these patches!

--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-al    19 Feb 2007 20:44:09 -0000
@@ -0,0 +1,16 @@
+$NetBSD$
+
+if.c:130: error: static declaration of 'if_change_bits' follows non-static 
declaration
+if.h:82: error: previous declaration of 'if_change_bits' was here
+
+--- src.orig/if.c      1999-02-17 18:30:21.000000000 -0500
++++ src/if.c   2007-02-19 15:18:26.000000000 -0500
+@@ -127,7 +127,7 @@
+     {0}
+ };
+ 
+-static const bits if_change_bits[] =
++const bits if_change_bits[] =
+ {
+ /*  {IFC_NOCHANGE,    "NoChange"}, */
+     {IFC_REFRESH,     "Refresh"},
Index: patches/patch-am
===================================================================
RCS file: patches/patch-am
diff -N patches/patch-am
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-am    19 Feb 2007 20:44:09 -0000
@@ -0,0 +1,24 @@
+$NetBSD$
+
+isis_spf.c: In function 'spf_check_pending':
+isis_spf.c:530: error: invalid storage class for function 'print_route'
+
+--- src.orig/isis_spf.c        1999-02-17 18:30:52.000000000 -0500
++++ src/isis_spf.c     2007-02-19 15:27:37.000000000 -0500
+@@ -508,6 +508,8 @@
+       return gpt;
+ }
+ 
++static void print_route();
++
+ /* 
+  * Check for a route to some node's (upstream's) neighbor in the 
+  * pending queue. If a worse route is already pending, 
+@@ -527,7 +529,6 @@
+                                                       /* neighbors, added by 
init_paths) */
+                       asp, as_path *)
+ {
+-      static void print_route();
+       int destType = dbEntry->g.gtype;
+ 
+ #define       UseNewRoute \




Home | Main Index | Thread Index | Old Index