Undefined reference to rtems_bsdnet_config

Hoang Ngo hngo at caspiannetworks.com
Wed Aug 2 20:44:05 UTC 2000


Efren,

Has the file been renamed? I can't find a file
called net_cfg.h. I try adding rtems/rtems_netbsd.h
and few others to tclAppInit.c but the result is still
the same.

Hoang


-----Original Message-----
From: Efren Serra [mailto:efren.serra at eng.sun.com]
Sent: Wednesday, August 02, 2000 1:27 PM
To: Hoang Ngo
Cc: 'rtems-users at oarcorp.com'
Subject: Re: Undefined reference to rtems_bsdnet_config


Hoang Ngo wrote:

> I ran into a problem linking tcl8.4 lib with rtems. The error messages is
> "
> /opt/rtems/bin/powerpc-rtems-gcc --pipe -B/opt/rtems//mcp750/lib/ -specs
> bsp_spe
> cs -qrtems -g -Wall -ansi -fasm  -O4 -mmultiple -mstring -mstrict-align
> -mc
> pu=750    -Dmain=rlchk   -L /opt/rtems//mcp750/lib    -o o-optimize/rlchk
> o-opt
> imize/init.o o-optimize/tclAppInit.o   /opt/rtems//mcp750/lib/no-dpmem.rel
> /opt/
> rtems//mcp750/lib/no-mp.rel /opt/rtems//mcp750/lib/no-part.rel
> /opt/rtems//mcp75
> 0/lib/no-signal.rel /opt/rtems//mcp750/lib/no-timer.rel
> /opt/rtems//mcp750/lib/n
> o-rtmon.rel -ltcl8.4 -lm -lnetworking -lrtemsall -lnetchip
> /opt/rtems/powerpc-rtems/bin/ld: region CODE is full (o-optimize/rlchk
> section .
> rodata)
> /opt/rtems/powerpc-rtems/bin/ld: section .data [00003000 -> 0000bc0b]
> overlaps s
> ection .text [00003000 -> 000f603f]
> /opt/rtems/powerpc-rtems/bin/ld: section .got2 [0000bc0c -> 0000bc83]
> overlaps s
> ection .text [00003000 -> 000f603f]
> /opt/rtems/powerpc-rtems/bin/ld: section .fixup [0000bc84 -> 0000bc8b]
> overlaps
> section .text [00003000 -> 000f603f]
> /opt/rtems/powerpc-rtems/bin/ld: section .got [0000bc8c -> 0000bc9b]
> overlaps se
> ction .text [00003000 -> 000f603f]
> /opt/rtems/powerpc-rtems/bin/ld: section .sdata [0000bca0 -> 0000c4df]
> overlaps
> section .text [00003000 -> 000f603f]
> /opt/rtems//mcp750/lib/libnetworking.a(rtems_glue.o): In function
> `rtems_bsdnet_
> initialize':
>
/home/hngo/rtos/rtems/tools/build-powerpc-rtems/powerpc-rtems/c/mcp750/libne
> twor
>
king/rtems/../../../../../../rtems-4.5.0-beta3a/c/src/libnetworking/rtems/rt
> ems_
> glue.c:207: undefined reference to `rtems_bsdnet_config'
> "
>
> I have tried adding various libs in the linking stage but none works. Any
> suggestions?
>
> TIA,
> Hoang

Hoang,

Make sure you include net_cfg.h in tclAppInit.c

-efren-



More information about the users mailing list