[elrepo] problem building kmod-wl on Centos6.3 with Elrepo-kernel-ml.De

Johan Vermeulen jvermeulen at cawdekempen.be
Mon Jan 14 06:23:16 EST 2013



Op 11-01-13 16:57, Alan Bartlett schreef:
> On 11 January 2013 15:52, Manuel Wolfshant<wolfy at nobugconsulting.ro>  wrote:
>> On 01/11/2013 05:42 PM, Alan Bartlett wrote:
>>> ...]
>>> If you use a kernel from the ELRepo Project kernel-lt or kernel-ml
>>> series, there is no concept of a stable ABI and none of the ELRepo
>>> Project kmod packages are built to be used with either of those kernel
>>> series. The best way to consider either the kernel-lt or kernel-ml
>>> packages is as a 'super kmod package' in its own right. If you need to
>>> build an 'external' module for one of those kernels, it will have to
>>> be rebuilt for each and every new kernel release.
>> ... and with a tiny bit of work you can rely on dkms and have that automated
> Very true, Wolfy! :)
>
> Alan.
> _______________________________________________
> elrepo mailing list
> elrepo at lists.elrepo.org
> http://lists.elrepo.org/mailman/listinfo/elrepo

Hello Alan & Manuel,

thanks again for the reply and for taking the time to explain this to me.

I was able to build the wl-kmod with the latest Centos standard kernel 
successfully, and I will follow your advise and use this kernel on our 
machines.

I did however first wanted to test the updated Elrepo-ml-kernel:

Linux localhost.localdomain 3.7.2-1.el6.elrepo.x86_64 #1 SMP Fri Jan 11 
21:38:01 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
[root at localhost ~]#

I again tried building the wl kmod module with the same 
wl-kmod-nosrc.rpm and the same hybrid-prtsrc...tar.gz ( that didn't 
change, did it? )

this is the output I get :

-------------------------------------------------------------------------------------------------------------------------------------------
[caw at localhost ~]$ rpmbuild --rebuild --target=`uname -m`  
wl-kmod-5_100_82_112-4.el6.elrepo.nosrc.rpm
Installing wl-kmod-5_100_82_112-4.el6.elrepo.nosrc.rpm
waarschuwing: user ajb does not exist - using root
waarschuwing: group ajb does not exist - using root
waarschuwing: user ajb does not exist - using root
waarschuwing: group ajb does not exist - using root
waarschuwing: user ajb does not exist - using root
waarschuwing: group ajb does not exist - using root
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ROSfmg
+ umask 022
+ cd /home/caw/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/caw/rpmbuild/BUILD
+ rm -rf wl-kmod-5_100_82_112
+ /bin/mkdir -p wl-kmod-5_100_82_112
+ cd wl-kmod-5_100_82_112
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ cd /home/caw/rpmbuild/BUILD
+ cd wl-kmod-5_100_82_112
+ /usr/bin/gzip -dc 
/home/caw/rpmbuild/SOURCES/hybrid-portsrc_x86_64-v5_100_82_112.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /bin/sed -i 's/\/lib\/modules\/`uname -r`\/build/\"\${KSRC}\"/' Makefile
+ /bin/sed -i 's/.. KERNEL_VERSION(2, 6, 3.)/>= KERNEL_VERSION(2, 6, 
32)/' src/wl/sys/wl_cfg80211.c
+ echo 'override wl * weak-updates/wl'
+ /bin/cat
+ /bin/cat
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.shogiL
+ umask 022
+ cd /home/caw/rpmbuild/BUILD
+ cd wl-kmod-5_100_82_112
+ LANG=C
+ export LANG
+ unset DISPLAY
++ uname -r
+ /usr/bin/make KSRC=/usr/src/kernels/3.7.2-1.el6.elrepo.x86_64
KBUILD_NOPEDANTIC=1 make -C "/usr/src/kernels/3.7.2-1.el6.elrepo.x86_64" 
M=`pwd`
make[1]: Entering directory `/usr/src/kernels/3.7.2-1.el6.elrepo.x86_64'
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
   LD      /home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112/built-in.o
   CC [M]  
/home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112/src/shared/linux_osl.o
   CC [M]  
/home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112/src/wl/sys/wl_linux.o
/home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112/src/wl/sys/wl_linux.c:43:24: 
error: asm/system.h: No such file or directory
/home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112/src/wl/sys/wl_linux.c:388: 
error: unknown field 'ndo_set_multicast_list' specified in initializer
/home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112/src/wl/sys/wl_linux.c:388: 
warning: initialization from incompatible pointer type
make[2]: *** 
[/home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112/src/wl/sys/wl_linux.o] 
Error 1
make[1]: *** [_module_/home/caw/rpmbuild/BUILD/wl-kmod-5_100_82_112] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.7.2-1.el6.elrepo.x86_64'
make: *** [all] Error 2
fout: Bad exit status from /var/tmp/rpm-tmp.shogiL (%build)


RPM build errors:
     user ajb does not exist - using root
     group ajb does not exist - using root
     user ajb does not exist - using root
     group ajb does not exist - using root
     user ajb does not exist - using root
     group ajb does not exist - using root
     Bad exit status from /var/tmp/rpm-tmp.shogiL (%build)

-----------------------------------------------------------------------------------------------------------------------------------------------

Greetings, J.





More information about the elrepo mailing list