building bsp w/o examples

stanley jobson stanley.jobson at gmx.ch
Fri Sep 23 07:30:29 UTC 2005


> 
> > how to exclude webserver, telnetd etc. from the bsp image?
> 
> These are static libs, so if you're not going to use them in your 
> application, they should not be linked in anyway (i.e. appropriate
> object  files from RTEMS *.a libs)
> You can check this by using tracing capability of GNU linker.
> 
> Or are you really hurted by the fact that during your BSP compilation
> you  also compile some for you unneeded code?
> 

thx 4 the fast response ... my prob is the following

LD ../obj/i386/PING/node.img
/usr/local/share/i386-rtems/pc386/lib/librtemsbsp.a(rtemspppd.o): In
function `rtems_pppd_initialize':
/usr/local/src/rtems/build/i386-rtems/c/pc386/libnetworking/pppd/../../
../../../../src/rtems-4.6.2/c/src/libnetworking/pppd/rtemspppd.c:75:
undefined reference to `rtems_bsdnet_config'
/usr/local/share/i386-rtems/pc386/lib/librtemscpu.a(rtems_glue.o): In
function `rtems_bsdnet_initialize_network':
/usr/local/src/rtems/build/i386-rtems/c/pc386/exec/libnetworking/../../
../../../../src/rtems-4.6.2/cpukit/libnetworking/rtems/rtems_glue.c:944:
undefined reference to `rtems_bsdnet_config'
/usr/local/src/rtems/build/i386-rtems/c/pc386/exec/libnetworking/../../
../../../../src/rtems-4.6.2/cpukit/libnetworking/rtems/rtems_glue.c:953:
undefined reference to `rtems_bsdnet_config'
/usr/local/share/i386-rtems/pc386/lib/librtemscpu.a(rtems_glue.o): In
function `rtems_bsdnet_initialize':
/usr/local/src/rtems/build/i386-rtems/c/pc386/exec/libnetworking/../../
../../../../src/rtems-4.6.2/cpukit/libnetworking/rtems/rtems_glue.c:226:
undefined reference to `rtems_bsdnet_config'
/usr/local/src/rtems/build/i386-rtems/c/pc386/exec/libnetworking/../../
../../../../src/rtems-4.6.2/cpukit/libnetworking/rtems/rtems_glue.c:234:
undefined reference to `rtems_bsdnet_config'
/usr/local/share/i386-rtems/pc386/lib/librtemscpu.a(rtems_glue.o):/usr/
local/src/rtems/build/i386-rtems/c/pc386/exec/libnetworking/../../../..
/../../src/rtems-4.6.2/cpukit/libnetworking/rtems/rtems_glue.c:236: more
undefined references to `rtems_bsdnet_config' follow collect2: ld
returned 1 exit status gmake: *** [../obj/i386/PING/node.img] Error 1


i configured rtems with --enable-networking cause i want to use it. but
i dont want pppd or something like that (apart form these linker probs
it increases the image i guess) ...

so some ppp stuff is complaining about rtems_bsdnet_config but in fact i
have such struct in one of my header files compiled into one of my .o
files which is passed to the linker too ...

so i dont know what exactly the prob is - so first thing to try would be
to exclude unnecessary code - i thought ...

thx,
regards,
stan




More information about the users mailing list