[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Linux-cluster] Compile problems with 2.6.9 source tarballs



Hi there,

today i have been trying to get linux-cluster up and running on a debian 
sarge box (installed today via debian-installer rc3). 

Therefor i downloaded the tarballs from

    http://people.redhat.com/cfeist/cluster/tgz/

and ran all the .patch files against a vanilla 2.6.9 kernel. The patched 
kernel compiled fine.

I was about to compile & install the additional tools, daemons, and 
modules when i encountered several errors. For example cman-kernel
(although i just noticed that this builds the module i already 
built inside the kernel tree) gave me

1. cd /usr/local/src/linux-cluster/cman-kernel-2.6.9-31
2. ./configure --kernel_src=/usr/src/linux (link to linux-2.6.9)
3. make (results beneath)

<compile_attempt>

sarge-fc1:/usr/local/src/linux-cluster/cman-kernel-2.6.9-31# make
cd src && make all
make[1]: Entering directory
`/usr/local/src/linux-cluster/cman-kernel-2.6.9-31/src'
rm -f cluster
ln -s . cluster
make -C /usr/src/linux
M=/usr/local/src/linux-cluster/cman-kernel-2.6.9-31/src modules
USING_KBUILD=yes
make[2]: Entering directory `/usr/src/linux-2.6.9'
  CC [M]  /usr/local/src/linux-cluster/cman-kernel-2.6.9-31/src/cnxman.o
  /usr/local/src/linux-cluster/cman-kernel-2.6.9-31/src/cnxman.c: In
  Funktion Ā»check_for_unacked_nodesĀ«:
  /usr/local/src/linux-cluster/cman-kernel-2.6.9-31/src/cnxman.c:478:
  error: `CLUSTER_LEAVEFLAG_NORESPONSE' undeclared (first use in this
  function)
  ....

</compile_attempt>

I noticed that /usr/src/linux/include/cluster/cnxman-socket.h differed from 
the header file beneath the cman-kernel src dir (the above #define was
missing), copied this over to the kernel include dir and that fixed 
the problem. 

Nevertheless i also get errors when trying to compile the other components.  
For example the make process for cman complains about not finding ccs.h
(which naturally exists within the ccs directory but somehow isn't
referenced the right way...)

<compile_attempt>

sarge-fc1:/usr/local/src/linux-cluster/cman-1.0-pre32# make
cd cman_tool && make all
make[1]: Entering directory
`/usr/local/src/linux-cluster/cman-1.0-pre32/cman_tool'
gcc -Wall  -g -I//usr/include -I../config
-DCMAN_RELEASE_NAME=\"1.0-pre32\" -I/usr/src/linux/include/cluster -c -o
join_ccs.o join_ccs.c
join_ccs.c:21:17: ccs.h: Datei oder Verzeichnis nicht gefunden

...

</compile_attempt>

I get the slight feeling that i am missing something genereal regarding 
the build process for the linux-cluster package. Can anyone point me in 
the right direction?

Regards,

Sebastian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]