View previous topic :: View next topic |
Author |
Message |
3pm n00b
Joined: 03 Nov 2004 Posts: 64
|
Posted: Fri May 09, 2008 8:49 am Post subject: xen kernel and gfs |
|
|
Hello!
I have linux-2.6.20-xen-r5 kernel in my box.
I use that box it as iscsi target and would like to use gfs also.
When I tried to compile gfs, I got "error: invalid use of undefined type 'struct dlm_device_version'" when compiling sys-cluster/dlm-lib-2.02.00-r1 either sys-cluster/dlm-lib-2.02.00
Code: |
Configuring Makefiles for your system...
Checking tree: nothing to do
Building against OpenAIS Whitetank
The following fence agents will be build on this system:
wti sanbox2 rsb scsi rps10 ibmblade mcdata ilo baytech vixel xvm drac rsa bullpap rackswitch brocade cpint bladecenter xcat ipmilan vmware zvm apc manual egenera
NOTE: xvm will build only if --enable_xen has been specified
Completed Makefile configuration
x86_64-pc-linux-gnu-gcc -O2 -pipe -Wall -I/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/config -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DRELEASE_VERSION=\"2.02.00\" -I/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib -I/usr/include -I/lib/modules/2.6.20-xen-r5/source/include -D_REENTRANT -c -o libdlm.o /var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'set_version_v5':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:324: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:325: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:326: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'set_version_v6':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:335: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:336: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:337: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'detect_kernel_version':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:443: error: storage size of 'v' isn't known
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:446: error: invalid application of 'sizeof' to incomplete type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:448: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:449: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:450: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:452: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:453: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:454: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:443: warning: unused variable 'v'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'do_dlm_dispatch':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:590: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'ls_lock_v6':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:835: error: 'struct dlm_lock_params' has no member named 'xid'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:837: error: 'struct dlm_lock_params' has no member named 'timeout'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'ls_lock':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:897: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'dlm_ls_lockx':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:921: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'dlm_ls_unlock':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1073: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'dlm_ls_deadlock_cancel':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1105: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1121: error: 'DLM_USER_DEADLOCK' undeclared (first use in this function)
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1121: error: (Each undeclared identifier is reported only once
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1121: error: for each function it appears in.)
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'dlm_ls_purge':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1140: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1151: error: 'DLM_USER_PURGE' undeclared (first use in this function)
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1152: error: 'union <anonymous>' has no member named 'purge'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1153: error: 'union <anonymous>' has no member named 'purge'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'create_lockspace':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1317: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'release_lockspace':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1423: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c: In function 'dlm_kernel_version':
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1509: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1510: error: invalid use of undefined type 'struct dlm_device_version'
/var/tmp/portage/sys-cluster/dlm-lib-2.02.00-r1/work/cluster-2.02.00/dlm/lib/libdlm.c:1511: error: invalid use of undefined type 'struct dlm_device_version'
make: *** [libdlm.o] Error 1
|
Does it means that gfs with xen kernels currently not possible?
Thanks. |
|
Back to top |
|
|
3pm n00b
Joined: 03 Nov 2004 Posts: 64
|
Posted: Mon May 12, 2008 8:11 am Post subject: |
|
|
Looked at source, manually unpacked cluster-2.02.00.tar.gz. It says need kernel 2.6.24. Managed to compile and setup on that kernel, but its useless in my xen environment.
So it looks like that it's impossible on gentoo xenized kernel. It works on centos5.1 2.6.18.xxx xen kernel thought.
Looks like guys in Redhat are doing a great job. |
|
Back to top |
|
|
|