[Linux-cluster] Trouble finding openais include dir in RHEL5 compile

cosmih cosmih at freeland.ro
Tue Oct 9 15:38:40 UTC 2007


>> Thanks Steve. That gets me to the dlm dir, which fails with the errors
>> below. This is cvs RHEL5 against the stock RHEL5 kernel 2.6.18-8.el5 
>> 
>> Any thoughts on this? I googled this failure, but nothing relevant comes
>> up.
>
>The RHEL50 cvs branch is used for the current RHEL 5.0 release, which it
>sounds like you have.
>
>The RHEL5 cvs branch is in development, to be used for the RHEL 5.1
>release.  The RHEL 5.1 kernel includes the new dlm user/kernel interface
>which is in the upstream kernel.  If you want to use the RHEL5 cvs branch,
>you'd need the kernel for RHEL 5.1 (which is still in development and not
>accessible AFAIK.)
>
>The cvs HEAD should be used with upstream 2.6.22-rc kernels.  Doing this
>requires that you also copy the new dlm kernel headers into the system
>include directory:
>cp /usr/src/linux-2.6.22-rcX/include/linux/dlm*  /usr/include/linux/
>and then remove the __user tags from some them (or do as Patrick suggested).
>

hi,

i tryied to install cluster-2.01.00 on gentoo and archlinux linux distribution ... but i have
   the same errors
i have linux-2.6.22 headers and gcc 4.1.2 on gentoo machines and gcc 4.2.1 on archlinux machines
i successfully installed openais-0.80.3 (make && make install DESTDIR=/)

here is the configure command:
./configure --prefix=/usr/local/cluster --libdir=/usr/local/cluster/lib \
--libexecdir=/usr/local/cluster/libexec --mandir=/usr/local/cluster/man \
--sharedir=/usr/local/cluster/share --incdir=/usr/local/cluster/include  \
--openaisincdir=/usr/include --openaislibdir=/usr/lib/openais \
--ncursesincdir=/usr/include --ncurseslibdir=/usr/lib \
--readlineincdir=/usr/include/readline --readlinelibdir=/usr/lib \
--nssincdir=/usr/include/nss --nsslibdir=/usr/lib/nss  \
--nsprincdir=/usr/include/nspr --nsprlibdir=/usr/lib/nspr \
--cflags="-O2 -march=i686 -mtune=i686 -fomit-frame-pointer"


here is the errors
------------------------
make[1]: Entering directory `/root/cluster-2.01.00/dlm'
set -e && \
        for i in lib tool; do \
                make -C $i all; \
        done
make[2]: Entering directory `/root/cluster-2.01.00/dlm/lib'
gcc -O2 -march=i686 -mtune=i686 -fomit-frame-pointer -I/root/cluster-2.01.00/config -g -O2  -I. -I/usr/local/cluster/include -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: 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:892: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_ls_lockx':
libdlm.c:916: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_ls_unlock':
libdlm.c:1067: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_ls_deadlock_cancel':
libdlm.c:1099: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:1115: error: 'DLM_USER_DEADLOCK' undeclared (first use in this function)
libdlm.c:1115: error: (Each undeclared identifier is reported only once
libdlm.c:1115: error: for each function it appears in.)
libdlm.c: In function 'dlm_ls_purge':
libdlm.c:1134: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'create_lockspace':
libdlm.c:1311: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'release_lockspace':
libdlm.c:1417: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c: In function 'dlm_kernel_version':
libdlm.c:1503: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:1504: error: invalid use of undefined type 'struct dlm_device_version'
libdlm.c:1505: error: invalid use of undefined type 'struct dlm_device_version'
make[2]: *** [libdlm.o] Error 1
make[2]: Leaving directory `/root/cluster-2.01.00/dlm/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/cluster-2.01.00/dlm'
make: *** [dlm] Error 2
-------------------------------

can someone give me some hints ?

regards,
cosmih
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20071009/bd662b22/attachment.htm>


More information about the Linux-cluster mailing list