[235] in The Cryptographic File System users list

home help back first fref pref prev next nref lref last post

Re: Compiling 1.4.0 failed on linux; please help

daemon@ATHENA.MIT.EDU (J. Lasser)
Wed Aug 8 16:19:43 2001

From owner-cfs-users@crypto.com Wed Aug 08 20:19:43 2001
Return-Path: <owner-cfs-users@crypto.com>
Delivered-To: cfs-mtg@CHARON.mit.edu
Received: (qmail 6141 invoked from network); 8 Aug 2001 20:19:42 -0000
Received: from mx.crypto.com (207.140.168.138)
  by charon.mit.edu with SMTP; 8 Aug 2001 20:19:42 -0000
Received: (from majordomo@localhost)
	by MultiHostMXServer (8.9.3/8.9.x4) id QAA25169
	for cfs-users-list; Wed, 8 Aug 2001 16:10:26 -0400 (EDT)
X-Authentication-Warning: mx.crypto.com: majordomo set sender to owner-cfs-users@crypto.com using -f
Received: from nsa.research.att.com (H-135-207-24-155.research.att.com [135.207.24.155])
	by MultiHostMXServer (8.9.3/8.9.x4) with ESMTP id QAA05477
	for <cfs-users@crypto.com>; Wed, 8 Aug 2001 16:10:25 -0400 (EDT)
Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by nsa.research.att.com (8.7.3/8.7.3) with ESMTP id QAA19119 for <cfs-users@nsa.research.att.com>; Wed, 8 Aug 2001 16:10:24 -0400 (EDT)
Received: by mail-blue.research.att.com (Postfix)
	id EA9AC4CE3A; Wed,  8 Aug 2001 16:10:24 -0400 (EDT)
Delivered-To: cfs-users@research.att.com
Received: from frogbog.baltimorons.org (ip177-180.usernet.xisp.net [216.181.177.180])
	by mail-blue.research.att.com (Postfix) with ESMTP id 1BE3A4CE02
	for <cfs-users@research.att.com>; Wed,  8 Aug 2001 16:10:24 -0400 (EDT)
Received: (from jon@localhost)
	by frogbog.baltimorons.org (8.11.2/8.11.2) id f78KBFl01401;
	Wed, 8 Aug 2001 16:11:15 -0400
Date: Wed, 8 Aug 2001 16:11:14 -0400
From: "J. Lasser" <jon@lasser.org>
To: beldridg@best.com
Cc: cfs-users@research.att.com
Subject: Re: Compiling 1.4.0 failed on linux; please help
Message-ID: <20010808161113.H1055@frogbog.baltimorons.org>
Mail-Followup-To: beldridg@best.com, cfs-users@research.att.com
References: <0108071806270I.01223@neofelis> <Pine.LNX.4.33.0108081251070.27624-100000@rush>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
	protocol="application/pgp-signature"; boundary="1E1Oui4vdubnXi3o"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.LNX.4.33.0108081251070.27624-100000@rush>; from beldridg@best.com on Wed, Aug 08, 2001 at 12:51:38PM -0700
Sender: owner-cfs-users@crypto.com
Precedence: bulk


--1E1Oui4vdubnXi3o
Content-Type: multipart/mixed; boundary="KscVNZbUup0vZz0f"
Content-Disposition: inline


--KscVNZbUup0vZz0f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

In the wise words of beldridg@best.com:

> On Tue, 7 Aug 2001, Pierre Abbat wrote:
>=20
> > I just applied Jon Lasser's patch and it works fine. Thanks Jon!
>=20
> can you post a link the patch or possibly the patch itself if it's small?

I've attached the patch.

It's not originally mine, though I probably did modify it. (I don't
remember for sure.) It came from the Debian package.

Enjoy!

Jon
--=20
Jon Lasser=09
Home: jon@lasser.org		|    Work:jon@cluestickconsulting.com
http://www.tux.org/~lasser/     |    http://www.cluestickconsulting.com
   Buy my book, _Think_Unix_! http://www.tux.org/~lasser/think-unix/

--KscVNZbUup0vZz0f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cfs-1.4.0-beta2-redhat-7.1.diff"
Content-Transfer-Encoding: quoted-printable

diff -uNr cfs-1.4.0beta2.orig/Makefile cfs-1.4.0beta2/Makefile
--- cfs-1.4.0beta2.orig/Makefile	Sat Dec 20 04:57:08 1997
+++ cfs-1.4.0beta2/Makefile	Mon Apr 23 22:57:16 2001
@@ -71,7 +71,7 @@
=20
 #1A: compiler:
 # for cc, use
-#CC=3Dcc
+# CC=3Dcc
 #COPT=3D-O -DNOT_ANSI_C -DPROTOTYPES=3D0
 # for gcc, use
 CC=3Dgcc
@@ -80,7 +80,7 @@
 #1B: paths:
 #some peple like /usr/local/sbin instead of /usr/local/etc
 BINDIR=3D/usr/local/bin
-ETCDIR=3D/usr/local/etc
+ETCDIR=3D/usr/local/sbin
 PRINTCMD=3Denscript -Gr2
 # you only need RSAREF for ESM
 # these paths WILL have to be changed...
@@ -116,28 +116,34 @@
 ## Linux dists).
 ## See NOTE TO LINUX USERS above, and also README.linux,
 ## if you can't make things work.
-#CFLAGS=3D$(COPT) -U__STDC__ -Dd_fileno=3Dd_ino -I$(RINCLUDES)
-#LIBS=3D
-#COMPAT=3D
-#RPCOPTS=3D -k -b
+# CFLAGS=3D$(COPT) -U__STDC__ -Dd_fileno=3Dd_ino -I$(RINCLUDES)
+# LIBS=3D
+# COMPAT=3D
+# RPCOPTS=3D -k -b
=20
 ## A few Linux users have reported success with these
 ## options:
 ## See NOTE TO LINUX USERS above, and also README.linux,
 ## if you can't make things work.
-#CFLAGS=3D$(COPT) -U__OPTIMIZE__ -traditional -Dd_fileno=3Dd_ino -I$(RINCL=
UDES)
-#LIBS=3D
-#COMPAT=3D
-#RPCOPTS=3D -k -b
+# CFLAGS=3D$(COPT) -U__OPTIMIZE__ -traditional -Dd_fileno=3Dd_ino -I$(RINC=
LUDES)
+# LIBS=3D
+# COMPAT=3D
+# RPCOPTS=3D -k -b
=20
 ## Users of older versions Linux (Slackware 1.1.2) may be able to
 ## use these options:
 ## See NOTE TO LINUX USERS above, and also README.linux,
 ## if you can't make things work.
-#CFLAGS=3D$(COPT) -I$(RINCLUDES)
-#LIBS=3D
-#COMPAT=3D
-#RPCOPTS=3D
+# CFLAGS=3D$(COPT) -I$(RINCLUDES)
+# LIBS=3D
+# COMPAT=3D
+# RPCOPTS=3D
+
+# Stolen from Debian's 1.3.3 package
+CFLAGS=3D$(COPT) -U__OPTIMIZE__ -Dd_fileno=3Dd_ino=20
+LIBS=3D
+COMPAT=3D
+RPCOPTS=3D
=20
 ## Irix 4.0 -- markh@wimsey.bc.ca
 ## Be sure to read README.irix
@@ -222,7 +228,7 @@
 # (3/3) CONFIGURE: one last thing
 #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 # finally, comment out the next line:
-CC=3Dyou_forgot_to_edit_the_makefile
+# CC=3Dyou_forgot_to_edit_the_makefile
=20
 # now you're done with local configuration.
=20
diff -uNr cfs-1.4.0beta2.orig/cfs_adm.c cfs-1.4.0beta2/cfs_adm.c
--- cfs-1.4.0beta2.orig/cfs_adm.c	Mon Dec 25 04:41:30 1995
+++ cfs-1.4.0beta2/cfs_adm.c	Mon Apr 23 23:05:38 2001
@@ -36,14 +36,12 @@
 }
=20
 void *
-admproc_null_2()
+admproc_null_2_svc(void *a, struct svc_req *r)
 {
 }
=20
 cfsstat *
-admproc_attach_2(ap,rp)
-     cfs_attachargs *ap;
-     SR *rp;
+admproc_attach_2_svc(cfs_attachargs *ap, struct svc_req *rp)
 {
 	static cfsstat ret;
 	int i;
@@ -154,9 +152,7 @@
 }
=20
 cfsstat *
-admproc_detach_2(ap,rp)
-     cfs_detachargs *ap;
-     SR *rp;
+admproc_detach_2_svc(cfs_detachargs *ap, struct svc_req *rp)
 {
 	static cfsstat ret;
 	int i;
diff -uNr cfs-1.4.0beta2.orig/cfs_nfs.c cfs-1.4.0beta2/cfs_nfs.c
--- cfs-1.4.0beta2.orig/cfs_nfs.c	Mon Dec 25 01:24:31 1995
+++ cfs-1.4.0beta2/cfs_nfs.c	Mon Apr 23 23:08:40 2001
@@ -58,9 +58,7 @@
 }
=20
 void *
-nfsproc_null_2(ap,rp)
-     void *ap;
-     SR rp;
+nfsproc_null_2_svc(void *ap, struct svc_req *rp)
 {
 	static int ret=3D0;
 	return ((void*) &ret);
@@ -72,9 +70,7 @@
 readdirres *rootreaddir();
=20
 attrstat *
-nfsproc_getattr_2(ap,rp)
-     nfs_fh *ap;
-     SR rp;
+nfsproc_getattr_2_svc(nfs_fh *ap, struct svc_req *rp)
 {
 	static attrstat ret;
 	int uid;
@@ -118,9 +114,7 @@
 }
=20
 attrstat *
-nfsproc_setattr_2(ap,rp)
-     sattrargs *ap;
-     SR rp;
+nfsproc_setattr_2_svc(sattrargs *ap, struct svc_req *rp)
 {
 	static attrstat ret;
 	int uid;
@@ -168,9 +162,7 @@
 }
=20
 void *
-nfsproc_root_2(ap,rp)
-     void *ap;
-     SR rp;
+nfsproc_root_2_svc(void *ap, struct svc_req *rp)
 {
 	static int ret=3D0;
=20
@@ -179,9 +171,7 @@
=20
 /* fix this to deal w/ fs root (instance root should be ok) */
 diropres *
-nfsproc_lookup_2(ap,rp)
-     diropargs *ap;
-     SR rp;
+nfsproc_lookup_2_svc(diropargs *ap, struct svc_req *rp)
 {
 	static diropres ret;
 	diropres *retp;
@@ -258,9 +248,7 @@
 }
=20
 readlinkres *
-nfsproc_readlink_2(ap,rp)
-     nfs_fh *ap;
-     SR rp;
+nfsproc_readlink_2_svc(nfs_fh *ap, struct svc_req *rp)
 {
 	static readlinkres ret;
 	int uid;
@@ -309,9 +297,7 @@
=20
=20
 readres *
-nfsproc_read_2(ap,rp)
-     readargs *ap;
-     SR rp;
+nfsproc_read_2_svc(readargs *ap, struct svc_req *rp)
 {
 	static readres ret;
 	static char buffer[8192];
@@ -370,9 +356,7 @@
=20
=20
 void *
-nfsproc_writecache_2(ap,rp)
-     void *ap;
-     SR rp;
+nfsproc_writecache_2_svc(void *ap, struct svc_req *rp)
 {
 	static int ret;
=20
@@ -381,9 +365,7 @@
=20
=20
 attrstat *
-nfsproc_write_2(ap,rp)
-     writeargs *ap;
-     SR rp;
+nfsproc_write_2_svc(writeargs *ap, struct svc_req *rp)
 {
 	static attrstat ret;
 	int fd;
@@ -442,9 +424,7 @@
=20
=20
 diropres *
-nfsproc_create_2(ap,rp)
-     createargs *ap;
-     SR rp;
+nfsproc_create_2_svc(createargs *ap, struct svc_req *rp)
 {
 	static diropres ret;
 	static nfs_fh handle;
@@ -545,9 +525,7 @@
=20
=20
 nfsstat *
-nfsproc_remove_2(ap,rp)
-     diropargs *ap;
-     SR rp;
+nfsproc_remove_2_svc(diropargs *ap, struct svc_req *rp)
 {
 	static nfsstat ret;
 	char *s;
@@ -587,9 +565,7 @@
=20
=20
 nfsstat *
-nfsproc_rename_2(ap,rp)
-     renameargs *ap;
-     SR rp;
+nfsproc_rename_2_svc(renameargs *ap, struct svc_req *rp)
 {
 	static nfsstat ret;
 	int uid;
@@ -643,9 +619,7 @@
=20
=20
 nfsstat *
-nfsproc_link_2(ap,rp)
-     linkargs *ap;
-     SR rp;
+nfsproc_link_2_svc(linkargs *ap, struct svc_req *rp)
 {
 	static nfsstat ret;
 	int uid;
@@ -694,9 +668,7 @@
=20
=20
 nfsstat *
-nfsproc_symlink_2(ap,rp)
-     symlinkargs *ap;
-     SR rp;
+nfsproc_symlink_2_svc(symlinkargs *ap, struct svc_req *rp)
 {
 	static nfsstat ret;
 	int uid;
@@ -743,9 +715,7 @@
 }
=20
 diropres *
-nfsproc_mkdir_2(ap,rp)
-     createargs *ap;
-     SR rp;
+nfsproc_mkdir_2_svc(createargs *ap, struct svc_req *rp)
 {
 	static diropres ret;
 	nfs_fh handle;
@@ -817,9 +787,7 @@
=20
=20
 nfsstat *
-nfsproc_rmdir_2(ap,rp)
-     diropargs *ap;
-     SR rp;
+nfsproc_rmdir_2_svc(diropargs *ap, struct svc_req *rp)
 {
 	static nfsstat ret;
 	char *s;
@@ -864,9 +832,7 @@
 /* #define cfsclosedir(x) fhclosedir(x) */
=20
 readdirres *
-nfsproc_readdir_2(ap,rp)
-     readdirargs *ap;
-     SR rp;
+nfsproc_readdir_2_svc(readdirargs *ap, struct svc_req *rp)
 {
 	static readdirres ret;
 	int uid;
@@ -991,9 +957,7 @@
 }
=20
 statfsres *
-nfsproc_statfs_2(ap,rp)
-     nfs_fh *ap;
-     SR rp;
+nfsproc_statfs_2_svc(nfs_fh *ap, struct svc_req *rp)
 {
 	static statfsres ret;
=20
diff -uNr cfs-1.4.0beta2.orig/make_with_bad_rpcgen cfs-1.4.0beta2/make_with=
_bad_rpcgen
--- cfs-1.4.0beta2.orig/make_with_bad_rpcgen	Mon Dec 25 03:09:40 1995
+++ cfs-1.4.0beta2/make_with_bad_rpcgen	Mon Apr 23 22:22:54 2001
@@ -1,7 +1,7 @@
 #!/bin/sh
 # this will make CFS for linux (and other) systems with the
 # wrong version of rpcgen
-make CC=3D"cc -traditional -Dd_fileno=3Dd_ino  \
+make CC=3D"cc -Dd_fileno=3Dd_ino  \
         -Dnfsproc_null_2_svc=3Dnfsproc_null_2     \
         -Dnfsproc_getattr_2_svc=3Dnfsproc_getattr_2       \
         -Dnfsproc_setattr_2_svc=3Dnfsproc_setattr_2       \

--KscVNZbUup0vZz0f--

--1E1Oui4vdubnXi3o
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQCVAwUBO3Gc4SsJJQQiCQ0lAQH5jgP/Z9NJmbXxMibJeFtEm0Gns4CEGCig0WRr
9NM5cf7DKMrgDsmZa/G9ryloJkrobdQStB27iOD7UyUuTrEPorBA4VKxzwNGBl81
Kn0OG4UqN/CxPn8P8+XzbvuCsVA4t6DaghqxO004TVGU7x2rJ2bSr2k5PMd47NTo
gzq8JT1UtkA=
=ZjuL
-----END PGP SIGNATURE-----

--1E1Oui4vdubnXi3o--

home help back first fref pref prev next nref lref last post