Undefined reference to rtems_bsdnet_config

Joel Sherrill joel.sherrill at OARcorp.com
Wed Aug 2 21:25:06 UTC 2000


Hoang Ngo wrote:
> 
> 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.

networkconfig.h?  It is in the top level directory
of the network-demos and would have to be localized
for your target and copied somewhere before being included.

> 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-

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the users mailing list