LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-19-2012, 05:02 PM   #1
dsb9938
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
Undefined Variables During MODPOST


I am building a kernel for an android phone. I transplanted an updated version of the WiFi code from Broadcomm.

Doing this involved adjusting Kconfigs and Makefiles to point to the files I added and I got the code to build properly without warning or error.

Until I get to the MODPOST part. Then I get these errors:

ERROR: "wl_iw_handler_def" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_event" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_detach" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_get_wireless_stats" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_ioctl" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!

I am not sure where/how to correct these as I have never seen an error like this. I am used to being given a file and line location for what needs to be fixed.

I read that this may have to do with exporting them, but I still don't know where or how to do that, and I wonder why that would not already be in the code if it were the culprit.

Any input on where to look for what is causing this would be greatly appreciated.

D

.
 
Old 12-21-2012, 02:39 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 975

Rep: Reputation: 67
You can check WiFi driver makefile to make sure the compiler option match with your kernel.
 
Old 03-14-2013, 10:35 AM   #3
m00gle
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
I've got the same question. I checked the driver makefile and the option look the same. How did you solve the error ?
 
Old 03-14-2013, 01:04 PM   #4
dsb9938
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I reverted my changes. Never found a solution that allowed me to keep the new files.
 
Old 09-17-2013, 08:05 PM   #5
m0tter
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
Just thought I'd post my solution in case anyone else comes across this problem.

This fix solves the error, I can't guarantee it'll compile a complete driver just yet as my kernel has other problems.

Add wl_iw.o to DHDOFILES in bcmdhd/Makefile

Add
Code:
#define USE_IW
to bcmdhd/wl_iw.c above
Code:
#if defined(USE_IW)

m0tter

Last edited by m0tter; 09-17-2013 at 08:06 PM. Reason: clarity
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/bin/sh: scripts/mod/modpost: not found vlzj Programming 2 04-15-2012 11:29 AM
WARNING: modpost: found X section mismatch(es) !?! lefteris80 Linux - Newbie 1 01-17-2011 09:07 AM
MODPOST 0 modules while compiling kernel Unit03 Slackware 3 04-03-2010 05:38 AM
kernel modpost mismatch Undeadzz Linux - Software 0 02-03-2009 09:50 PM
modpost warnings when building a driver... please help tachwali Linux - Hardware 7 08-11-2008 12:57 AM


All times are GMT -5. The time now is 08:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration