[OpenAFS-devel] DU64 5.0A: Kernel Build: Multiply defined: xdr_uint64, xdr_int64

Johan Danielsson joda+openafs@pdc.kth.se
29 Aug 2001 17:20:06 +0200


Derrick J Brashear <shadow@dementia.org> writes:

> If you can provide updated text for the unix quick start guide, that would
> be appreciated; Even a suggestion of how to update it.

Something like:

        Copy afs.mod to /subsys.
        Either load the module at system startup by:
                "/sbin/init.d/autosysconfig add afs"
        or load it at some other time with
                "sysconfig -c afs"

        The latter will not work if there is a mfs filesystem mounted,
        since it locks the mount-table [or is this fixed in newer
        releases?]

        Start afsd as usual.

--- MakefileProto.DUX.in	2001/08/02 15:46:12	1.4
+++ MakefileProto.DUX.in	2001/08/29 15:13:12
@@ -75,28 +75,36 @@
 # Below this line are targets when in the COMMON directory:
 LIBAFS = libafs.o
 LIBAFSNONFS = libafs.nonfs.o
+AFSMOD = afs.mod
 
 DEST_LIBAFS = ${DESTDIR}/root.client/bin/${LIBAFS}
 DEST_LIBAFSNONFS = ${DESTDIR}/root.client/bin/${LIBAFSNONFS}
+DEST_AFSMOD = ${DESTDIR}/root.client/bin/${AFSMOD}
 
 
-# libafs:	$(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
+# libafs:	${DEST_LIBAFS} ${DEST_LIBAFSNONFS} ${DESTAFSMOD}
 
 .PHONY: libafs
 libafs:	$(DEST_LIBAFSNONFS)
 
 
-$(DEST_LIBAFS): $(LIBAFS)
+${DEST_LIBAFS}: ${LIBAFS}
 	$(INSTALL) -f $? $@
 
-$(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
+${DEST_LIBAFSNONFS}: ${LIBAFSNONFS}
 	$(INSTALL) -f $? $@
 
+${DEST_LIBAFSNONFS}: ${LIBAFSNONFS}
+	$(INSTALL) -f $? $@
+
 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
 	$(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
 
 ${LIBAFSNONFS}:  $(AFSAOBJS) $(AFSNONFSOBJS)
 	$(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}
+
+${AFSMOD}: ${LIBAFSNONFS}
+	$(LD) -dc -r -o ${AFSMOD} ${LIBAFSNONFS}
 
 
 # Object build rules: