Project

General

Profile

Bug #5352

build: 'strlcpy' and 'strlcat' problems with cc1

Added by Pablo R. almost 6 years ago. Updated almost 6 years ago.

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.

  checking for cc strlcat ...                       ok
  checking for cc strlcpy ...                       ok
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

History

#1

Updated by Luis Alves almost 6 years ago

It seems that the LibreElec build you are using has the libc headers (check for compilation passes) but is missing the actual library (linking fails).

#2

Updated by Jaroslav Kysela almost 6 years ago

  • Status changed from New to Invalid

Yes, it appears like header/lib binaries mismatch. Ask LibreElec developers.

Also available in: Atom PDF