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

[Linux-cluster] cluster make fail on RHEL5 "libdlm.c:324: error: "



Hi,
I have kernel version 2.6.18-8.el5 on rhel5.

Downloaded cluster source as follows:

1.git clone git://sources.redhat.com/git/cluster.git 
3. cd cluster
2. git checkout -b RHEL5 origin/RHEL5


./configure --kernel_src=/usr/src/kernels/2.6.18-8.el5-i686/


Now running make command giving me error. 

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
/usr/bin/ld: cannot find -ldlm
collect2: ld returned 1 exit status
make[2]: *** [dlm_controld] Error 1
make[2]: Leaving directory `/usr/local/cluster/group/dlm_controld'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/cluster/group'
make: *** [all] Error 2


I did cd into dlm directory and:

[root localhost dlm]# ./configure --kernel_src=/usr/src/kernels/2.6.18-8.el5-i686/

Configuring Makefiles for your system...
Completed Makefile configuration


Now make command giving me error as follows:

[root localhost dlm]# make 
make -C lib all
make[1]: Entering directory `/usr/local/cluster/dlm/lib'
gcc -Wall  -g -I. -O2  -D_REENTRANT -c -o libdlm.o libdlm.c
libdlm.c: In function 'set_version_v5':
libdlm.c:324: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:325: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:326: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'set_version_v6':
libdlm.c:335: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:336: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:337: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'detect_kernel_version':
libdlm.c:443: error: storage size of 'v' isn't known
libdlm.c:446: error: invalid application of 'sizeof' to incomplete type 'struct dlm_device_version' 
libdlm.c:448: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:449: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:450: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:452: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:453: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:454: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:443: warning: unused variable 'v'
libdlm.c: In function 'do_dlm_dispatch':
libdlm.c:590: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'ls_lock_v6':
libdlm.c:835: error: 'struct dlm_lock_params' has no member named 'xid'
libdlm.c:837: error: 'struct dlm_lock_params' has no member named 'timeout'
libdlm.c: In function 'ls_lock':
libdlm.c:897: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_ls_lockx':
libdlm.c:921: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_ls_unlock':
libdlm.c:1073: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_ls_deadlock_cancel':
libdlm.c:1105: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:1121: error: 'DLM_USER_DEADLOCK' undeclared (first use in this function)
libdlm.c:1121: error: (Each undeclared identifier is reported only once
libdlm.c:1121: error: for each function it appears in.)
libdlm.c: In function 'dlm_ls_purge':
libdlm.c:1140: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:1151: error: 'DLM_USER_PURGE' undeclared (first use in this function)
libdlm.c:1152: error: 'union <anonymous>' has no member named 'purge'
libdlm.c:1153: error: 'union <anonymous>' has no member named 'purge'
libdlm.c: In function 'create_lockspace':
libdlm.c:1317: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'release_lockspace':
libdlm.c:1423: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_kernel_version':
libdlm.c:1509: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:1510: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:1511: error: invalid use of undefined type 'struct dlm_device_version'
make[1]: *** [libdlm.o] Error 1
make[1]: Leaving directory `/usr/local/cluster/dlm/lib'
make: *** [all] Error 2


how to resolve this error? 


Thanks and Regards
Anuj 






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