[Click] big endian supporting?

YenJung Chang yenjung at gmail.com
Mon Oct 3 02:49:44 EDT 2005


In addition, I could not build click for the big-endian board
successfully before I hacked include/click/glue.hh.

This is the output message.
--------------------------------------------------------------------------------------------------
mips-linux-g++ -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H
-I../include -I../include -I. -I..  -DCLICK_USERLEVEL -static -MD -c
../elements/wifi/analysis/printpower.cc
../elements/wifi/analysis/printpower.cc: In constructor `
   PrintPower::PrintPower()':
../elements/wifi/analysis/printpower.cc:32: warning: `__base_ctor' is
   deprecated (declared at ../include/click/element.hh:33)
mips-linux-g++ -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H
-I../include -I../include -I. -I..  -DCLICK_USERLEVEL -static -MD -c
../elements/wifi/analysis/printrate.cc
../elements/wifi/analysis/printrate.cc: In constructor `PrintRate::PrintRate()
   ':
../elements/wifi/analysis/printrate.cc:32: warning: `__base_ctor' is deprecated
   (declared at ../include/click/element.hh:33)
mips-linux-g++ -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H
-I../include -I../include -I. -I..  -DCLICK_USERLEVEL -static -MD -c
../elements/wifi/analysis/printseq.cc
../elements/wifi/analysis/printseq.cc: In member function `virtual Packet*
   PrintSeq::simple_action(Packet*)':
../elements/wifi/analysis/printseq.cc:68: error: `bswap_16' undeclared (first
   use this function)
../elements/wifi/analysis/printseq.cc:68: error: (Each undeclared identifier is
   reported only once for each function it appears in.)
../elements/wifi/analysis/printseq.cc:70: error: `bswap_32' undeclared (first
   use this function)
make[1]: *** [printseq.o] Error 1
make[1]: Leaving directory `/home1/spencer/roofnet/click-2005.10.03/userlevel'
make: *** [userlevel] Error 2
----------------------------------------------------------------------------------------------------

This is what I added in include/click/glue.hh
------------------------------------------------------------------------------------------------
Index: include/click/glue.hh
===================================================================
RCS file: /cvs/click/release/one/include/click/glue.hh,v
retrieving revision 1.50
diff -u -r1.50 glue.hh
--- include/click/glue.hh       25 Aug 2005 04:34:59 -0000      1.50
+++ include/click/glue.hh       3 Oct 2005 06:18:38 -0000
@@ -69,6 +69,10 @@
 #  include "simclick.h"
 # endif

+# if CLICK_BYTE_ORDER == CLICK_BIG_ENDIAN
+#  include <byteswap.h>
+# endif
+
 #endif
------------------------------------------------------------------------------------------------

This is the steps I executed.
------------------------------------------------------------------------------------------------
./configure --enable-wifi --disable-linuxmodule
--build=i686-pc-linux-gnu --host=mipsel-linux --enable-tools=mixed
CLFLAGS=-static CXXFLAGS=-static
make
------------------------------------------------------------------------------------------------

Please refer to attached config.log for more information.

After I added those three lines in include/click/glue.hh,
userlevel/click could be built successfully. Is this a bug?
(Although userlevel/click was built, but it could not work well as
described in previous mails.)

Thanks,
YJ.

2005/10/3, YenJung Chang <yenjung at gmail.com>:
> BTW, I have had the click for x86 use this roofnet.click, it worked
> well; there was no error messages and srcr interface was created
> successfully at least.
>
> Thanks,
> YJ.
>
> 2005/9/30, YenJung Chang <yenjung at gmail.com>:
> > Thanks for your reply.
> >
> > I am planing to use Click (userlevel) in a big endian board. And when
> > I run "click roofnet.click", the following message is out.
> > .....
> > /home/am0/biswas/roofnet.click:27: While configuring 'srcr/es :: ETTStat':
> >   Must specify ETHTYPE
> > /home/am0/biswas/roofnet.click:41: While configuring 'srcr/forwarder
> > :: SRForwarder'
> > :
> >   ETHTYPE not specified
> > Router could not be initialized!
> > Segmentation fault
> >
> > Please refer to the attached for the roofnet.click, and tell me if you
> > need more information. :)
> >
> > Thansk.
> > YJ.
> >
> >
> >
> >
> >
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 147801 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20051003/4b536112/config-0001.obj


More information about the click mailing list