arla 0.22 compile errors on NetBSD/Alpha current

assar@stacken.kth.se assar at stacken.kth.se
Mon Mar 8 22:03:56 CET 1999


Todd Cohen <cohentl at clarkson.edu> writes:
> SUBDIRS='include lib util ydr lwp rx rxdef lib/ko  rxkad xfs arlad conf
> appl'; for i in $SUBDIRS;  do (cd $i && make   all) || exit 1; done
> SUBDIRS='roken sl editline acl';  for i in $SUBDIRS;  do (cd $i && make
> all) | exit 1; done
> SUBDIRS='bsd';  for i in $SUBDIRS;  do (cd $i && make   all); done
> gcc -c  -DHAVE_CONFIG_H -I. -I.  -I../../include -I./../../include
> -I./../inclde  -I/usr/athena/include -DXFS_DEBUG -g  -Wall -I. -D_KERNEL
> -D_LKM -DUVM -I/ss -I/sys/arch -Wno-unused xfs_syscalls-common.c
> xfs_syscalls-common.c: In function `sys_xfspioctl':
> xfs_syscalls-common.c:75: warning: passing arg 3 of `xfs_pioctl_call' from
> incompatible pointer type
> xfs_syscalls-common.c: In function `lookup_node':
> xfs_syscalls-common.c:202: warning: int format, different type arg (arg 3)
> xfs_syscalls-common.c: In function `fhopen_call':
> xfs_syscalls-common.c:314: warning: passing arg 6 of `xfs_fhopen' from
> incompatible pointer type
> xfs_syscalls-common.c: At top level:
> xfs_syscalls-common.c:434: conflicting types for `xfs_pioctl_call'
> xfs/xfs_syscalls.h:89: previous declaration of `xfs_pioctl_call'

Thanks, you have found some 64-bit bugs.  Can you try the appended
patch?

/assar

Index: xfs/bsd/xfs_syscalls-common.c
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/bsd/xfs_syscalls-common.c,v
retrieving revision 1.25
diff -u -w -r1.25 xfs_syscalls-common.c
--- xfs_syscalls-common.c	1999/02/18 13:29:22	1.25
+++ xfs_syscalls-common.c	1999/03/08 21:02:31
@@ -198,8 +198,8 @@
 
     error = copyinstr(pathptr, path, MAXPATHLEN, &done);
 
-    XFSDEB(XDEBSYS, ("xfs_syscall: looking up: %s len: %d error: %d\n", 
-		     path, done, error));
+    XFSDEB(XDEBSYS, ("xfs_syscall: looking up: %s len: %lu error: %d\n", 
+		     path, (unsigned long)done, error));
 
     if (error)
 	return error;
Index: xfs/bsd/xfs/xfs_syscalls.h
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/bsd/xfs/xfs_syscalls.h,v
retrieving revision 1.14
diff -u -w -r1.14 xfs_syscalls.h
--- xfs_syscalls.h	1999/02/15 01:55:16	1.14
+++ xfs_syscalls.h	1999/03/08 21:02:31
@@ -86,7 +86,7 @@
 int xfs_setpag_call(struct ucred **ret_cred);
 int xfs_pioctl_call(struct proc *proc,
 		    struct sys_pioctl_args *args,
-		    int *return_value);
+		    register_t *return_value);
 
 int sys_xfspioctl(struct proc *proc, void *varg, register_t *retval);
 
Index: xfs/bsd/xfs/xfs_vfsops.h
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/bsd/xfs/xfs_vfsops.h,v
retrieving revision 1.9
diff -u -w -r1.9 xfs_vfsops.h
--- xfs_vfsops.h	1999/01/10 03:00:38	1.9
+++ xfs_vfsops.h	1999/03/08 21:02:31
@@ -70,7 +70,7 @@
 	    long fileid,
 	    long gen,
 	    int flags,
-	    int *retval);
+	    register_t *retval);
 
 int make_dead_vnode(struct mount *mp, struct vnode **vpp);





More information about the Arla-drinkers mailing list