This project is closed and read-only.
Actions
Bug #5352
closedbuild: 'strlcpy' and 'strlcat' problems with cc1
Bug #5352:
build: 'strlcpy' and 'strlcat' problems with cc1
Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-11-26
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3.1565
Affected Versions:
Description
When building with cc1 (Libreelec 8.2.5) I get following errors ( - for many files - ); reverting this commit e26ce3390a5ca88f3fcee8a7fa0e4bb1b078e538 solve it totally, what can be wrong?
I observed that when this checking goes "fail" (or commit is reverted in all cases) there are not errors and build finish.
CC src/tvhlog.o
src/tvhlog.c: In function 'tvhlog_thread':
src/tvhlog.c:359:9: warning: implicit declaration of function 'strlcpy' [-Wimplicit-function-declaration]
strlcpy(buf, tvhlog_path, sizeof(buf));
^~~~~~~
src/tvhlog.c: At top level:
cc1: warning: unrecognized command line option '-Wno-stringop-overflow'
cc1: warning: unrecognized command line option '-Wno-stringop-truncation'
[...]
src/input/mpegts/iptv/iptv_mux.c:340: error: undefined reference to 'strlcpy'
src/input/mpegts/iptv/iptv.c:295: error: undefined reference to 'strlcpy'
src/input/mpegts/mpegts_network.c:345: error: undefined reference to 'strlcpy'
src/input/mpegts/mpegts_network.c:345: error: undefined reference to 'strlcpy'
src/rtsp.c:58: error: undefined reference to 'strlcat'
src/epggrab/module/eitpatternlist.c:145: error: undefined reference to 'strlcat'
src/epggrab/module/eitpatternlist.c:145: error: undefined reference to 'strlcat'
collect2: error: ld returned 1 exit status
Actions