[ please CC: me on replies, not subscribed ]

Platform: SunOS psi 5.8 Generic_108528-08 sun4u sparc SUNW,Ultra-5_10

In OpenAFS 1.1.0, kdump gets built as a 32-bit executable on a 64-bit
machine. Since kdump uses kvm_open() it needs to be a 64-bit executable.

Here is a patch that fixes the Makefile for Solaris 8. It also fixes the
"clean" target to include kdump and kdump64 (whcih effects all targets,
not just Solaris 8).

-James Flemer <[EMAIL PROTECTED]>
--- openafs-1.1.0/src/venus/Makefile.orig       Wed Jul 11 22:17:40 2001
+++ openafs-1.1.0/src/venus/Makefile    Mon Aug  6 13:03:51 2001
@@ -84,7 +84,7 @@
                for f in kdump.IP??; \
                do ${INSTALL} -s $$f ${DESTDIR}etc/$$f || exit $$? ; \
                done ;; \
-       sun4x_57 ) \
+       sun4x_5[78] ) \
                ${INSTALLex} -f kdump.sh.solaris7 $@; \
                ${INSTALL} -s -f $? ${DESTDIR}etc/kdump32;; \
        *linux* ) \
@@ -101,7 +101,7 @@
 ${DESTDIR}etc/kdump64: kdump64
        -set -x; \
        case ${SYS_NAME} in \
-       sun4x_57 | hp_ux11* ) \
+       sun4x_5[78] | hp_ux11* ) \
                ${INSTALL} -s $? $@ ;;\
        * ) \
                echo skipping kdump64 for ${SYS_NAME} ;; \
@@ -204,7 +204,7 @@
 kdump64.o : kdump.c ${INCLS} AFS_component_version_number.c
        -set -x; \
        case ${SYS_NAME} in \
-       sun4x_57 | hp_ux11* ) \
+       sun4x_5[78] | hp_ux11* ) \
                ${CC} -g -I${DESTDIR}include -I${TOP_SRCDIR}/config -I${SRCDIR}include 
${XCFLAGS64} -o kdump64.o -c kdump.c ;; \
        esac
 
@@ -249,12 +249,12 @@
 kdump64 : kdump64.o
        -set -x; \
        case ${SYS_NAME} in \
-       sun4x_57 | hp_ux11* )  \
+       sun4x_5[78] | hp_ux11* )  \
                ${CC} -g ${XCFLAGS64} -o kdump64 kdump64.o 
${DESTDIR}lib/afs/libcmd64.a ${XLIBELFA}  ${XLIBKVM} ${XLIBS} ;; \
        esac
 
 clean:
-       rm -f *.o *.a up fs core cmdebug AFS_component_version_number.c fstrace gcpags
+       rm -f *.o *.a up fs core cmdebug AFS_component_version_number.c fstrace gcpags 
+kdump kdump64
 
 beancount:
        wc -l *.c *.h

Reply via email to