Coda File System

rpc2 build failure with bsd make

From: Greg Troxel <gdt_at_ir.bbn.com>
Date: Tue, 24 Feb 2004 11:21:18 -0500
The problem is in fail, and it seems that the 'run rp2gen to make
fcon.h from fcon.rpc2' rule is not getting picked up (since 'make
fcon.h' does nothing) or run (since 'make ft.h' says that it doesn't
know how to make ft.h).

I don't have any bright ideas of how to make this work with bmake, so
noting in INSTALL that one needs gmake is probably the best bet.

Patch to update INSTALL, also noting that GNU readline is needed for filcon:

Index: INSTALL
===================================================================
RCS file: /coda-src/rpc2/INSTALL,v
retrieving revision 1.2
diff -u -r1.2 INSTALL
--- a/INSTALL	12 Oct 2000 11:44:59 -0000	1.2
+++ b/INSTALL	24 Feb 2004 16:19:54 -0000
@@ -11,7 +11,9 @@
 
 You need to have automake, autoconf, and libtool installed on your system in
 order to set up the build environment. Known versions that work are automake
-1.4, autoconf 2.13, and libtool 1.2f.
+1.8, autoconf 2.59, and libtool 1.5.2.  GNU Make is required to build
+rpc2 (in particular, the rules for running rp2gen in fail/); 3.80 is
+known to work.
 
     $ cvs -d':pserver:anonymous_at_coda.cs.cmu.edu:/coda-src' login
     Password: <return>
@@ -22,6 +24,11 @@
 From here the everything is identical to (but possibly more up-to-date than)
 using the tarball from the Coda ftp site.
 
+Prerequisites
+-------------
+
+While RPC2 does not need GNU readline, if readline is present the
+'filcon' program will be built.
 
 Configuring
 -----------










/usr/home/gdt/SOFTWARE/CODA/rpc2/fail > make
source='filtutil.c' object='filtutil.lo' libtool=yes  depfile='.deps/filtutil.Plo' tmpdepfile='.deps/filtutil.TPlo'  depmode=gcc /usr/pkg/bin/bash ../depcomp  /usr/pkg/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I../include -I../include     -I/usr/local/coda/include -I/usr/local/coda/include -g -O2 -c -o filtutil.lo filtutil.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I/usr/local/coda/include -I/usr/local/coda/include -g -O2 -c filtutil.c -Wp,-MD,.deps/filtutil.TPlo  -fPIC -DPIC -o .libs/filtutil.o
In file included from filtutil.h:21,
                 from filtutil.c:27:
fail.h:30: fcon.h: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/home/gdt/SOFTWARE/CODA/rpc2/fail
Received on 2004-02-24 11:23:07