(Illustration by Gaich Muramatsu)
To get Coda to compile I needed to hack the Makefiles. I've included diffs below. It's possible that the development system expects build-time implicit library recursion, and binutils-2.11 doesn't provide that. Also it would be helpful to export LD_RUN_PATH=$(LIBDIR) (or the appropriate variable for each Makefile) or put it in the local environment of each build operation, so if the libraries are put in an isolated place (as I did), the executables can find them. This works on Solaris and Linux (binutils). I didn't include that change in the diffs. James F. Carter Voice 310 825 2897 FAX 310 206 6673 UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555 Email: [email protected] http://www.math.ucla.edu/~jimc (q.v. for PGP key) --- ./coda-src/al/Makefile.in.orig Thu May 9 20:48:09 2002 +++ ./coda-src/al/Makefile.in Thu May 9 20:49:25 2002 @@ -45,7 +45,7 @@ HFILES = al.h prs.h pdb.h pdbarray.h DEPLIBS = libal.a $(LIBUTIL) $(LIBBASE) -LIBS := $(DEPLIBS) $(LIBDB) $(LIBS) +LIBS := $(DEPLIBS) $(LIBDB) $(LIBRPC2) $(LIBLWP) $(LIBMD5) $(LIBS) include $(MAKDIR)/configs/Makerules --- ./coda-src/auth2/Makefile.in.orig Fri May 25 04:48:01 2001 +++ ./coda-src/auth2/Makefile.in Fri May 10 16:17:59 2002 @@ -76,7 +76,7 @@ RP2HEADERS = auth2.h DEPLIBS = ${LIBAL} ${LIBUTIL} ${LIBKERNDEP} ${LIBAUSER} ${LIBBASE} -LIBS := ${DEPLIBS} ${LIBRPC2} ${LIBLWP} ${LIBS} +LIBS := ${DEPLIBS} ${LIBRPC2} ${LIBLWP} ${LIBMD5} ${LIBS} LIBRARIES = libauth2.a libauser.a HEADERS = avenus.h avice.h --- ./coda-src/dir/Makefile.in.orig Thu May 9 20:47:07 2002 +++ ./coda-src/dir/Makefile.in Thu May 9 18:39:39 2002 @@ -44,7 +44,7 @@ DEPLIBS = libcodadir.a $(LIBUTIL) $(LIBBASE) LIBS := $(DEPLIBS) $(LIBRDS) $(LIBSEG) $(LIBRVMLWP) $(LIBLWP) $(LIBREADLINE) \ - $(LIBTERMCAP) $(LIBS) + $(LIBRPC2) $(LIBMD5) $(LIBTERMCAP) $(LIBS) dirtest: dirtest.o $(DEPLIBS) $(CC) -o dirtest $(LDFLAGS) dirtest.o $(LIBS) --- ./coda-src/egasr/Makefile.in.orig Wed Aug 30 12:33:26 2000 +++ ./coda-src/egasr/Makefile.in Fri May 10 16:47:51 2002 @@ -31,7 +31,7 @@ CSCRIPTS = $(SCRIPTS) DEPLIBS := $(LIBDIRLIB) $(LIBKERNDEP) $(LIBBASE) $(LIBUTIL) -LIBS := $(DEPLIBS) $(LIBS) +LIBS := $(DEPLIBS) $(LIBRPC2) $(LIBLWP) $(LIBMD5) $(LIBS) removeinc: removeinc.o $(DEPLIBS) $(CC) $(LDFLAGS) $^ ${LIBS} -o removeinc --- ./coda-src/partition/Makefile.in.orig Thu May 9 20:50:17 2002 +++ ./coda-src/partition/Makefile.in Thu May 9 20:29:23 2002 @@ -35,7 +35,7 @@ LIBRARIES = libpartition.a DEPLIBS = $(LIBPARTITION) $(LIBUTIL) $(LIBBASE) -LIBS := $(DEPLIBS) $(LIBRDS) $(LIBSEG) $(LIBRVM) $(LIBMATH) $(LIBS) +LIBS := $(DEPLIBS) $(LIBRDS) $(LIBSEG) $(LIBRVM) $(LIBRPC2) $(LIBLWP) $(LIBMD5) $(LIBMATH) $(LIBS) libpartition.a: $(LIBOBS) --- ./configs/Makeconf.linux.orig Wed Sep 20 07:09:24 2000 +++ ./configs/Makeconf.linux Fri May 10 15:35:25 2002 @@ -1,2 +1,2 @@ -KRBINCLFLAGS = -I/usr/include/kerberosIV -LIBKRBS = -lkrb5 -lcrypto -lcom_err -lkrb4 +KRBINCLFLAGS = -I/usr/include/heimdal +LIBKRBS = -L/usr/lib/heimdal/lib -lkrb5 -lkrb4 -lcrypto -lcom_err --- ./configs/coda_macros.m4.orig Thu Feb 14 14:47:55 2002 +++ ./configs/coda_macros.m4 Fri May 10 16:37:39 2002 @@ -221,7 +221,7 @@ [ --with-$1=<prefix> Install prefix of $1], [ pfx="`(cd ${withval} ; pwd)`" CFLAGS="${CFLAGS} -I${pfx}/include" - CXXFLAGS="${CXXFLAGS} -I{pfx}/include" + CXXFLAGS="${CXXFLAGS} -I${pfx}/include" LDFLAGS="${LDFLAGS} -L${pfx}/lib" PATH="${PATH}:${pfx}/bin:${pfx}/sbin"]) ]) --- ./configure.orig Tue Mar 12 12:25:53 2002 +++ ./configure Fri May 10 16:36:45 2002 @@ -753,7 +753,7 @@ withval="$with_lwp" pfx="`(cd ${withval} ; pwd)`" CFLAGS="${CFLAGS} -I${pfx}/include" - CXXFLAGS="${CXXFLAGS} -I{pfx}/include" + CXXFLAGS="${CXXFLAGS} -I${pfx}/include" LDFLAGS="${LDFLAGS} -L${pfx}/lib" PATH="${PATH}:${pfx}/bin:${pfx}/sbin" fi @@ -764,7 +764,7 @@ withval="$with_rvm" pfx="`(cd ${withval} ; pwd)`" CFLAGS="${CFLAGS} -I${pfx}/include" - CXXFLAGS="${CXXFLAGS} -I{pfx}/include" + CXXFLAGS="${CXXFLAGS} -I${pfx}/include" LDFLAGS="${LDFLAGS} -L${pfx}/lib" PATH="${PATH}:${pfx}/bin:${pfx}/sbin" fi @@ -775,7 +775,7 @@ withval="$with_rpc2" pfx="`(cd ${withval} ; pwd)`" CFLAGS="${CFLAGS} -I${pfx}/include" - CXXFLAGS="${CXXFLAGS} -I{pfx}/include" + CXXFLAGS="${CXXFLAGS} -I${pfx}/include" LDFLAGS="${LDFLAGS} -L${pfx}/lib" PATH="${PATH}:${pfx}/bin:${pfx}/sbin" fiReceived on 2002-05-12 19:22:43