I'm new to linux-clusters, and had some troubles building the RHEL branch of cluster. I tried it on a clean RHEL4(u3) with everything up2date'd (kernel and apps – kernel is 2.6.9-42ELsmp).
The problem seems to me like a simple directory problem – It looks like the make assumes that /usr/include/cluster/ exists, and that libccs is in /usr/lib. I enclose the patches I made to the Makefiles and the initial error that started me changing them.
I now pass 'make' and 'make install'. I'll keep on working on that, but wanted some feedback, in case I'm missing something.
Thanks,
Efri Nattel-Shay
===================================================================
RCS file: /cvs/cluster/cluster/cman/lib/Makefile,v
retrieving revision 1.1
diff -r1.1 Makefile
31,32c31,32
< echo '-I${KERNEL_SRC}/include/cluster'; else \
< echo '-I${incdir}/cluster'; fi)
---
> echo '-I${KERNEL_SRC}/include'; else \
> echo '-I${incdir}'; fi)
34c34
< CFLAGS += -I${incdir}/cluster
---
> CFLAGS += -I${incdir}
===================================================================
RCS file: /cvs/cluster/cluster/cman/qdisk/Makefile,v
retrieving revision 1.1.2.2
diff -r1.1.2.2 Makefile
35c35
< gcc -o $@ $^ -lpthread -L../lib -lccs
---
> gcc -o $@ $^ -lpthread -L../lib -L${libdir} -lccs
===================================================================
RCS file: /cvs/cluster/cluster/gfs-kernel/src/gfs/Makefile,v
retrieving revision 1.6.2.4
diff -r1.6.2.4 Makefile
69c69
< EXTRA_CFLAGS += -I$(obj) -I/usr/include
---
> EXTRA_CFLAGS += -I$(obj) -I/usr/include -I${incdir}
# make
...
make[3]: Entering directory `/root/GFS-RHEL4/cluster/gfs-kernel/src/gfs'
rm -f linux lm_interface.h
ln -s . linux
ln -s ../../src/harness/lm_interface.h .
make -C /usr/src/kernels/2.6.9-42.EL-smp-i686 M=/root/GFS-RHEL4/cluster/gfs-kernel/src/gfs symverfile=/root/GFS-RHEL4/cluster/gfs-kernel/src/gfs/../gulm/lock_gulm.symvers modules USING_KBUILD=yes
make[4]: Entering directory `/usr/src/kernels/2.6.9-42.EL-smp-i686'
...
CC [M] /root/GFS-RHEL4/cluster/gfs-kernel/src/gfs/ops_inode.o
/root/GFS-RHEL4/cluster/gfs-kernel/src/gfs/ops_inode.c:27:28: cluster/cnxman.h: No such file or directory
/root/GFS-RHEL4/cluster/gfs-kernel/src/gfs/ops_inode.c: In function `get_my_nodeid':
/root/GFS-RHEL4/cluster/gfs-kernel/src/gfs/ops_inode.c:136: error: dereferencing pointer to incomplete type
...
-- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster