Rtems Networking

Ralf Corsepius ralf.corsepius at rtems.org
Thu Nov 16 09:59:37 UTC 2006


On Wed, 2006-11-15 at 16:57 -0600, Joel Sherrill wrote:
> Luca Germano wrote:
> > Hi
> > I try to use network under RTEMS. I look the RTEMS netdemos examples.
> > Compling my application I have the following warning message:
> > /opt/rtems-4.6/lib/gcc-lib/sparc-rtems/3.2.3/../../../../sparc-rtems/bin/ld: 
> > Warning: size of symbol `timeout' changed from 4 to 244 in 
> > /opt/rtems-4.6/sparc-rtems/leon3/lib/librtemscpu.a(rtems_glue.o)
> > /opt/rtems-4.6/lib/gcc-lib/sparc-rtems/3.2.3/../../../../sparc-rtems/bin/ld: 
> > Warning: type of symbol `timeout' changed from 1 to 2 in 
> > /opt/rtems-4.6/sparc-rtems/leon3/lib/librtemscpu.a(rtems_glue.o)
> > Someone have had this warning message or can explain me how to solve?
> >   
> This usually indicates that the symbol is defined in two different 
> object files.
> 
> Can you poke around with nm and grep on the libraries and see if it is 
> duplicately defined?
> timeout is such a common word, it wouldn't surprise me to find it in two 
> places.

As others already pointed out, RTEMS is partially guilty for not being
"namespace clean".

To avoid this particular clash, I'd like to propose the patch (against
CVS-HEAD/rtems-4.8) below.

Ralf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtems-bsdnet-20061116.diff
Type: text/x-patch
Size: 2684 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20061116/ee72512c/attachment.bin>


More information about the users mailing list