undefined reference 'rtems_bsdnet_initialize_network'

hbuciuc at netscape.net hbuciuc at netscape.net
Wed Jul 12 12:09:58 UTC 2006


Hi!

I'm trying to compile an application that uses RTEMS 4.6.5 networking.
The application compiles and runs OK without network support.
When compiling with network support I get a linker error message only 
for this symbol:
undefined reference to 'rtems_bsdnet_initialize_network()'
though librtemscpu.a includes the symbol.

1.The -specs bsp_specs compile option is there.

2.The bsp_specs file specifies the -lrtemscpu and -lrtemscpu_g libraries.

3.The /opt/rtems-4.6/powerpcx-rtems/mbx860-004b/lib/librtemscpu.a
is where it should be.

4.nm finds the symbol.When running: 
powerpc-rtems-nm -A -S -C * 2> /dev/null | grep 'rtems_bsdnet_initialize_network$'
I get:
librtemscpu.a:rtems_glue.o:000011fc 000000b0 T rtems_bsdnet_initialize_network
librtemscpu_g.a:rtems_glue.o:000019ac 000000d0 T rtems_bsdnet_initialize_network

5.I use powerpc-rtems-g++ 3.2.3 and powerpc-rtems-nm 2.13.2.1 that come
with RTEMS 4.6.5.

What else should I look for?

Thanks, Horia




__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp



More information about the users mailing list