netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Section mismatch between 'copy_net_ns' and 'net_enable_timestamp
@ 2008-01-02 14:16 Andy Johnson
  2008-01-02 14:28 ` Daniel Lezcano
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Johnson @ 2008-01-02 14:16 UTC (permalink / raw)
  To: netdev

Hello,
 I had git-cloned the net-2.6.25.git tree today;

 Then I ran "make menuconfig" and accepted the defaults without any change.
I want to build this tree with network namespace support.
I saw that in 2.6.25/net/core/net_namespace.c
we have some #ifdef CONFIG_NET_NS ; I did not CONFIG_NET_NS in "make
menuconfig".
So I added in net_namespace.c #define CONFIG_NET_NS, before the first
#ifdef CONFIG_NET_NS; then I ran make.

I saw the following warning:

WARNING: vmlinux.o(.text+0x1d47cd): Section mismatch: reference to .init.text:
(between 'copy_net_ns' and 'net_enable_timestamp')


Is there something wrong here causing this "Section mismatch"?
or did I do something wrong?

Regards,
Andy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Section mismatch between 'copy_net_ns' and 'net_enable_timestamp
  2008-01-02 14:16 Section mismatch between 'copy_net_ns' and 'net_enable_timestamp Andy Johnson
@ 2008-01-02 14:28 ` Daniel Lezcano
  2008-01-02 15:32   ` Andy Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2008-01-02 14:28 UTC (permalink / raw)
  To: Andy Johnson; +Cc: netdev

Andy Johnson wrote:
> Hello,
>  I had git-cloned the net-2.6.25.git tree today;
> 
>  Then I ran "make menuconfig" and accepted the defaults without any change.
> I want to build this tree with network namespace support.
> I saw that in 2.6.25/net/core/net_namespace.c
> we have some #ifdef CONFIG_NET_NS ; I did not CONFIG_NET_NS in "make
> menuconfig".
> So I added in net_namespace.c #define CONFIG_NET_NS, before the first
> #ifdef CONFIG_NET_NS; then I ran make.
> 
> I saw the following warning:
> 
> WARNING: vmlinux.o(.text+0x1d47cd): Section mismatch: reference to .init.text:
> (between 'copy_net_ns' and 'net_enable_timestamp')
> 
> 
> Is there something wrong here causing this "Section mismatch"?
> or did I do something wrong?
> 
> Regards,
> Andy
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Hi Andy,

If you want to activate the network namespace, you should disable the 
sysfs. This is a temporary restriction until Greg-KH integrates the 
sysfs per namespace:

https://lists.linux-foundation.org/pipermail/containers/2007-December/009347.html

Can you try to using the menuconfig to enable the network namespace and 
check if you still have the section mismatch ?

General setup
  -> Prompt for development and/or incomplete code/drivers => enable
  -> Configure standard kernel features => enable

File systems
  -> Pseudo filesystems
   -> sysfs file system support => disable

Networking
  -> Networking options
   -> Network namespace support => enable

Thanks
   -- Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Section mismatch between 'copy_net_ns' and 'net_enable_timestamp
  2008-01-02 14:28 ` Daniel Lezcano
@ 2008-01-02 15:32   ` Andy Johnson
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Johnson @ 2008-01-02 15:32 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: netdev

Hi,

Thanks; Well, doing it indeed avoids that error.
when I disabled the sysfs entry I had the options for network namespace
which previously was not there.
Regards,
Andy



On Jan 2, 2008 4:28 PM, Daniel Lezcano <dlezcano@fr.ibm.com> wrote:
>
> Andy Johnson wrote:
> > Hello,
> >  I had git-cloned the net-2.6.25.git tree today;
> >
> >  Then I ran "make menuconfig" and accepted the defaults without any change.
> > I want to build this tree with network namespace support.
> > I saw that in 2.6.25/net/core/net_namespace.c
> > we have some #ifdef CONFIG_NET_NS ; I did not CONFIG_NET_NS in "make
> > menuconfig".
> > So I added in net_namespace.c #define CONFIG_NET_NS, before the first
> > #ifdef CONFIG_NET_NS; then I ran make.
> >
> > I saw the following warning:
> >
> > WARNING: vmlinux.o(.text+0x1d47cd): Section mismatch: reference to .init.text:
> > (between 'copy_net_ns' and 'net_enable_timestamp')
> >
> >
> > Is there something wrong here causing this "Section mismatch"?
> > or did I do something wrong?
> >
> > Regards,
> > Andy
> > --
> > To unsubscribe from this list: send the line "unsubscribe netdev" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
>
> Hi Andy,
>
> If you want to activate the network namespace, you should disable the
> sysfs. This is a temporary restriction until Greg-KH integrates the
> sysfs per namespace:
>
> https://lists.linux-foundation.org/pipermail/containers/2007-December/009347.html
>
> Can you try to using the menuconfig to enable the network namespace and
> check if you still have the section mismatch ?
>
> General setup
>   -> Prompt for development and/or incomplete code/drivers => enable
>   -> Configure standard kernel features => enable
>
> File systems
>   -> Pseudo filesystems
>    -> sysfs file system support => disable
>
> Networking
>   -> Networking options
>    -> Network namespace support => enable
>
> Thanks
>    -- Daniel
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-02 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 14:16 Section mismatch between 'copy_net_ns' and 'net_enable_timestamp Andy Johnson
2008-01-02 14:28 ` Daniel Lezcano
2008-01-02 15:32   ` Andy Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).