Project

General

Profile

Bug #5145

Master fails to compile on alpine linux

Added by Torbjørn Brekke over 6 years ago. Updated almost 6 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-07-02
Due date:
% Done:

0%

Estimated time:
Found in version:
since bff4222
Affected Versions:

Description

Building master on alpine linux in a docker container fails at src/uuid.o. I guess since it fails on strlcat, it's the bff4222 commit that is the issue.
The full build log is here: https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-tvheadend/166/console

WEBUI std finished
make[2]: Leaving directory '/tmp/tvheadend'
make -f Makefile.webui WEBUI=debug compile-debug
make[2]: Entering directory '/tmp/tvheadend'
WEBUI debug finished
make[2]: Leaving directory '/tmp/tvheadend'
make[1]: Leaving directory '/tmp/tvheadend'
CC src/version.o
CC src/uuid.o
In file included from src/tvheadend.h:39:0,
from src/uuid.c:20:
src/tvh_string.h:50:22: error: static declaration of 'strlcpy' follows non-static declaration
static inline size_t strlcpy(char *dst, const char *src, size_t size)
^~~~~~~
In file included from src/tvheadend.h:31:0,
from src/uuid.c:20:
/usr/include/string.h:84:8: note: previous declaration of 'strlcpy' was here
size_t strlcpy (char *, const char *, size_t);
^~~~~~~
In file included from src/tvheadend.h:39:0,
from src/uuid.c:20:
src/tvh_string.h:61:22: error: static declaration of 'strlcat' follows non-static declaration
static inline size_t strlcat(char *dst, const char *src, size_t count)
^~~~~~~
In file included from src/tvheadend.h:31:0,
from src/uuid.c:20:
/usr/include/string.h:83:8: note: previous declaration of 'strlcat' was here
size_t strlcat (char *, const char *, size_t);
^~~~~~~
make: *** [Makefile:704: /tmp/tvheadend/build.linux/src/uuid.o] Error 1

History

#2

Updated by Torbjørn Brekke over 6 years ago

b kuhls wrote:

Hi,

please test https://github.com/tvheadend/tvheadend/pull/1133

It works with your PR. Hopefully it gets merged soon.

#3

Updated by Torbjørn Brekke almost 6 years ago

This issue can be closed.

#4

Updated by Mark Clarkstone almost 6 years ago

  • Status changed from New to Invalid

Torbjørn Brekke wrote:

This issue can be closed.

Also available in: Atom PDF