[Ocfs2-users] 1.2.5 compile

Randy Ramsdell rramsdell at livedatagroup.com
Wed Apr 11 12:54:25 PDT 2007


eff Mahoney wrote:

> > Randy Ramsdell wrote:
>   
>>> > >> Randy Ramsdell wrote:
>>>       
>>>> > >>> Jeff Mahoney wrote:
>>>> > >>>   
>>>>         
>>>>> > >>>> Randy Ramsdell wrote:
>>>>> > >>>>     
>>>>>           
>>>>>>> > >>>>>> Hi,
>>>>>>> > >>>>>>
>>>>>>> > >>>>>> Both packages compiled fine, but I am getting the unknown
>>>>>>>               
> > symbol issue.
>   
>>>>>>> > >>>>>> Maybe I am overlooking something or are there compile time /
>>>>>>>               
> > configure
>   
>>>>>>> > >>>>>> options need to solve this.
>>>>>>> > >>>>>> All the modules were built, installed and I ran a "depmod -aq"
>>>>>>>               
> > just in
>   
>>>>>>> > >>>>>> case.
>>>>>>> > >>>>>>
>>>>>>> > >>>>>>
>>>>>>> > >>>>>> Example on opensuse-windows 10.1:
>>>>>>> > >>>>>>
>>>>>>> > >>>>>> modprobe ocfs2
>>>>>>> > >>>>>>
>>>>>>> > >>>>>> WARNING: Error inserting ocfs2_nodemanager
>>>>>>> > >>>>>>
>>>>>>> > >>>>>>         
>>>>>>>               
>>>>> > >>>>
>>>>>           
> > (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/cluster/ocfs2_nodemanager.ko):
>   
>>>>> > >>>>     
>>>>>           
>>>>>>> > >>>>>> Unknown symbol in module, or unknown parameter (see dmesg)
>>>>>>> > >>>>>> WARNING: Error inserting ocfs2_dlm
>>>>>>> > >>>>>> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlm.ko):
>>>>>>>               
> > Unknown
>   
>>>>>>> > >>>>>> symbol in module, or unknown parameter (see dmesg)
>>>>>>> > >>>>>> FATAL: Error inserting ocfs2
>>>>>>> > >>>>>> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/ocfs2.ko): Unknown
>>>>>>> > >>>>>>         
>>>>>>>               
>>>>> > >>>> symbol in
>>>>>           
> >
>   
<snip>

> >
> > Well, it looks as though you built the modules against a different
> > kernel than the one you're running.
> >
> > -Jeff
> >
> > --
> > Jeff Mahoney
> > SUSE Labs
>   
Yes It does but during the compile I see the process enter into the
correct location and the method used was the same for 1.2.4.

Here are the steps I used for 1.2.4 and 1.2.5 :

./configure --with-kernel-source=/usr/src/linux

    ls -l /usr/src:
    linux -> linux-2.6.16.27-0.6
    linux-obj -> linux-2.6.16.27-0.6-obj

    uname -a :
    dfb02010313 2.6.16.27-0.6-smp #1 SMP Wed Dec 13 09:34:50 UTC 2006
i686 i686 i386 GNU/Linux

make :

    make[2]: Leaving directory `/root/src/ocfs2-1.2.5/fs/ocfs2/dlm'
    make -C /lib/modules/2.6.16.27-0.6-smp/build 
M=/root/src/ocfs2-1.2.5/fs modules
    make[2]: Entering directory `/usr/src/linux-2.6.16.27-0.6-obj/i386/smp'
    make -C ../../../linux-2.6.16.27-0.6
O=../linux-2.6.16.27-0.6-obj/i386/smp modules
    <snip compiling objects>
    WARNING: "machine_restart"
[/root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.ko] undefined!
    </snip compiling objects>
      CC      /root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.mod.o
      LD [M]  /root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.ko
      CC      /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlm.mod.o
      LD [M]  /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlm.ko
      CC      /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlmfs.mod.o
      LD [M]  /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlmfs.ko
      CC      /root/src/ocfs2-1.2.5/fs/ocfs2/ocfs2.mod.o
      LD [M]  /root/src/ocfs2-1.2.5/fs/ocfs2/ocfs2.ko
    make[2]: Leaving directory `/usr/src/linux-2.6.16.27-0.6-obj/i386/smp'

>From this, it appears to be compiling against the correct kernel.

make install:

<snip>

    make -C fs install
    make[1]: Entering directory `/root/src/ocfs2-1.2.5/fs'
    make -C /lib/modules/2.6.16.27-0.6-smp/build 
M=/root/src/ocfs2-1.2.5/fs modules_install
    make[2]: Entering directory `/usr/src/linux-2.6.16.27-0.6-obj/i386/smp'
    make -C ../../../linux-2.6.16.27-0.6
O=../linux-2.6.16.27-0.6-obj/i386/smp modules_install
      INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.ko
      INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlm.ko
      INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlmfs.ko
      INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/ocfs2.ko
      DEPMOD  2.6.16.27-0.6-smp

Again, it looks like it compiled against correct kernel. Also note that
it called "depmod" and that the modules are copied to the correct
locations with the

To me this all looks legit except  that I did not  add a  configure
option for the "smp" part which I have had to do with other packages.
E.G. open-iscsi
 
Am I missing something or what changed since last release?
Can you compile this and it works ?

I will recompile 1.2.4 and see if these steps work there just in case I
missed something.

Randy Ramsdell






More information about the Ocfs2-users mailing list