[ovs-discuss] Failing ovs tests on big-endian system

Mijo Safradin mijo at linux.vnet.ibm.com
Tue Dec 23 23:15:23 UTC 2014


Hi Joe,

>
> Would you be able to test the patch below and tell me if it fixes the
> issue on your platform and provide a log if it doesn't?

I applied the patch and the test does pass now.

test log:
/bin/sh './tests/testsuite' -C tests 
AUTOTEST_PATH=utilities:vswitchd:ovsdb:vtep:tests 23
## ------------------------------ ##
## openvswitch 2.3.90 test suite. ##
## ------------------------------ ##
  23: test hash functions                             ok

## ------------- ##
## Test results. ##
## ------------- ##

1 test was successful.

To run the test I had to fix this build error first:

libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I ./include -I 
./include -I ./lib -I ./lib -Wstrict-prototypes -Wall -Wextra 
-Wno-sign-compare -Wpointer-arith -Wno-format-zero-length -Wswitch-enum 
-Wunused-parameter -Wbad-function-cast -Wcast-align -Wmissing-prototypes 
-Wmissing-field-initializers -fno-strict-aliasing -g -O2 -MT lib/bfd.lo 
-MD -MP -MF lib/.deps/bfd.Tpo -c lib/bfd.c -o lib/bfd.o
In file included from lib/packets.h:28:0,
                  from lib/bfd.h:24,
                  from lib/bfd.c:16:
lib/hash.h:88:24: error: static declaration of 'hash128_to_32' follows 
non-static declaration
  static inline uint32_t hash128_to_32(const ovs_u128 *hash)
                         ^
lib/hash.h:38:10: note: previous declaration of 'hash128_to_32' was here
  uint32_t hash128_to_32(const ovs_u128 *hash);
           ^
make[2]: *** [lib/bfd.lo] Error 1
make[2]: Leaving directory `/root/ovs-mastertest'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ovs-mastertest'
make: *** [all] Error 2

Thanks,
Mijo




More information about the discuss mailing list