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

Re: [Linux-cluster] cluster-2.01.00 compilation problem



You should specify the --kernel_src and --incdir argument correctly.

I use Archlinux and the kernel src was placed in /usr/src/linux-2.6.23-ARCH/.

I use this command:

./configure --kernel_src=/usr/src/linux-2.6.23-ARCH/
--incdir=/usr/src/linux-2.6.23-ARCH/include

And I can compile the cluster 2.01.00 without such errors.

but I'm shocked that you can compile it in Linux 2.6.22. I just tried
it and failed.

btw: at last, I still failed to complete compilation. I got this:
cc -Wall -I/home/leemars/Desktop/cluster-2.01.00/config -D_GNU_SOURCE
-DSHAREDIR=\"/usr/share/cluster\" -g -Werror -Wstrict-prototypes
-Wshadow -fPIC -I/home/leemars/Desktop/cluster-2.01.00/ccs/lib
-I/home/leemars/Desktop/cluster-2.01.00/cman/lib
-I/home/leemars/Desktop/cluster-2.01.00/dlm/lib `xml2-config --cflags`
-I/usr/src/linux-2.6.23-ARCH/include/ -I../../include
-I/usr/src/linux-2.6.23-ARCH/include/ -c -o rg_thread.o rg_thread.c
cc1: warnings being treated as errors
rg_thread.c: In function 'dump_threads':
rg_thread.c:71: warning: the address of 'resthread_list' will always
evaluate as 'true'
make[3]: *** [rg_thread.o] Error 1

On 10/10/07, cosmih <cosmih freeland ro> wrote:
>
>
>
>  hi,
>
> i tryied to install cluster-2.01.00 on gentoo and archlinux linux
> distribution ... but i have
>    the some 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 for cluster-2.01.00:
> ./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 from make fence command:
> ------------------------
> 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
> --
> Linux-cluster mailing list
> Linux-cluster redhat com
> https://www.redhat.com/mailman/listinfo/linux-cluster
>
>
> --
> Linux-cluster mailing list
> Linux-cluster redhat com
> https://www.redhat.com/mailman/listinfo/linux-cluster
>


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