Uploaded image for project: 'hicn'
  1. hicn
  2. HICN-431

sysrepo plugin does no build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 20.09
    • None
    • hicn/sysrepo-hicn
    • None

      Scanning dependencies of target hicn_api_test_plugin [ 90%] Building C object hicn-plugin/CMakeFiles/hicn_api_test_plugin.dir/src/hicn_api_test.c.o [ 91%] Building C object hicn-plugin/CMakeFiles/hicn_api_test_plugin.dir/src/error.c.o [ 92%] Linking C shared library hicn_api_test_plugin.so [ 93%] Built target hicn_api_test_plugin Scanning dependencies of target sysrepohicn.shared [ 94%] Building C object ctrl/sysrepo-plugins/hicn-plugin/CMakeFiles/sysrepohicn.shared.dir/plugin/ietf/ietf_interface.c.o [ 95%] Building C object ctrl/sysrepo-plugins/hicn-plugin/CMakeFiles/sysrepohicn.shared.dir/plugin/model/hicn_model.c.o /w/workspace/hicn-sysrepo-plugin-verify-master/ctrl/sysrepo-plugins/hicn-plugin/plugin/model/hicn_model.c: In function ‘routes_update’: /w/workspace/hicn-sysrepo-plugin-verify-master/ctrl/sysrepo-plugins/hicn-plugin/plugin/model/hicn_model.c:423:6: error: ‘memcpy’ forming offset [17, 20] is out of the bounds [0, 16] of object ‘sa’ with type ‘struct sockaddr_in’ [-Werror=array-bounds] memcpy(&sa.sin_addr.s_addr,temp->route.prefix.address.un.ip4,INET_ADDRSTRLEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /w/workspace/hicn-sysrepo-plugin-verify-master/ctrl/sysrepo-plugins/hicn-plugin/plugin/model/hicn_model.c:422:25: note: ‘sa’ declared here struct sockaddr_in sa; ^~ cc1: all warnings being treated as errors ctrl/sysrepo-plugins/hicn-plugin/CMakeFiles/sysrepohicn.shared.dir/build.make:86: recipe for target 'ctrl/sysrepo-plugins/hicn-plugin/CMakeFiles/sysrepohicn.shared.dir/plugin/model/hicn_model.c.o' failed make[2]: *** [ctrl/sysrepo-plugins/hicn-plugin/CMakeFiles/sysrepohicn.shared.dir/plugin/model/hicn_model.c.o] Error 1 CMakeFiles/Makefile2:573: recipe for target 'ctrl/sysrepo-plugins/hicn-plugin/CMakeFiles/sysrepohicn.shared.dir/all' failed make[1]: *** [ctrl/sysrepo-plugins/hicn-plugin/CMakeFiles/sysrepohicn.shared.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2 Build step 'Execute shell' marked build as failure

            mashemat Masoud Hemmatpour
            muscariello Luca Muscariello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: