Hi!
I just downloaded the latest code following the git instructions from the readme.
Then, following the build instructions I had the following error:
$ make
[ 5%] Building C object src/CMakeFiles/arpon.dir/arpca.c.o
In function ‘arpca_add’,
inlined from ‘arpca_overwrite’ at /home/ilario/software/arpon/src/arpca.c:373:13:
/home/ilario/software/arpon/src/arpca.c:439:9: error: ‘strncpy’ specified bound 16 equals destination size [-Werror=stringop-truncation]
439 | strncpy(ar.arp_dev, interface, IF_NAMESIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/arpon.dir/build.make:76: src/CMakeFiles/arpon.dir/arpca.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:242: src/CMakeFiles/arpon.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Then I applied the patch included in #1 and the error remained.
The file CMakeCache.txt in the build directory has a place to add CFLAGS, change it to include:
CMAKE_C_FLAGS:STRING=-Wno-error=stringop-truncation -Wno-error=implicit-fallthrough -Wno-error=pointer-compare
Last edit: Trainy McTrainface 2023-05-02