On Thu, Sep 01, 2005 at 06:47:08PM -0500, Guochun Shi wrote: > I tried to compile the CVS head with kernel_src=2.6.13-mm1 > > CC [M] /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.o > /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.c: In function > `make_flags': > /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.c:123: error: > `DLM_LKF_NOORDER' undeclared (first use in this function) > /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.c:123: error: > (Each undeclared identifier is reported only once > /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.c:123: error: > for each function it appears in.) > /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.c:124: error: > `DLM_LKF_HEADQUE' undeclared (first use in this function) > /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.c:129: error: > `DLM_LKF_ALTCW' undeclared (first use in this function) > /home/gshi/gfs/gfs-cvs/cluster/gfs-kernel/src/dlm/lock.c:131: error: > `DLM_LKF_ALTPR' undeclared (first use in this function) > > What I do is ./configure kernel_src=<kernel src path>; make It works for me, could you send the whole output of the make like below? Dave [gfs-kernel/src/dlm]% make if [ ! -e linux ]; then ln -s . linux; fi if [ ! -e lm_interface.h ]; then ln -s ../../src/harness/lm_interface.h .; fi if [ ! -e dlm.h ]; then cp ../../../dlm-kernel/src2/dlm.h .; fi make -C /opt/kernels/linux-2.6.13-mm1-build/ M=/opt/tmp/cluster-HEAD/gfs-kernel/src/dlm modules USING_KBUILD=yes make[1]: Entering directory `/opt/kernels/linux-2.6.13-mm1-build' CC [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/lock.o CC [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/main.o CC [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/mount.o CC [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/thread.o CC [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/sysfs.o CC [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/plock.o LD [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/lock_dlm.o Building modules, stage 2. MODPOST CC /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/lock_dlm.mod.o LD [M] /opt/tmp/cluster-HEAD/gfs-kernel/src/dlm/lock_dlm.ko make[1]: Leaving directory `/opt/kernels/linux-2.6.13-mm1-build' -- Linux-cluster@xxxxxxxxxx http://www.redhat.com/mailman/listinfo/linux-cluster