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

Re: [Linux-cluster] Compile problems GFS against 2.6.11.6



The problem has to do with versioning in the kernel. Since the dlm kernel module depends on the cman kernel module, the module build doesn't know about the symbols in the cman kernel module that was built previously. You should be able to safely ignore those errors. (And the corresponding kernel taint).

Thanks,
Chris

Manuel Bujan wrote:
Hi,

I applied your patch but it didn't work too.
So I add one more line to the Makefile (gfs-kernel/src/gfs/Makefile) and it works.


+ fs/xattr_acl.o

I am wondering now like Bastian Blank said, is this is a clean solution ? I think NO
Any other recomendation ?


I am still getting the following errors when I compile the code, but the modules get loaded without problems:

Building modules, stage 2.
MODPOST
*** Warning: "kcl_addref_cluster" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_get_node_by_addr" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_get_node_addresses" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_releaseref_cluster" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_get_current_interface" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_get_node_by_nodeid" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_leave_service" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_remove_callback" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_global_service_id" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_unregister_service" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_join_service" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_start_done" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_add_callback" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!
*** Warning: "kcl_register_service" [/usr/src/cluster/dlm-kernel/src/dlm.ko] undefined!


..............
Building modules, stage 2.
MODPOST
*** Warning: "kcl_addref_cluster" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_get_services" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_cluster_name" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "dlm_lock" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_releaseref_cluster" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_get_members" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "dlm_query" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_leave_service" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "lm_register_proto" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "lm_unregister_proto" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_unregister_service" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_join_service" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "dlm_release_lockspace" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_start_done" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "dlm_unlock" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "kcl_register_service" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "dlm_new_lockspace" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!
*** Warning: "dlm_debug_dump" [/usr/src/cluster/gfs-kernel/src/dlm/lock_dlm.ko] undefined!


.....................
Building modules, stage 2.
MODPOST
*** Warning: "lm_unmount" [/usr/src/cluster/gfs-kernel/src/gfs/gfs.ko] undefined!
*** Warning: "lm_withdraw" [/usr/src/cluster/gfs-kernel/src/gfs/gfs.ko] undefined!
*** Warning: "lm_mount" [/usr/src/cluster/gfs-kernel/src/gfs/gfs.ko] undefined!


.........................

Building modules, stage 2.
MODPOST
*** Warning: "kcl_get_node_by_addr" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!
*** Warning: "kcl_get_node_addresses" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!
*** Warning: "kcl_get_node_by_nodeid" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!
*** Warning: "kcl_leave_service" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!
*** Warning: "kcl_unregister_service" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!
*** Warning: "kcl_join_service" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!
*** Warning: "kcl_start_done" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!
*** Warning: "kcl_register_service" [/usr/src/cluster/cmirror/src/dm-cmirror.ko] undefined!


Is there any workaround to this ?

Regards
Bujan


----- Original Message ----- From: "Lazar Obradovic" <laza yu net> To: "linux clustering" <linux-cluster redhat com> Sent: Wednesday, March 30, 2005 4:16 AM Subject: Re: [Linux-cluster] Compile problems GFS against 2.6.11.6


It's something I wrote about long time ago, but everyone seems to forgot
it, including me :(

Try this one, it should work, though I'm not sure it's a right way to do
it, kernel wise :)


--------------------- --- gfs-kernel/src/gfs/Makefile 2005-01-13 00:04:18.000000000 +0100 +++ /usr/src/cluster/gfs-kernel/src/gfs/Makefile 2005-03-30 10:46:45.289226768 +0200 @@ -63,14 +63,16 @@ super.o \ trans.o \ unlinked.o \ - util.o + util.o \ + fs/posix_acl.o

EXTRA_CFLAGS += -I$(obj)

all:
-       rm -f linux lm_interface.h
+       rm -f linux lm_interface.h fs
       ln -s . linux
       ln -s ${top_srcdir}/src/harness/lm_interface.h .
+       ln -s ${KERNEL_SRC}/fs .
       ${MAKE} -C ${KERNEL_SRC} M=${PWD} modules USING_KBUILD=yes

install: all
@@ -85,7 +87,7 @@

clean:
       rm -rf linux *.o .*.o.cmd .gfs.ko.cmd lm_interface.h \
-               gfs.ko gfs.mod.c .tmp_versions *~
+               gfs.ko gfs.mod.c .tmp_versions fs *~


patches: pre add post ---------------------


-- Lazar Obradovic <laza yu net> YUnet International, NOC

--
Linux-cluster mailing list
Linux-cluster redhat com
http://www.redhat.com/mailman/listinfo/linux-cluster


-- Linux-cluster mailing list Linux-cluster redhat com http://www.redhat.com/mailman/listinfo/linux-cluster


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