1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt prog/dump/superio.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/superio.rd prog/dump/superio.ro: Makefile '`dirname prog/dump/superio.rd`/Module.mk' @' > prog/dump/superio.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt prog/dump/isaset.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/isaset.rd prog/dump/isaset.ro: Makefile '`dirname prog/dump/isaset.rd`/Module.mk' @' > prog/dump/isaset.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt prog/dump/isadump.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/isadump.rd prog/dump/isadump.ro: Makefile '`dirname prog/dump/isadump.rd`/Module.mk' @' > prog/dump/isadump.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt prog/dump/util.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/util.rd prog/dump/util.ro: Makefile '`dirname prog/dump/util.rd`/Module.mk' @' > prog/dump/util.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt prog/sensors/chips.c | \
sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd prog/sensors/chips.ro: Makefile '`dirname prog/sensors/chips.rd`/Module.mk' @' > prog/sensors/chips.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt prog/sensors/main.c | \
sed -e 's@^\(.*\)\.o:@prog/sensors/main.rd prog/sensors/main.ro: Makefile '`dirname prog/sensors/main.rd`/Module.mk' @' > prog/sensors/main.rd
/usr/bin/bison
bison -p sensors_yy -d lib/conf-parse.y -o lib/conf-parse.c
/usr/bin/flex
flex -Psensors_yy -t -Cfe -8 lib/conf-lex.l > lib/conf-lex.c
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/conf-lex.c | \
sed -e 's@^\(.*\)\.o:@lib/conf-lex.ad lib/conf-lex.ao: Makefile '`dirname lib/conf-lex.ad`/Module.mk' @' > lib/conf-lex.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/conf-parse.c | \
sed -e 's@^\(.*\)\.o:@lib/conf-parse.ad lib/conf-parse.ao: Makefile '`dirname lib/conf-parse.ad`/Module.mk' @' > lib/conf-parse.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/sysfs.c | \
sed -e 's@^\(.*\)\.o:@lib/sysfs.ad lib/sysfs.ao: Makefile '`dirname lib/sysfs.ad`/Module.mk' @' > lib/sysfs.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/init.c | \
sed -e 's@^\(.*\)\.o:@lib/init.ad lib/init.ao: Makefile '`dirname lib/init.ad`/Module.mk' @' > lib/init.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/access.c | \
sed -e 's@^\(.*\)\.o:@lib/access.ad lib/access.ao: Makefile '`dirname lib/access.ad`/Module.mk' @' > lib/access.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/error.c | \
sed -e 's@^\(.*\)\.o:@lib/error.ad lib/error.ao: Makefile '`dirname lib/error.ad`/Module.mk' @' > lib/error.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/general.c | \
sed -e 's@^\(.*\)\.o:@lib/general.ad lib/general.ao: Makefile '`dirname lib/general.ad`/Module.mk' @' > lib/general.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/data.c | \
sed -e 's@^\(.*\)\.o:@lib/data.ad lib/data.ao: Makefile '`dirname lib/data.ad`/Module.mk' @' > lib/data.ad
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/conf-lex.c | \
sed -e 's@^\(.*\)\.o:@lib/conf-lex.ld lib/conf-lex.lo: Makefile '`dirname lib/conf-lex.ld`/Module.mk' @' > lib/conf-lex.ld
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/conf-parse.c | \
sed -e 's@^\(.*\)\.o:@lib/conf-parse.ld lib/conf-parse.lo: Makefile '`dirname lib/conf-parse.ld`/Module.mk' @' > lib/conf-parse.ld
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/sysfs.c | \
sed -e 's@^\(.*\)\.o:@lib/sysfs.ld lib/sysfs.lo: Makefile '`dirname lib/sysfs.ld`/Module.mk' @' > lib/sysfs.ld
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/init.c | \
sed -e 's@^\(.*\)\.o:@lib/init.ld lib/init.lo: Makefile '`dirname lib/init.ld`/Module.mk' @' > lib/init.ld
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/access.c | \
sed -e 's@^\(.*\)\.o:@lib/access.ld lib/access.lo: Makefile '`dirname lib/access.ld`/Module.mk' @' > lib/access.ld
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/error.c | \
sed -e 's@^\(.*\)\.o:@lib/error.ld lib/error.lo: Makefile '`dirname lib/error.ld`/Module.mk' @' > lib/error.ld
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/general.c | \
sed -e 's@^\(.*\)\.o:@lib/general.ld lib/general.lo: Makefile '`dirname lib/general.ld`/Module.mk' @' > lib/general.ld
gcc -M -MG -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt lib/data.c | \
sed -e 's@^\(.*\)\.o:@lib/data.ld lib/data.lo: Makefile '`dirname lib/data.ld`/Module.mk' @' > lib/data.ld
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/data.c -o lib/data.lo
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/general.c -o lib/general.lo
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/error.c -o lib/error.lo
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/access.c -o lib/access.lo
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/init.c -o lib/init.lo
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/sysfs.c -o lib/sysfs.lo
lib/sysfs.c: In function 'find_bus_type':
lib/sysfs.c:637:8: warning: '/class/i2c-adapter/i2c-' directive output may be truncated writing 23 bytes into a region of size between 1 and 255 [-Wformat-truncation=]
"%s/class/i2c-adapter/i2c-%d/device",
^~~~~~~~~~~~~~~~~~~~~~~
lib/sysfs.c:637:5: note: directive argument in the range [-32768, 32767]
"%s/class/i2c-adapter/i2c-%d/device",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from lib/sensors.h:25,
from lib/data.h:25,
from lib/sysfs.c:34:
/usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 32 and 291 bytes into a destination of size 255
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/sysfs.c: In function 'sensors_read_dynamic_chip':
lib/sysfs.c:408:31: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=]
snprintf(path, NAME_MAX, "%s/%s", device, attr);
^~
In file included from /usr/include/stdio.h:867,
from lib/sensors.h:25,
from lib/data.h:25,
from lib/sysfs.c:34:
/usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 255
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wno-undef -c lib/conf-parse.c -o lib/conf-parse.lo
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -fpic -D_REENTRANT -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wno-shadow -Wno-undef -Wno-unused -Wno-missing-prototypes -Wno-sign-compare -c lib/conf-lex.c -o lib/conf-lex.lo
gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--version-script=lib/libsensors.map -Wl,-soname,libsensors.so.5 -o lib/libsensors.so.5.0.0 lib/data.lo lib/general.lo lib/error.lo lib/access.lo lib/init.lo lib/sysfs.lo lib/conf-parse.lo lib/conf-lex.lo -lc -lm
rm -f lib/libsensors.so.5
ln -sf libsensors.so.5.0.0 lib/libsensors.so.5
rm -f lib/libsensors.so
ln -sf libsensors.so.5.0.0 lib/libsensors.so
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/data.c -o lib/data.ao
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/general.c -o lib/general.ao
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/error.c -o lib/error.ao
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/access.c -o lib/access.ao
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/init.c -o lib/init.ao
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/sysfs.c -o lib/sysfs.ao
lib/sysfs.c: In function 'find_bus_type':
lib/sysfs.c:637:8: warning: '/class/i2c-adapter/i2c-' directive output may be truncated writing 23 bytes into a region of size between 1 and 255 [-Wformat-truncation=]
"%s/class/i2c-adapter/i2c-%d/device",
^~~~~~~~~~~~~~~~~~~~~~~
lib/sysfs.c:637:5: note: directive argument in the range [-32768, 32767]
"%s/class/i2c-adapter/i2c-%d/device",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from lib/sensors.h:25,
from lib/data.h:25,
from lib/sysfs.c:34:
/usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 32 and 291 bytes into a destination of size 255
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/sysfs.c: In function 'sensors_read_dynamic_chip':
lib/sysfs.c:408:31: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=]
snprintf(path, NAME_MAX, "%s/%s", device, attr);
^~
In file included from /usr/include/stdio.h:867,
from lib/sensors.h:25,
from lib/data.h:25,
from lib/sysfs.c:34:
/usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 255
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wno-undef -c lib/conf-parse.c -o lib/conf-parse.ao
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wno-shadow -Wno-undef -Wno-unused -Wno-missing-prototypes -Wno-sign-compare -c lib/conf-lex.c -o lib/conf-lex.ao
rm -f lib/libsensors.a
ar rcvs lib/libsensors.a lib/data.ao lib/general.ao lib/error.ao lib/access.ao lib/init.ao lib/sysfs.ao lib/conf-parse.ao lib/conf-lex.ao
a - lib/data.ao
a - lib/general.ao
a - lib/error.ao
a - lib/access.ao
a - lib/init.ao
a - lib/sysfs.ao
a - lib/conf-parse.ao
a - lib/conf-lex.ao
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c prog/sensors/main.c -o prog/sensors/main.ro
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c prog/sensors/chips.c -o prog/sensors/chips.ro
gcc -Wl,-rpath,/usr/lib -o prog/sensors/sensors prog/sensors/main.ro prog/sensors/chips.ro -Llib -lsensors
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c prog/dump/isadump.c -o prog/dump/isadump.ro
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c prog/dump/superio.c -o prog/dump/superio.ro
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c prog/dump/util.c -o prog/dump/util.ro
gcc -Wl,-rpath,/usr/lib -o prog/dump/isadump prog/dump/isadump.ro prog/dump/superio.ro prog/dump/util.ro
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c prog/dump/isaset.c -o prog/dump/isaset.ro
gcc -Wl,-rpath,/usr/lib -o prog/dump/isaset prog/dump/isaset.ro prog/dump/util.ro
gcc -DETCDIR="\"/etc\"" -I. -D_FORTIFY_SOURCE=2 -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c lib/test/test-scanner.c -o lib/test/test-scanner.ro
gcc -Wl,-rpath,/usr/lib -o lib/test/test-scanner lib/test/test-scanner.ro lib/conf-lex.ao lib/error.ao lib/general.ao -Llib
|