Hi,<div>I have kernel version 2.6.18-8.el5 on rhel5.</div><div><br></div><div>Downloaded cluster source as follows:</div><div><br></div><div>1.git clone git://<a href="http://sources.redhat.com/git/cluster.git">sources.redhat.com/git/cluster.git</a> <br>
</div><div>3. cd cluster</div><div>2. git checkout -b RHEL5 origin/RHEL5</div><div><br></div><div><br></div><div><div><div>./configure --kernel_src=/usr/src/kernels/2.6.18-8.el5-i686/</div><div><br></div><div><br></div><div>
Now running make command giving me error. </div><div><br></div><div><div>gcc -L../../cman/lib -L../../dlm/lib -L//usr/lib/openais -o dlm_controld main.o member_cman.o group.o action.o deadlock.o ../lib/libgroup.a ../../ccs/lib/libccs.a -lcman -ldlm -lcpg -lSaCkpt</div>
<div>/usr/bin/ld: cannot find -ldlm</div><div>collect2: ld returned 1 exit status</div><div>make[2]: *** [dlm_controld] Error 1</div><div>make[2]: Leaving directory `/usr/local/cluster/group/dlm_controld'</div><div>make[1]: *** [all] Error 2</div>
<div>make[1]: Leaving directory `/usr/local/cluster/group'</div><div>make: *** [all] Error 2</div><div><br></div></div><div><br></div><div>I did cd into dlm directory and:</div><div><br></div><div><div>[root@localhost dlm]# ./configure --kernel_src=/usr/src/kernels/2.6.18-8.el5-i686/</div>
<div><br></div><div>Configuring Makefiles for your system...</div><div>Completed Makefile configuration</div><div><br></div><div><br></div><div>Now make command giving me error as follows:</div><div><br></div><div><div>[root@localhost dlm]# make </div>
<div>make -C lib all</div><div>make[1]: Entering directory `/usr/local/cluster/dlm/lib'</div><div>gcc -Wall  -g -I. -O2  -D_REENTRANT -c -o libdlm.o libdlm.c</div><div>libdlm.c: In function 'set_version_v5':</div><div>
libdlm.c:324: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:325: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:326: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c: In function 'set_version_v6':</div><div>libdlm.c:335: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:336: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c:337: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c: In function 'detect_kernel_version':</div><div>libdlm.c:443: error: storage size of 'v' isn't known</div><div>libdlm.c:446: error: invalid application of 'sizeof' to incomplete type 'struct dlm_device_version' </div>
<div>libdlm.c:448: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:449: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:450: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c:452: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:453: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:454: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c:443: warning: unused variable 'v'</div><div>libdlm.c: In function 'do_dlm_dispatch':</div><div>libdlm.c:590: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c: In function 'ls_lock_v6':</div>
<div>libdlm.c:835: error: 'struct dlm_lock_params' has no member named 'xid'</div><div>libdlm.c:837: error: 'struct dlm_lock_params' has no member named 'timeout'</div><div>libdlm.c: In function 'ls_lock':</div><div>libdlm.c:897: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c: In function 'dlm_ls_lockx':</div><div>libdlm.c:921: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c: In function 'dlm_ls_unlock':</div><div>libdlm.c:1073: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c: In function 'dlm_ls_deadlock_cancel':</div><div>libdlm.c:1105: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:1121: error: 'DLM_USER_DEADLOCK' undeclared (first use in this function)</div>
<div>libdlm.c:1121: error: (Each undeclared identifier is reported only once</div><div>libdlm.c:1121: error: for each function it appears in.)</div><div>libdlm.c: In function 'dlm_ls_purge':</div><div>libdlm.c:1140: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c:1151: error: 'DLM_USER_PURGE' undeclared (first use in this function)</div><div>libdlm.c:1152: error: 'union <anonymous>' has no member named 'purge'</div><div>libdlm.c:1153: error: 'union <anonymous>' has no member named 'purge'</div>
<div>libdlm.c: In function 'create_lockspace':</div><div>libdlm.c:1317: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c: In function 'release_lockspace':</div><div>libdlm.c:1423: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c: In function 'dlm_kernel_version':</div><div>libdlm.c:1509: error: invalid use of undefined type 'struct dlm_device_version'</div><div>libdlm.c:1510: error: invalid use of undefined type 'struct dlm_device_version'</div>
<div>libdlm.c:1511: error: invalid use of undefined type 'struct dlm_device_version'</div><div>make[1]: *** [libdlm.o] Error 1</div><div>make[1]: Leaving directory `/usr/local/cluster/dlm/lib'</div><div>make: *** [all] Error 2</div>
<div><br></div><div><br></div><div>how to resolve this error? </div><div><br></div><div><br></div><div>Thanks and Regards</div><div>Anuj </div></div><div><br></div><div><br></div></div><div><br></div><div><br></div><div><br>
</div></div></div>