[Click] Running click on openwrt

Roberto Riggio roberto.riggio at create-net.org
Wed Oct 6 06:47:27 EDT 2010


  Hi,

is there anybody on the mailing list that is using click on embedded 
platforms?

I'm trying to compile click using the procedure suggested in faq, the one
that involves using click-mkmindriver in order to shrink the size of the 
executable.

During the compilation phase I get the following error:

g++   -O2 -pipe -march=i486 -funit-at-a-time -static -MD 
-fno-stack-protector 
-L/home/rriggio/src/kamikaze/staging_dir/target-i386_uClibc-0.9.30.1/usr/lib 
-L/home/rriggio/src/kamikaze/staging_dir/target-i386_uClibc-0.9.30.1/lib 
-L/home/rriggio/src/kamikaze/staging_dir/toolchain-i386_gcc-4.4.4_uClibc-0.9.30.1/usr/lib 
-L/home/rriggio/src/kamikaze/staging_dir/toolchain-i386_gcc-4.4.4_uClibc-0.9.30.1/lib  
-o click-mkmindriver -rdynamic click-mkmindriver.o 
../lib/libclicktool_build.a
/usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
(.text+0x11): undefined reference to `__libc_csu_init'
/usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
(.text+0x1d): undefined reference to `__libc_start_main'
collect2: ld returned 1 exit status

So openwrt is correctly using the host g++ but something goes wrong during
the linking phase. Any hints about how to further investigate this issue?

Note that if I cross-compile click normally, i.e. without using 
click-mkmindriver
everything is working properly.

R.


More information about the click mailing list