need help to compile dot1ag
by doudootiana from LinuxQuestions.org on (#5JVB0)
hy,
For my project, i need to compile a daemon which is dot1ag :
it's here
In first time, it's asked to launch a configure script by line command : sh configure.
Second time is the make time.
Code:doudoo@debian-workstation:/tmp/nouveau dossier/dot1ag-utils-master$ CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- make
make all-recursive
make[1]*: on entre dans le repertoire */tmp/nouveau dossier/dot1ag-utils-master*
Making all in src
make[2]*: on entre dans le repertoire */tmp/nouveau dossier/dot1ag-utils-master/src*
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -ggdb -g -O2 -c ethping.c
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -ggdb -g -O2 -c ieee8021ag.c
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -ggdb -g -O2 -c dot1ag_eth.c
dot1ag_eth.c: In function get_local_mac':
dot1ag_eth.c:168:2: error: strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
strncpy(req.ifr_name, dev, sizeof(req.ifr_name));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dot1ag_eth.c: In function send_packet':
dot1ag_eth.c:207:2: error: strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
strncpy(req.ifr_name, ifname, sizeof(req.ifr_name));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:282: dot1ag_eth.o] Error 1
make[2]*: on quitte le repertoire */tmp/nouveau dossier/dot1ag-utils-master/src*
make[1]: *** [Makefile:296: all-recursive] Error 1
make[1]*: on quitte le repertoire */tmp/nouveau dossier/dot1ag-utils-master*
make: *** [Makefile:214: all] Error 2I don't find solution and i have been trying for a week.
Can someone help me please :)?
Thank by advance
For my project, i need to compile a daemon which is dot1ag :
it's here
In first time, it's asked to launch a configure script by line command : sh configure.
Second time is the make time.
Code:doudoo@debian-workstation:/tmp/nouveau dossier/dot1ag-utils-master$ CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- make
make all-recursive
make[1]*: on entre dans le repertoire */tmp/nouveau dossier/dot1ag-utils-master*
Making all in src
make[2]*: on entre dans le repertoire */tmp/nouveau dossier/dot1ag-utils-master/src*
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -ggdb -g -O2 -c ethping.c
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -ggdb -g -O2 -c ieee8021ag.c
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -ggdb -g -O2 -c dot1ag_eth.c
dot1ag_eth.c: In function get_local_mac':
dot1ag_eth.c:168:2: error: strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
strncpy(req.ifr_name, dev, sizeof(req.ifr_name));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dot1ag_eth.c: In function send_packet':
dot1ag_eth.c:207:2: error: strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
strncpy(req.ifr_name, ifname, sizeof(req.ifr_name));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:282: dot1ag_eth.o] Error 1
make[2]*: on quitte le repertoire */tmp/nouveau dossier/dot1ag-utils-master/src*
make[1]: *** [Makefile:296: all-recursive] Error 1
make[1]*: on quitte le repertoire */tmp/nouveau dossier/dot1ag-utils-master*
make: *** [Makefile:214: all] Error 2I don't find solution and i have been trying for a week.
Can someone help me please :)?
Thank by advance