[Click] FreeBSD 6.0

Andrew Chanler orlot at rocketmail.com
Tue Mar 28 12:57:08 EST 2006


Has anyone built the freebsd kernel module on a FreeBSD 6.0 machine?  I
am having build problems.  first ./configure failed because it couldn't
/usr/src/sys/kern/vnode_if.pl and I searched around and found
/usr/src/sys/tools/vnode_if.awk which does the samething.  So I fixed
./configure and the makefile to use that awk script.  But now I get a
much tougher error.  anyone seen something like this before?


g++ -w -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H  -nostdinc
-I../include -I../include -I. -I.. -I. -I/usr/include -DCLICK_BSDMODULE
-DBSD_NETISRSCHED -O2 -g -c module.cc
In file included from /usr/include/sys/systm.h:246,
                 from modulepriv.hh:13,
                 from module.cc:20:
/usr/include/sys/libkern.h: In function `uint32_t crc32_raw(const
void*, size_t, uint32_t)':
/usr/include/sys/libkern.h:118: error: invalid conversion from `const
void*' to `const uint8_t*'
In file included from /usr/include/sys/vnode.h:547,
                 from modulepriv.hh:16,
                 from module.cc:20:
./vnode_if.h:9:30: vnode_if_typedef.h: No such file or directory
./vnode_if.h:10:31: vnode_if_newproto.h: No such file or directory
In file included from ../include/click/glue.hh:50,
                 from ../include/click/element.hh:4,
                 from ../include/click/router.hh:4,
                 from modulepriv.hh:21,
                 from module.cc:20:
/usr/include/sys/mbuf.h: In function `mbuf* m_get(int, short int)':
/usr/include/sys/mbuf.h:376: error: invalid conversion from `void*' to
`mbuf*'
/usr/include/sys/mbuf.h: In function `mbuf* m_getclr(int, short int)':
/usr/include/sys/mbuf.h:389: error: invalid conversion from `void*' to
`mbuf*'
/usr/include/sys/mbuf.h: In function `mbuf* m_gethdr(int, short int)':
/usr/include/sys/mbuf.h:403: error: invalid conversion from `void*' to
`mbuf*'
/usr/include/sys/mbuf.h: In function `mbuf* m_getcl(int, short int,
int)':
/usr/include/sys/mbuf.h:414: error: invalid conversion from `void*' to
`mbuf*'
/usr/include/sys/mbuf.h: In function `void m_clget(mbuf*, int)':
/usr/include/sys/mbuf.h:438: error: invalid conversion from `void*' to
`char*'
/usr/include/sys/mbuf.h: In function `void m_tag_init(mbuf*)':
/usr/include/sys/mbuf.h:697: error: invalid conversion from `void*' to
`m_tag*'
/usr/include/sys/mbuf.h: In function `m_tag* m_tag_find(mbuf*, int,
m_tag*)':
/usr/include/sys/mbuf.h:773: error: invalid conversion from `void*' to
`m_tag*'
In file included from ../include/click/element.hh:7,
                 from ../include/click/router.hh:4,
                 from modulepriv.hh:21,
                 from module.cc:20:
../include/click/packet.hh: In member function `net_device*
Packet::device_anno() const':
../include/click/packet.hh:230: error: invalid conversion from `void*'
to `net_device*'
../include/click/packet.hh: In static member function `static Packet*
Packet::make(mbuf*)':
../include/click/packet.hh:474: error: invalid conversion from `void*'
to `int*'
../include/click/packet.hh:474: error:   initializing argument 4 of
`mbuf* m_pulldown(mbuf*, int, int, int*)'
module.cc: At global scope:
module.cc:373: error: invalid conversion from `vfsops*' to `u_int'
module.cc:373: error: invalid conversion from `int' to `vfsops*'
module.cc:382: error: expected constructor, destructor, or type
conversion before '(' token
module.cc:382: error: expected `,' or `;' before '(' token
gmake: *** [module.o] Error 1
*** Error code 2



I am trying to run some of the example click files that do NATing, but
they all seem to use ToHost, so I can't run them in userspace.  If I
can't get this BSD module to build, is there away to use something like
mazu-nat.click or thomer-nat.click in userspace?

Thanks,
Andrew Chanler



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the click mailing list