Giter Club home page Giter Club logo

libosdp-rs's People

Contributors

christopherl91 avatar sidcha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

christopherl91

libosdp-rs's Issues

Compilation fails with warnings

Hello, I am getting this error when trying to compile the project on my machine.
Can you check what's the problem? Thanks!

The following warnings were emitted during compilation:

warning: [email protected]: vendor/src/osdp_common.c: In function ‘osdp_get_source_info’:
warning: [email protected]: vendor/src/osdp_common.c:221:13: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
warning: [email protected]:   221 |         if (strnlen(GIT_TAG, 8) > 0) {
warning: [email protected]:       |             ^~~~~~~~~~~~~~~~~~~
warning: [email protected]: vendor/src/osdp_common.c:223:20: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
warning: [email protected]:   223 |         } else if (strnlen(GIT_REV, 8) > 0) {
warning: [email protected]:       |                    ^~~~~~~~~~~~~~~~~~~
warning: [email protected]: cc1: all warnings being treated as errors

error: failed to run custom build command for `libosdp-sys v3.0.5`

Caused by:
  process didn't exit successfully: `/tmp/libosdp-rs/target/debug/build/libosdp-sys-79cad4cae9db8f1f/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("aarch64-unknown-linux-gnu")
  OPT_LEVEL = Some("0")
  HOST = Some("aarch64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_aarch64-unknown-linux-gnu
  CC_aarch64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_aarch64_unknown_linux_gnu
  CC_aarch64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("neon")
  cargo:rerun-if-env-changed=CFLAGS_aarch64-unknown-linux-gnu
  CFLAGS_aarch64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64_unknown_linux_gnu
  CFLAGS_aarch64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=vendor/src/osdp_common.c: In function ‘osdp_get_source_info’:
  cargo:warning=vendor/src/osdp_common.c:221:13: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
  cargo:warning=  221 |         if (strnlen(GIT_TAG, 8) > 0) {
  cargo:warning=      |             ^~~~~~~~~~~~~~~~~~~
  cargo:warning=vendor/src/osdp_common.c:223:20: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
  cargo:warning=  223 |         } else if (strnlen(GIT_REV, 8) > 0) {
  cargo:warning=      |                    ^~~~~~~~~~~~~~~~~~~
  cargo:warning=cc1: all warnings being treated as errors

  --- stderr


  error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-I" "vendor/src" "-I" "vendor/include" "-I" "vendor/utils/include" "-I" "/tmp/libosdp-rs/target/debug/build/libosdp-sys-3fafb24b2d30e3ca/out" "-Wall" "-Wextra" "-Werror" "-o" "/tmp/libosdp-rs/target/debug/build/libosdp-sys-3fafb24b2d30e3ca/out/713e2796ca293819-osdp_common.o" "-c" "vendor/src/osdp_common.c" with args cc did not execute successfully (status code exit status: 1).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.