LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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



Reply
 
Search this Thread
Old 05-18-2008, 08:21 AM   #1
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
cluster on rhel5 make giving error /usr/bin/ld: cannot find -ldlm


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
 
Old 05-18-2008, 08:45 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
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.
 
Old 05-18-2008, 10:06 AM   #3
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Original Poster
Rep: Reputation: 16
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
 
Old 05-18-2008, 11:15 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make error: /usr/bin/ld: cannot find -lXext ryedunn Linux - Software 20 11-16-2011 04:28 AM
/usr/bin/ld: cannot find -lqt, make xconfig tuxandme Linux - Software 5 06-19-2005 02:04 PM
/usr/bin/ld error recieved on make jmonolith2001 Linux - Software 4 12-28-2004 04:23 AM
when running make get: usr/bin/ld: cannot find -lart_lgpl_2 nigma Linux - Software 0 02-12-2004 10:22 PM
/usr/bin/ld: cannot find -lusb error?? Hyperion007 Linux - Newbie 1 08-21-2003 05:16 AM


All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration