[Click] Compile error : struct net_device has no br_port

Fabrice Schuler fabrice.schuler at inrialpes.fr
Mon May 30 08:16:10 EDT 2011


  Hello,

Turning off CONFIG_DEBUG_INFO was not enough, but strip -g succeeded.

Reminder :
Linux 2.6.35.13 with CONFIG_NET_NS, without CONFIG_DEBUG_INFO
Last git of Click, around may 25th
needed to remove debug info with strip -g (click.ko went from 68M to 4.5)

Thanks a lot for your help,
Fabrice

On 05/27/11 18:20, Joonwoo Park wrote:
> Hi,
>
> I cced list.  Please cc list next time.
>
> How big is your click.ko?
>
> Do you have CONFIG_DEBUG_INFO=y in your kernel config?
> If then as a quick solution you might need to either :
> 1) turn off CONFIG_DEBUG_INFO, or
> 2) run strip -g /usr/local/lib/click.ko to strip debug info.
> If not, please post result of 'dmesg | tail' after running click-install.
>
> Regards,
> Joonwoo
>
> On Fri, May 27, 2011 at 5:24 AM, Fabrice Schuler
> <fabrice.schuler at inrialpes.fr>  wrote:
>>   On 05/26/11 16:53, Joonwoo Park wrote:
>>> If your kernel doesn't have CONFIG_NET_NS=y, please build with it then
>>> try again.
>>> I think you can workaround with this.
>>>
>> Hello,
>>
>> Thanks a lot for the workaround, it compiles with 2.6.35.13.
>> Now, I just have to understand why I can't load the module :-)
>>
>> # click-install -V test.click
>> click-install: Installing Click module (/usr/local/lib/click.ko)
>> insmod: error inserting '/usr/local/lib/click.ko': -1 Cannot allocate memory
>> click-install: '/sbin/insmod /usr/local/lib/click.ko' failed
>>
>> Best regards,
>> Fabrice
>>



More information about the click mailing list