Skip to content

Build errors #4

Description

@cheskos

Hi. I'm getting this as soon as I start to build

[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o /myPath/dashcoin/external/miniupnpc/upnpc.c: In function 'main': /myPath/dashcoin/external/miniupnpc/upnpc.c:130:23: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 6 [-Werror=format-truncation=] snprintf(index, 6, "%d", i); ^~ /myPath/dashcoin/external/miniupnpc/upnpc.c:130:22: note: directive argument in the range [0, 2147483647] snprintf(index, 6, "%d", i); ^~~~ /myPath/dashcoin/external/miniupnpc/upnpc.c:130:3: note: 'snprintf' output between 2 and 11 bytes into a destination of size 6 snprintf(index, 6, "%d", i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[3]: *** [external/miniupnpc/CMakeFiles/upnpc-static.dir/build.make:183: external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o] Error 1 make[3]: Leaving directory '/myPath/dashcoin/build/release' make[2]: *** [CMakeFiles/Makefile2:177: external/miniupnpc/CMakeFiles/upnpc-static.dir/all] Error 2 make[2]: Leaving directory '/myPath/dashcoin/build/release' make[1]: *** [Makefile:95: all] Error 2 make[1]: Leaving directory '/myPath/dashcoin/build/release' make: *** [Makefile:20: build-release] Error 2

I only downloaded boost and gave it a try. Am I missing something? Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions