RE: Build fails on 2.6.16 Fedora kernel

Dave Jenkins <[email protected]> Thu, 30 Mar 2006 18:23:58 +0100 (BST)
Newsgroups gmane.linux.linux-wlan.user
Message-ID <[email protected]>
--- "Gee, David" <[email protected]> wrote:
> Yeah, the build also fails on the 2.6.15/16 FC5 kernel. This has been
> discussed on the linux-wlan-devel list, see
>
http://lists.linux-wlan.com/pipermail/linux-wlan-devel/2006-February/003557.
> html for a patch that will resolve this problem. 

Thanks. I tried again with the .owner patch applied to prism2_usb.c as
per that message, however this only reduced the build log from 11683
lines to 11680. To investigate further, I saved a log of a successful
build on kernel-2.6.14-1.1656_FC4 and compared with the failed 2.6.16
build. It turns out that the first set of errors that I posted...

------8<------
make[2]: Entering directory
`/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/mkmeta'
...
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -Wundef
-I../include -I/lib/modules/2.6.14-1.1656_FC4/build/include
-D__LINUX_WLAN__ ../shared/p80211types.c -o obj/p80211types.o
In file included from ../shared/p80211types.c:96:
../include/wlan/wlan_compat.h:146:7: warning: "WLAN_HOSTIF" is not
defined
../include/wlan/wlan_compat.h:146:22: warning: "WLAN_PCI" is not
defined
../include/wlan/wlan_compat.h:147:7: warning: "WLAN_SYSARCH" is not
defined
...etc...
------8<------

...occur in the successful build, too. Hmm. The first point at which
the builds diverge is here:

Successful 2.6.14 build:
------8<------
make[2]: Entering directory
`/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211'
make -C /lib/modules/2.6.14-1.1656_FC4/build
M='/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/..
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211'
WLAN_SRC=/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/ modules
make[3]: Entering directory `/usr/src/kernels/2.6.14-1.1656_FC4-i686'
  CC [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211mod.o
  CC [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211conv.o
  CC [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211req.o
  CC [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211wep.o
  CC [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211wext.o
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211wext.c:172:2:
warning: #warning "make a smarter sharedkey/opensystem auth decision"
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211wext.c:438:2:
warning: #warning "get rid of p2mib here"
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211wext.c:748:2:
warning: #warning "Get rid of p2mib here!"
  CC [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211netdev.o
  LD [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211.o
  Building modules, stage 2.
  MODPOST
  CC     
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211.mod.o
  LD [M] 
/home/davej/linux-wlan/linux-wlan-ng-0.2.3-2.6.14/src/p80211/p80211.komake[3]:
Leaving directory `/usr/src/kernels/2.6.14-1.1656_FC4-i686'
------8<------

Failed 2.6.16 build:
------8<------
make[2]: Entering directory
`/home/davej/linux-wlan/linux-wlan-ng-0.2.3/src/p80211'
make -C /lib/modules/2.6.16-1.2069_FC4/build
M='/home/davej/linux-wlan/linux-wlan-ng-0.2.3/src/p80211/..
/home/davej/linux-wlan/linux-wlan-ng-0.2.3/src/p80211'
WLAN_SRC=/home/davej/linux-wlan/linux-wlan-ng-0.2.3/src/ modules
make[3]: Entering directory `/usr/src/kernels/2.6.16-1.2069_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[3]: Leaving directory `/usr/src/kernels/2.6.16-1.2069_FC4-i686' 
------8<------

I.e. the CC lines for p80211mod.o etc are absent from the 2.6.16 build;
there are no references whatsoever to p80211mod.o etc in the log.

I expect that someone who's familiar with the source will pick up
what's happening a lot more quickly than I could, so over to the
experts! Let me know if a complete build log would be helpful.

Cheers,

Dave



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com