[Click] Compilation problems redux

Bob Keyes bob at xa.net
Wed Jul 7 23:36:46 EDT 2004



On Wed, 7 Jul 2004, Eddie Kohler wrote:

> Hi Bob,
>
> > /usr/include/asm/smp.h:73: mach_apicdef.h: No such file or directory
> > In file included from ../include/click/straccum.hh:4,
> >                  from ../lib/string.cc:21:
> > ../include/click/glue.hh:28: linux/malloc.h: No such file or directory
> > make[1]: *** [string.o] Error 1
> > make[1]: Leaving directory
> > `/mnt/filestore/nellydata/home/bobk/click/linuxmodule'
> >
> >
> >
> > Hrm, full paths for the include files...so it looks like I have to
> > install
> > the patched kernel before compiling click? simply having it compled
> > isn't
> > enough? I suppose I can try to set up some sort of chroot...
>
> Have you actually compiled the kernel?  You're right that files under
> /usr/include should not be found here.
>
> Oh wait, I bet I know what it is.  You gave a relative path to
> "--with-linux".  That won't work; provide an absolute path.  I'll
> change configure to warn about relative paths.

Ok, that's it then.

Speaking of absolute paths, I had to change two includes of click_wifi.hh
in elements/include/rxfcserr.h and elements/wifi/wifitxfeedback.cc, as it
was not found.

Also, the archive shows this error related to ax25. I'd actually like to
see if this may get some attention, because I had the idea of running
roofnet of sorts over packet radio. It's not a super critical thing to
have fixed, but it would make some cool ideas practical.

In file included from /usr/src/kernel-source-2.4.20/include/net/sock.h:64,
                 from /usr/src/kernel-source-2.4.20/include/net/ip.h:39,
                 from
/usr/src/kernel-source-2.4.20/include/net/checksum.h:31,
                 from ../include/clicknet/ip.h:8,
                 from ../include/click/ipaddress.hh:6,
                 from ../include/click/packet.hh:4,
                 from ../include/click/element.hh:7,
                 from ../include/click/router.hh:4,
                 from ../lib/templatei.cc:21:
/usr/src/kernel-source-2.4.20/include/net/ax25.h:179: declaration of
`struct ax25_dev * ax25_cb::ax25_dev'
/usr/src/kernel-source-2.4.20/include/net/ax25.h:173: changes meaning of
`ax25_dev' from `typedef struct ax25_dev ax25_dev'
make[1]: *** [templatei.o] Error 1
make[1]: Leaving directory `/home/bob/click/linuxmodule'
make: *** [linuxmodule] Error 2




More information about the click mailing list