2010-12-14 10:25:30

by Bringfried Stecklum

[permalink] [raw]
Subject: unresolved symbols due to missing iwlcore.ko

I am having trouble installing iwlagn from the recent compat-wireless. My system
is Ubuntu 8.10 running kernel 2.6.36-1. The reason is that iwlcore.ko does not
get build and installed in the update modules folder which, of course, leads
unresolved symbols. Here is a short log

stecklum@extragalactix:~/System/src/compat-wireless-2010-12-12$
./scripts/driver-select iwlwifi
make
...
Building modules, stage 2.
MODPOST 7 modules
CC /home/stecklum/System/src/compat-wireless-2010-12-12/compat/compat.mod.o
LD [M] /home/stecklum/System/src/compat-wireless-2010-12-12/compat/compat.ko
CC
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atl1c/atl1c.mod.o
LD [M]
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atl1c/atl1c.ko
CC
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atl1e/atl1e.mod.o
LD [M]
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atl1e/atl1e.ko
CC
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atlx/atl1.mod.o
LD [M]
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atlx/atl1.ko
CC
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atlx/atl2.mod.o
LD [M]
/home/stecklum/System/src/compat-wireless-2010-12-12/drivers/net/atlx/atl2.ko
CC
/home/stecklum/System/src/compat-wireless-2010-12-12/net/mac80211/mac80211.mod.o
LD [M]
/home/stecklum/System/src/compat-wireless-2010-12-12/net/mac80211/mac80211.ko
CC
/home/stecklum/System/src/compat-wireless-2010-12-12/net/wireless/cfg80211.mod.o
LD [M]
/home/stecklum/System/src/compat-wireless-2010-12-12/net/wireless/cfg80211.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-1-generic'

So no iwlcore.ko at this stage.

This is after make install

stecklum@extragalactix:~/System/src/compat-wireless-2010-12-12$ find . -name
iwlcore.ko -print
stecklum@extragalactix:~/System/src/compat-wireless-2010-12-12$

and consequently the module is not in the update module folder. Thus, upon
modprobe iwlagn the original kernel module will be loaded which, of course,
lacks the new symbols.

Regards, Bringfried




2010-12-15 22:31:42

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: unresolved symbols due to missing iwlcore.ko

On Wed, Dec 15, 2010 at 2:20 PM, Tomas Winkler <[email protected]> wrote:
> On Tue, Dec 14, 2010 at 9:01 PM, Bringfried Stecklum
> <[email protected]> wrote:
>> Turns out that the error is due to a fault of the configuration script. If I
>> _don't_ select the iwlwifi driver via driver_select and build all drivers
>> instead, iwlcore.ko will be build as well and properly installed.
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
>> the body of a message to [email protected]
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> It looks like there is a mismatch between usage CONFIG_IWLWIIFI and
> CONFIG_COMPAT_IWLWIFI in select script and the Makefile. I'm not sure
> what is the intention so of COMPAT so I cannot say were it should be
> fixed.

Likely the grep'ing out is dropping one config option out of the
Makefile, fix that and you can fix the problem.

Luis

2010-12-15 22:20:57

by Tomas Winkler

[permalink] [raw]
Subject: Re: unresolved symbols due to missing iwlcore.ko

On Tue, Dec 14, 2010 at 9:01 PM, Bringfried Stecklum
<[email protected]> wrote:
> Turns out that the error is due to a fault of the configuration script. If I
> _don't_ select the iwlwifi driver via driver_select and build all drivers
> instead, iwlcore.ko will be build as well and properly installed.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

It looks like there is a mismatch between usage CONFIG_IWLWIIFI and
CONFIG_COMPAT_IWLWIFI in select script and the Makefile. I'm not sure
what is the intention so of COMPAT so I cannot say were it should be
fixed.

Thanks
Tomas

2010-12-14 19:05:07

by Bringfried Stecklum

[permalink] [raw]
Subject: Re: unresolved symbols due to missing iwlcore.ko

Turns out that the error is due to a fault of the configuration script. If I
_don't_ select the iwlwifi driver via driver_select and build all drivers
instead, iwlcore.ko will be build as well and properly installed.