cluster on rhel5 make giving error /usr/bin/ld: cannot find -ldlm
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
You need to read the instructions on how to build the software, the first error is because you dont have the lib installed on your system, meaning you need to install the libs first before attempting the build.
The second error is due to some missing include files, i dont know which one but look at the install file it should tell you what is required to build the lib properly
Any what why are you building this stuff when there are binary packages for it.
hi,
Yes the error
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'
........
is causing
/usr/bin/ld: cannot find -ldlm
can you give me the link to the binaries?
Thanks and regards
Anuj
Cluster includes several different components that are packaged in different rpms, to make it easy install Conga using yum and use Conga to install the rest of the stuff that is required. And since you are using RHEL i think you will need an entitlement to be able to install the cluster suite.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.