Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-31

Build issue with new sr-replicate code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 16.06
    • None
    • None

      Only seems to affect this one box of mine; a fresh Ubuntu 16.04 install on an Atom C2558. This system is otherwise unremarkable, other than being fairly low-powered. Built using both the "build.sh" and "make build" methods, both trigger this issue.

      When linking the vnet library this warning is emitted:

      {{
      /usr/bin/ld: Warning: size of symbol `sr_replicate_node' changed from 112 in vnet/sr/.libs/sr.o to 120 in vnet/sr/.libs/sr_replicate.o
      }}

      The resulting vpp binary then complains that the sr-replicate node does not exist.

      A quick hack to change the sr.h declaration:
      {{
      -vlib_node_registration_t sr_replicate_node;
      +extern vlib_node_registration_t sr_replicate_node;
      }}
      and commenting out all other extra declarations of it in sr_replicate.c resolves the issue, opening a wider question around this declaration pattern elsewhere.

      Keith and I are looking into this.

            chrisluke Chris Luke
            chrisluke Chris Luke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: