Build failure

Mattias Nissler mattias.nissler at gmx.de
Fri Nov 25 10:45:12 MST 2005


On Fri, 2005-11-25 at 12:26 -0500, calum.lists at iol.ie wrote:
> After the latest Ubuntu Dapper kernel update, my previously-happy MOL
> kernel module won't load ("unknown symbol in module").  So, I tried to
> rebuild it myself according to the instructions at
> https://wiki.ubuntu.com/MacOnLinuxHowto.  But I'm running into a problem:
> 
> playstation:/usr/src/modules/mol> sudo debian/rules build
> m4 -DKVERS="2.6.12-10-powerpc"
> -DKSRC="/usr/src/linux-headers-2.6.12-10-powerpc" -DKEMAIL=""
> -DKMAINT="Calum" -DKDREV="ubuntu0" -DDEBDATE="Fri, 25 Nov 2005 16:31:18
> +0000" debian/control.m4 > debian/control
> m4 -DKVERS="2.6.12-10-powerpc"
> -DKSRC="/usr/src/linux-headers-2.6.12-10-powerpc" -DKEMAIL=""
> -DKMAINT="Calum" -DKDREV="ubuntu0" -DDEBDATE="Fri, 25 Nov 2005 16:31:18
> +0000" debian/changelog.m4 > debian/changelog
> touch configure-stamp
> dh_testdir
> /usr/bin/make
> make[1]: Entering directory `/usr/src/modules/mol'
> /usr/bin/make -C src/kmod
> make[2]: Entering directory `/usr/src/modules/mol/src/kmod'
> + Entering Linux
>   CC [M]  /usr/src/modules/mol/src/kmod/Linux/../build/_kuname.o
>   CC [M]  /usr/src/modules/mol/src/kmod/Linux/../build/_fault.o
>   CC [M]  /usr/src/modules/mol/src/kmod/Linux/../build/_dev.o
> In file included from include/asm/irq.h:6,
>                  from include/asm/hardirq.h:8,
>                  from include/linux/hardirq.h:6,
>                  from include/asm-generic/local.h:6,
>                  from include/asm/local.h:4,
>                  from include/linux/module.h:21,
>                  from
> /usr/src/modules/mol/src/kmod/Linux/../build/_dev.c:19:
> include/asm/machdep.h:15: error: syntax error before "struct"
> make[5]: *** [/usr/src/modules/mol/src/kmod/Linux/../build/_dev.o] Error 1
> make[4]: *** [_module_/usr/src/modules/mol/src/kmod/Linux/../build] Error 2
> nm: '../build/mol.ko': No such file
> nm: '../build/mol.ko': No such file
> checker.pl failed
> rm: cannot remove `../build/mol.ko': No such file or directory
> make[3]: *** [all-local] Error 1
> make[2]: *** [sub-Linux-all] Error 2
> make[2]: Leaving directory `/usr/src/modules/mol/src/kmod'
> make[1]: [src/kmod] Error 2 (ignored)
> /usr/bin/make -C src/netdriver
> make[2]: Entering directory `/usr/src/modules/mol/src/netdriver'
>   CC [M]  /usr/src/modules/mol/src/netdriver/build/kuname.o
> strings /usr/src/modules/mol/src/netdriver/build/kuname.o | grep --
> '-MAGIC-' | sed -e s/-MAGIC-// >
> /usr/src/modules/mol/src/netdriver/build/.kuname
>   CC [M]  /usr/src/modules/mol/src/netdriver/build/sheep.o
> In file included from include/asm/irq.h:6,
>                  from include/asm/hardirq.h:8,
>                  from include/linux/hardirq.h:6,
>                  from include/asm-generic/local.h:6,
>                  from include/asm/local.h:4,
>                  from include/linux/module.h:21,
>                  from /usr/src/modules/mol/src/netdriver/build/sheep.c:11:
> include/asm/machdep.h:15: error: syntax error before "struct"
> make[4]: *** [/usr/src/modules/mol/src/netdriver/build/sheep.o] Error 1
> make[3]: *** [_module_/usr/src/modules/mol/src/netdriver/build] Error 2
> make[2]: Leaving directory `/usr/src/modules/mol/src/netdriver'
> make[1]: Leaving directory `/usr/src/modules/mol'
> touch build-stamp
> 
> Any clues/hints?  I'm using the latest 0.9.70 mol-modules-source package
> from Ubuntu.

Well, 0.9.70 is quite old. There have been some changes in the kernel
between version 2.6.11 and 2.6.12 that affect MOL. Maybe this is your
problem. See this message for a patch:
http://lists.maconlinux.org/pipermail/mol-general/2005-September/003855.html

I'd also suggest to use a newer MOL tarball that contains many recent
patches http://dev.gentoo.org/~josejx/mol-0.9.71_pre4.tar.bz2 Currently,
we don't have a recent 'official' version.

Mattias



More information about the mol-general mailing list