Skip to contentSkip to conversation

iproute2-2.6.9-041019 compiling error

LARTC Stephen Hemminger 2 participants 4 messages Oct 20, 2004 – Oct 21, 2004

lore
Share & tools
lore
#1 lore raw

While compiling the new release i´ll get this error:

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include
-DRESOLVE_HOSTNAMES -c -o ipxfrm.o ipxfrm.c
ipxfrm.c: In function `xfrm_selector_print':
ipxfrm.c:395: error: `IPPROTO_SCTP' undeclared (first use in this function) ipxfrm.c:395: error: (Each undeclared identifier is reported only once ipxfrm.c:395: error: for each function it appears in.) ipxfrm.c: In function `xfrm_selector_upspec_parse':
ipxfrm.c:790: error: `IPPROTO_SCTP' undeclared (first use in this function)

Any solutions?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Stephen Hemminger
Quoted 7 lines

This should fix it.

diff -Nru a/ip/xfrm.h b/ip/xfrm.h

ip/xfrm.h +0 -0
@@ -28,7 +28,10 @@
 #include <stdio.h>

ip/xfrm.h line 37

Quoted 10 lines
ip/xfrm.h +4 -1
 #include <sys/socket.h>
 #include <linux/xfrm.h>
-#include "utils.h"
+
+#ifndef IPPROTO_SCTP
+# define IPPROTO_SCTP	132
+#endif
 
 #define XFRM_MAX_DEPTH 6
 

Thank´s but I´m not good at programming so I don´t really know what to do :(.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Stephen Hemminger
Quoted 7 lines

This should fix it.

diff -Nru a/ip/xfrm.h b/ip/xfrm.h

ip/xfrm.h +0 -0
@@ -28,7 +28,10 @@
 #include <stdio.h>

ip/xfrm.h line 37

Quoted 10 lines
ip/xfrm.h +4 -1
 #include <sys/socket.h>
 #include <linux/xfrm.h>
-#include "utils.h"
+
+#ifndef IPPROTO_SCTP
+# define IPPROTO_SCTP	132
+#endif
 
 #define XFRM_MAX_DEPTH 6
 

OK excuse me for being dumb ;), worked fine.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/