Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] ARM Build

From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Wed, 15 Oct 2014 20:03:14 +0200
Hi,

I have try to build wireshark on ARM(v7) Machine (Using the new cloud
from Online.net[1])

I have try to build lasted trunk/master of wireshark (to test speed..)
but don't build :

ftype-pcre.c: In function 'raw_flag_needed':
ftype-pcre.c:64:13: error: comparison is always true due to limited
range of data type [-Werror=type
-limits]
             (s[i] >= '\xFA' && s[i] <= '\xFF'))
             ^
packet-mac-lte.c: In function 'dissect_mac_lte':
packet-mac-lte.c:5334:39: error: 'rapid_description' may be used
uninitialized in this function [-We
rror=maybe-uninitialized]
                 expert_add_info_format(pinfo, ti,
                                       ^
cc1: all warnings being treated as errors
./wslua_internals.c: In function 'wslua_hex2bin':
./wslua_internals.c:556:9: error: comparison is always false due to
limited range of data type [-Wer
ror=type-limits]
         if (c < 0) {
         ^
./wslua_internals.c:565:9: error: comparison is always false due to
limited range of data type [-Wer
ror=type-limits]
         if (d < 0) break;
         ^
strutil.c: In function 'hex_str_to_bytes_encoding':
strutil.c:634:13: error: comparison is always false due to limited
range of data type [-Werror=type-
limits]
             if (c < 0) {
             ^
strutil.c:641:13: error: comparison is always false due to limited
range of data type [-Werror=type-
limits]
             if (d < 0) {
             ^
strutil.c:650:13: error: comparison is always true due to limited
range of data type [-Werror=type-l
imits]
             if (sep > 0 && *end == sep && str_to_nibble[(int)*(end+1)] > -1) {
             ^
airpcap_loader.c: In function 'airpcap_if_get_device_supported_channels_array':
airpcap_loader.c:841:17: error: case label value is less than minimum
value for type [-Werror]
                 case -1:
                 ^
airpcap_loader.c:870:17: error: case label value is less than minimum
value for type [-Werror]
                 case -1:
                 ^

The machine use Ubuntu 14.04 TLS (armhf) with standard GCC :
root@c1-10-1-10-225:~/wireshark# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.8.2-19ubuntu1'
--with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcx(x-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --disable-libmudflap --disable-libitm
--disable-libquadmath --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-armhf
--with-arch-directory=arm
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch --enable-multilib --disable-sjlj-exceptions
--with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard
--with-mode=thumb --disable-werror --enable-checking=release
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-19ubuntu1)


May be time to add ARM trunk buildbot ? ;-)


[1] http://labs.online.net/#/ (It is possible to try for free...)