[ovs-discuss] Error compiling on CentOS 5.3

Paolo Cravero pcravero at as2594.net
Mon Oct 12 13:31:08 UTC 2009


Ben,
an update.

On CentOS 5.3 I compiled autoconf 2.64 so that I could use the GIT snapshot.

It did install and overwrite the installed RPM binaries, nevermind.

'boot.sh' ran OK
'configure' for kernel module ran OK
'make' ran OK with few warnings like

/root/setup/a/datapath/linux-2.6/datapath.c: In function âopenvswitch_ioctlâ:
/root/setup/a/datapath/linux-2.6/datapath.c:1429: warning: cast from pointer 
to integer of different size
/root/setup/a/datapath/linux-2.6/datapath.c:1429: warning: cast from pointer 
to integer of different size
/root/setup/a/datapath/linux-2.6/datapath.c:1429: warning: cast from pointer 
to integer of different size
/root/setup/a/datapath/linux-2.6/datapath.c:1429: warning: cast from pointer 
to integer of different size
/root/setup/a/datapath/linux-2.6/datapath.c:1440: warning: cast to pointer 
from integer of different size
/root/setup/a/datapath/linux-2.6/datapath.c: In function âopenvswitch_readâ:
/root/setup/a/datapath/linux-2.6/datapath.c:1506: warning: cast from pointer 
to integer of different size
/root/setup/a/datapath/linux-2.6/datapath.c:1546: warning: comparison of 
distinct pointer types lacks a cast
/root/setup/a/datapath/linux-2.6/datapath.c: In function âopenvswitch_pollâ:
/root/setup/a/datapath/linux-2.6/datapath.c:1568: warning: cast from pointer 
to integer of different size

and other warnings regarding size_t. I can send you a grep or warnings if needed.


'make check' returned this output (2 tests skipped):

## ------------------------------ ##
## openvswitch 0.90.5 test suite. ##
## ------------------------------ ##

code coverage

   1: initialize lcov                                 skipped (lcov-pre.at:8)

library unit tests

   2: test flow extractor                             ok
   3: test TCP/IP checksumming                        ok
   4: test flow classifier                            ok
   5: test hash functions                             ok
   6: test hash map                                   ok
   7: test linked lists                               ok
   8: test SHA-1                                      ok
   9: test type properties                            ok
  10: test vconn library                              ok

Spanning Tree Protocol unit tests

  11: STP example from IEEE 802.1D-1998               ok
  12: STP example from IEEE 802.1D-2004 figures 17.4 and 17.5 ok
  13: STP example from IEEE 802.1D-2004 figure 17.6   ok
  14: STP example from IEEE 802.1D-2004 figure 17.7   ok
  15: STP.io.1.1: Link Failure                        ok
  16: STP.io.1.2: Repeated Network                    ok
  17: STP.io.1.4: Network Initialization              ok
  18: STP.io.1.5: Topology Change                     ok
  19: STP.op.1.1 and STP.op.1.2                       ok
  20: STP.op.1.4: All Ports Initialized to Designated Ports ok
  21: STP.op.3.1: Root Bridge Selection: Root ID Values ok
  22: STP.op.3.3: Root Bridge Selection: Bridge ID Values ok
  23: STP.op.3.3: Root Bridge Selection: Bridge ID Values ok

ovs-vsctl unit tests -- real bridges

  24: add-br a                                        ok
  25: add-br a, add-br b                              ok
  26: add-br a, add-br b, del-br a                    ok
  27: add-br a b, add-port a a1, add-port b b1, del-br a ok
  28: add-br a, add-bond a bond0 a1 a2 a3             ok
  29: add-br a b, add-port a a1, add-port b b1, del-port a a1 ok
  30: add-br a, add-bond a bond0 a1 a2 a3, del-port a bond0 ok

ovs-vsctl unit tests -- fake bridges

  31: simple fake bridge                              ok
  32: simple fake bridge + del-br fake bridge         ok
  33: simple fake bridge + del-br real bridge         ok
  34: fake bridge on bond                             ok
  35: fake bridge on bond + del-br fake bridge        ok
  36: fake bridge on bond + del-br real bridge        ok

code coverage

  37: generate coverage.html with lcov                skipped (lcov-post.at:4)

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

35 tests were successful.



So all tests have passed using the latest snapshot (2009-10-12 at 13:00z) on 
CentOS 5.3 and having manually updated automake to 2.64.

Now I'll play with the configuration of OVS.

Regards,
PaOlo Cravero




More information about the discuss mailing list