System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000
Deps: aoetools-36.tar.gz
ATA over Ethernet storage protocol.
bash-5.1# make CFLAGS="-O2 -fPIC -Wl,-s"
+ sed -e 's!@devdir@!/dev/etherd!g' -e 's!@npershelf@!16!g' aoe-discover.in
+ sed -e 's!@devdir@!/dev/etherd!g' -e 's!@npershelf@!16!g' aoe-interfaces.in
+ sed -e 's!@devdir@!/dev/etherd!g' -e 's!@npershelf@!16!g' aoe-mkshelf.in
+ sed -e 's!@devdir@!/dev/etherd!g' -e 's!@npershelf@!16!g' aoe-revalidate.in
+ sed -e 's!@devdir@!/dev/etherd!g' -e 's!@npershelf@!16!g' aoe-flush.in
+ sed -e 's!@devdir@!/dev/etherd!g' -e 's!@npershelf@!16!g' aoe-stat.in
cc -O2 -fPIC -Wl,-s -o aoeping.o -c aoeping.c
cc -O2 -fPIC -Wl,-s -o linux.o -c linux.c
cc -O2 -fPIC -Wl,-s -o aoeping aoeping.o linux.o
cc -O2 -fPIC -Wl,-s -o aoecfg.o -c aoecfg.c
aoecfg.c: In function ‘cfgquery’:
aoecfg.c:133:13: warning: ‘write’ reading 1056 bytes from a region of size 1048 [-Wstringop-overread]
133 | if (write(sfd, c, sizeof *c) == -1) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
aoecfg.c:111:15: note: source object ‘buf’ of size 1048
111 | uchar buf[1024 + sizeof *h];
| ^~~
In file included from aoecfg.c:8:
/usr/include/unistd.h:367:16: note: in a call to function ‘write’ declared with attribute ‘access (read_only, 2, 3)’
367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^~~~~
cc -O2 -fPIC -Wl,-s -o aoecfg aoecfg.o linux.o
cc -O2 -fPIC -Wl,-s -o aoe-sancheck.o -c aoe-sancheck.c
cc -O2 -fPIC -Wl,-s -o aoe-sancheck aoe-sancheck.o -lpthread
bash-5.1#