[OpenAFS-devel] Make error in 1.3.65

Matthew Miller mattdm@mattdm.org
Mon, 28 Jun 2004 16:09:07 -0400


On Mon, Jun 28, 2004 at 09:51:03PM +0200, Roos, D.A. wrote:
> Could somebody help out?
> On my system (SuSE 9.1, kernel 2.6, Athlon) after a successfull configure, the 
> make results in an error:
> /root/openafs-snap-2004-06-23/src/libafs/MODLOAD-2.6.5-7.75-default-MP/rx_knet.c:198: 
> warning: unused variable `p'
> make[6]: *** 
> [/root/openafs-snap-2004-06-23/src/libafs/MODLOAD-2.6.5-7.75-default-MP/rx_knet.o] 
> Error 1

The actual error isn't shown in your message, but I'm pretty sure it's the sock_create
5th-parameter thing. Apply this patch:


--- openafs-1.3.65/src/rx/LINUX/rx_knet.c.orig	2004-06-28 14:55:51.135570276 -0400
+++ openafs-1.3.65/src/rx/LINUX/rx_knet.c	2004-06-28 14:56:10.310400070 -0400
@@ -37,11 +37,7 @@
     int code;
 
 
-#ifdef LINUX_KERNEL_IS_SELINUX
-    code = sock_create(AF_INET, SOCK_DGRAM, IPPROTO_UDP, &sockp, 0);
-#else
     code = sock_create(AF_INET, SOCK_DGRAM, IPPROTO_UDP, &sockp);
-#endif
     if (code < 0)
 	return NULL;
 


-- 
Matthew Miller           mattdm@mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>