lkml.org 
[lkml]   [1997]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectlinux-nfs-0.4.21 for Alpha glibc
All,

I have completed a set of patches which permits Olaf's knfs utilities to
compile on an Alpha with glibc-2.0.3+. Unfortunately, there are some
operational problems (read: it doesn't seem to do anything bad, but
exports don't work).

I'll be chipping away at this, but my ignorance of nfs, rpc, etc. is
monumental, so help and advice is appreciated.

I believe that the changes to compile with glibc were sound, but most of
it was sheer guesswork - feel free to level constructive criticism. I'm
not real pleased about the patches required in the kernel headers, but
don't see how this could be avoided. Also, something was just plain
missing in <rpc/svc.h>??

I'm currently running with kernel 2.1.76 (which works just dandy so far!).

Steve

*** rpc/svc.h.orig Sun Apr 20 18:17:50 1997
--- rpc/svc.h Fri Dec 26 18:41:50 1997
***************
*** 144,149 ****
--- 144,154 ----
SVCXPRT *rq_xprt; /* associated transport */
};

+ #ifndef __DISPATCH_FN_T
+ #define __DISPATCH_FN_T
+ typedef void (*__dispatch_fn_t) __P((struct svc_req*, SVCXPRT*));
+ #endif
+

/*
* Service registration
[unhandled content-type:application/octet-stream]--- linux/include/linux/in.h.orig Mon Dec 1 23:40:25 1997
+++ linux/include/linux/in.h Fri Dec 26 17:42:54 1997
@@ -18,6 +18,8 @@
#ifndef _LINUX_IN_H
#define _LINUX_IN_H

+#ifdef __KERNEL__
+
#include <linux/types.h>

/* Standard well-defined IP protocols. */
@@ -172,7 +174,6 @@
/* <asm/byteorder.h> contains the htonl type stuff.. */
#include <asm/byteorder.h>

-#ifdef __KERNEL__
/* Some random defines to make it easier in the kernel.. */
#define LOOPBACK(x) (((x) & htonl(0xff000000)) == htonl(0x7f000000))
#define MULTICAST(x) (((x) & htonl(0xf0000000)) == htonl(0xe0000000))
--- linux/include/linux/sched.h.orig Sat Dec 27 10:57:39 1997
+++ linux/include/linux/sched.h Fri Dec 26 17:40:11 1997
@@ -1,6 +1,8 @@
#ifndef _LINUX_SCHED_H
#define _LINUX_SCHED_H

+#ifdef __KERNEL__
+
#include <asm/param.h> /* for HZ */

extern unsigned long event;
@@ -93,8 +95,6 @@
#ifndef NULL
#define NULL ((void *) 0)
#endif
-
-#ifdef __KERNEL__

#include <asm/spinlock.h>

--- linux/include/linux/socket.h.orig Sat Dec 27 10:57:22 1997
+++ linux/include/linux/socket.h Fri Dec 26 20:32:58 1997
@@ -6,6 +6,8 @@
#include <linux/uio.h> /* iovec support */
#include <linux/types.h> /* pid_t */

+#ifdef __KERNEL__
+
typedef unsigned short sa_family_t;

/*
@@ -226,7 +228,6 @@
#define TCP_NODELAY 1
#define TCP_MAXSEG 2

-#ifdef __KERNEL__
extern int memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len);
extern int memcpy_fromiovecend(unsigned char *kdata, struct iovec *iov,
int offset, int len);
--- linux/include/linux/types.h.orig Sat Dec 27 10:57:10 1997
+++ linux/include/linux/types.h Fri Dec 26 18:29:18 1997
@@ -4,6 +4,8 @@
#include <linux/posix_types.h>
#include <asm/types.h>

+#ifdef __KERNEL__
+
#ifndef __KERNEL_STRICT_NAMES

typedef __kernel_fd_set fd_set;
@@ -82,5 +84,5 @@
char f_fname[6];
char f_fpack[6];
};
-
+#endif
#endif /* _LINUX_TYPES_H */
\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.066 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site