[Click] Running click on openwrt

Harald Schioeberg harald at net.t-labs.tu-berlin.de
Mon Oct 18 13:10:04 EDT 2010


On Sat, 2010-10-16 at 22:03 -0700, Eddie Kohler wrote: 
> Hi Ruben,
> 
> Thanks for sending this.  Have you analyzed any deeper what our current 
> makefiles get wrong?  I've applied a version of the patch in your package 
> directory, so that /usr/sbin/iptables should no longer be a problem on openwrt.

Hi Eddie, 

Click does nothing wrong, it's just that OpenWRT just happens to use
"make" as meta build system, so the Makefile here is totally OpenWRT
specific, it only works as an include to OpenWRT's core makefile, and
actually calls Click's make underneath...

It currently builds userlevel only, since back when we wrote it, there
was no patchless....

harald 
> 
> Eddie
> 
> 
> On 10/06/2010 03:52 PM, Ruben Merz wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > The package directory is in attachment. Let me know if you have any
> > question. Credit goes to Harald Schioeberg for the Makefile.
> >
> > Ruben
> >
> > On 10/6/10 14:20 , Roberto Riggio wrote:
> >>
> >> Could you send the makefile to the ML?
> >>
> >> On 10/06/2010 02:05 PM, Ruben Merz wrote:
> >> Hi Roberto,
> >>
> >> Yes we do. We have a "package" setup (Makefile and patches) for openwrt
> >> that I'm happy to share with you if you'd like. It works on backfire and
> >> 8.09.2.
> >>
> >> Ruben
> >>
> >> On 10/6/10 12:47 , Roberto Riggio wrote:
> >>>>>     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.
> >>>>> _______________________________________________
> >>>>> click mailing list
> >>>>> click at amsterdam.lcs.mit.edu
> >>>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.10 (Darwin)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >
> > iQEcBAEBAgAGBQJMrP29AAoJEIem9YkUyRjtllwH/A4NNafW2uhwvXmDzFkzrGxP
> > 964nQObWGZDOrVoBny9mSDxfGjdgs+a1gM6a25E2LS/t4e0Ab4WwycWfP6tcBaa3
> > ETPaB4eSCySL9szjcPdIJFiaN8QLeVOGarwUuFJZYET4+liSp4TROWfMQmM+wHgP
> > xrkzElVphRukgcroMTJmfNcTHo5Jh8Q9A0IzL8W4AcgbgFAamOnGOJ7D3EW6a2V6
> > WTOeP9ZBW5jw715MmpNIbdni1bdtj4z7T3+jBDe701d7g+q+FPN6SsLDq5ELFF71
> > rl5dSvD8AKajWYUDn8J0fX6N92TF+7aT6vcRGCCF8FOWhvuvOH3KTBD81TDZSk8=
> > =uGs5
> > -----END PGP SIGNATURE-----
> >
> >
> >
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click




More information about the click mailing list