David, It works for me now. It turns out that there is an old copy of dlm.h in cluster/gfs-kernel/src/dlm. After I deleted it, it compiles fine. BTW, I need to add -lpthread ccs_tool/Makefile to make it compile, I have seen other people have the same problem in the mailing list. Index: Makefile =================================================================== RCS file: /cvs/cluster/cluster/ccs/ccs_tool/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- Makefile 19 May 2005 19:50:55 -0000 1.7 +++ Makefile 2 Sep 2005 17:37:55 -0000 @@ -25,7 +25,7 @@ `xml2-config --cflags` -DCCS_RELEASE_NAME=\"${RELEASE}\" endif -LDFLAGS+= -L${ccs_libdir} `xml2-config --libs` -L${magmalibdir} -L${libdir} +LDFLAGS+= -L${ccs_libdir} `xml2-config --libs` -L${magmalibdir} -L${libdir} -lpthread LOADLIBES+= -lccs -lmagma -lmagmamsg -ldl -Guochun At 01:15 PM 9/2/2005 +0800, you wrote: >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