[232] in The Cryptographic File System users list

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

Compiling 1.4.0 failed on linux; please help

daemon@ATHENA.MIT.EDU (Pierre Abbat)
Tue Aug 7 13:55:12 2001

From owner-cfs-users@crypto.com Tue Aug 07 17:55:12 2001
Return-Path: <owner-cfs-users@crypto.com>
Delivered-To: cfs-mtg@CHARON.mit.edu
Received: (qmail 25948 invoked from network); 7 Aug 2001 17:55:11 -0000
Received: from mx.crypto.com (207.140.168.138)
  by charon.mit.edu with SMTP; 7 Aug 2001 17:55:11 -0000
Received: (from majordomo@localhost)
	by MultiHostMXServer (8.9.3/8.9.x4) id NAA07752
	for cfs-users-list; Tue, 7 Aug 2001 13:43:19 -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 NAA28369
	for <cfs-users@crypto.com>; Tue, 7 Aug 2001 13:43:16 -0400 (EDT)
Received: from mail-green.research.att.com (mail-green.research.att.com [135.207.30.103]) by nsa.research.att.com (8.7.3/8.7.3) with ESMTP id NAA16332 for <cfs-users@nsa.research.att.com>; Tue, 7 Aug 2001 13:43:14 -0400 (EDT)
Received: by mail-green.research.att.com (Postfix)
	id CEBD61E050; Tue,  7 Aug 2001 13:43:15 -0400 (EDT)
Delivered-To: cfs-users@research.att.com
Received: from neofelis.ixazon.lan (unknown [216.189.29.105])
	by mail-green.research.att.com (Postfix) with ESMTP id A14B71E023
	for <cfs-users@research.att.com>; Tue,  7 Aug 2001 13:41:00 -0400 (EDT)
Received: by neofelis.ixazon.lan (Postfix, from userid 500)
	id F055A3C53F; Tue,  7 Aug 2001 11:33:05 -0400 (EDT)
From: Pierre Abbat <phma@oltronics.net>
Reply-To: phma@oltronics.net
To: cfs-users@research.att.com
Subject: Compiling 1.4.0 failed on linux; please help
Date: Tue, 7 Aug 2001 11:25:51 -0400
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
MIME-Version: 1.0
Message-Id: <01080711330506.01223@neofelis>
Content-Transfer-Encoding: 8bit
Sender: owner-cfs-users@crypto.com
Precedence: bulk

I am upgrading to Mandrake 8.0 and found that cfs 1.3.3 doesn't work, so I
downloaded 1.4.0 and am trying to compile it. I did it all three ways and got
the following errors:

rpcgen -k -b -h -o nfsproto.h nfsproto.x
rpcgen -k -b -h -o admproto.h admproto.x
gcc -O2 -DPROTOTYPES=1 -U__STDC__ -Dd_fileno=d_ino -I/usr/mab/rsaref/source   -c cfs.c -o cfs.o
*undef*:1: warning: undefining `__STDC__'
In file included from /usr/include/sys/un.h:24,
                 from /usr/include/rpc/clnt.h:44,
                 from /usr/include/rpc/rpc.h:51,
                 from cfs.c:34:
/usr/include/string.h:38: warning: conflicting types for built-in function `memcpy'
/usr/include/string.h:54: warning: conflicting types for built-in function `memset'
/usr/include/string.h:58: warning: conflicting types for built-in function `memcmp'
cfs.c: In function `main':
cfs.c:189: warning: passing arg 4 of `svc_register' from incompatible pointer type
cfs.c:195: warning: passing arg 4 of `svc_register' from incompatible pointer type
rpcgen -k -b -c -o nfsproto_xdr.c nfsproto.x 
gcc -O2 -DPROTOTYPES=1 -U__STDC__ -Dd_fileno=d_ino -I/usr/mab/rsaref/source   -c nfsproto_xdr.c -o nfsproto_xdr.o
*undef*:1: warning: undefining `__STDC__'
In file included from /usr/include/sys/un.h:24,
                 from /usr/include/rpc/clnt.h:44,
                 from /usr/include/rpc/rpc.h:51,
                 from nfsproto.h:9,
                 from nfsproto_xdr.c:6:
/usr/include/string.h:38: warning: conflicting types for built-in function `memcpy'
/usr/include/string.h:54: warning: conflicting types for built-in function `memset'
/usr/include/string.h:58: warning: conflicting types for built-in function `memcmp'
rpcgen -k -b -m -o nfsproto_svr.c nfsproto.x 
gcc -O2 -DPROTOTYPES=1 -U__STDC__ -Dd_fileno=d_ino -I/usr/mab/rsaref/source   -c nfsproto_svr.c -o nfsproto_svr.o
*undef*:1: warning: undefining `__STDC__'
In file included from /usr/include/sys/un.h:24,
                 from /usr/include/rpc/clnt.h:44,
                 from /usr/include/rpc/rpc.h:51,
                 from nfsproto.h:9,
                 from nfsproto_svr.c:6:
/usr/include/string.h:38: warning: conflicting types for built-in function `memcpy'
/usr/include/string.h:54: warning: conflicting types for built-in function `memset'
/usr/include/string.h:58: warning: conflicting types for built-in function `memcmp'
nfsproto_svr.c: In function `nfs_program_2':
nfsproto_svr.c:41: `_xdr_argument' undeclared (first use in this function)
nfsproto_svr.c:41: (Each undeclared identifier is reported only once
nfsproto_svr.c:41: for each function it appears in.)
nfsproto_svr.c:42: `_xdr_result' undeclared (first use in this function)
nfsproto_svr.c:153: warning: passing arg 3 of pointer to function from incompatible pointer type
nfsproto_svr.c:161: warning: passing arg 3 of pointer to function from incompatible pointer type
make: *** [nfsproto_svr.o] Error 1

rpcgen -k -b -h -o nfsproto.h nfsproto.x
rpcgen -k -b -h -o admproto.h admproto.x
gcc -O2 -DPROTOTYPES=1 -U__OPTIMIZE__ -traditional -Dd_fileno=d_ino -I/usr/mab/rsaref/source   -c cfs.c -o cfs.o
In file included from /usr/include/sys/socket.h:34,
                 from cfs.c:30:
/usr/include/bits/socket.h:289: macro or `#include' recursion too deep
/usr/include/bits/socket.h:290: macro or `#include' recursion too deep
/usr/include/bits/socket.h:291: macro or `#include' recursion too deep
In file included from /usr/include/rpc/rpc.h:48,
                 from cfs.c:34:
/usr/include/rpc/auth.h:188: macro or `#include' recursion too deep
/usr/include/rpc/auth.h:190: macro or `#include' recursion too deep
/usr/include/rpc/auth.h:190: macro or `#include' recursion too deep
/usr/include/rpc/auth.h:190: macro or `#include' recursion too deep
In file included from /usr/include/rpc/rpc.h:56,
                 from cfs.c:34:
/usr/include/rpc/auth_des.h:91: macro or `#include' recursion too deep
/usr/include/rpc/auth_des.h:91: macro or `#include' recursion too deep
/usr/include/rpc/auth_des.h:91: macro or `#include' recursion too deep
cfs.c:170: macro or `#include' recursion too deep
cfs.c:250: macro or `#include' recursion too deep
make: *** [cfs.o] Error 1

rpcgen  -h -o nfsproto.h nfsproto.x
rpcgen  -h -o admproto.h admproto.x
gcc -O2 -DPROTOTYPES=1 -I/usr/mab/rsaref/source   -c cfs.c -o cfs.o
cfs.c: In function `main':
cfs.c:189: warning: passing arg 4 of `svc_register' from incompatible pointer type
cfs.c:195: warning: passing arg 4 of `svc_register' from incompatible pointer type
rpcgen  -c -o nfsproto_xdr.c nfsproto.x 
gcc -O2 -DPROTOTYPES=1 -I/usr/mab/rsaref/source   -c nfsproto_xdr.c -o nfsproto_xdr.o
rpcgen  -m -o nfsproto_svr.c nfsproto.x 
gcc -O2 -DPROTOTYPES=1 -I/usr/mab/rsaref/source   -c nfsproto_svr.c -o nfsproto_svr.o
rpcgen  -c -o admproto_xdr.c admproto.x 
gcc -O2 -DPROTOTYPES=1 -I/usr/mab/rsaref/source   -c admproto_xdr.c -o admproto_xdr.o
rpcgen  -m -o admproto_svr.c admproto.x 
gcc -O2 -DPROTOTYPES=1 -I/usr/mab/rsaref/source   -c admproto_svr.c -o admproto_svr.o
gcc -O2 -DPROTOTYPES=1 -I/usr/mab/rsaref/source   -c cfs_adm.c -o cfs_adm.o
cfs_adm.c: In function `admproc_null_2':
cfs_adm.c:40: number of arguments doesn't match prototype
admproto.h:128: prototype declaration
cfs_adm.c: In function `admproc_attach_2':
cfs_adm.c:47: argument `rp' doesn't match prototype
admproto.h:131: prototype declaration
cfs_adm.c: In function `admproc_detach_2':
cfs_adm.c:160: argument `rp' doesn't match prototype
admproto.h:134: prototype declaration
make: *** [cfs_adm.o] Error 1

What am I doing wrong?

phma

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