Bug #3366
TVH trunk build failed with systemd
100%
Description
CC src/tcp.o
In file included from src/tvheadend.h:53:0,
from src/tcp.c:38:
src/tcp.c: In function ‘tcp_server_create’:
src/tcp.c:884:33: error: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘char ’ [-Werror=format=]
tvhlog(LOG_INFO, subsystem, "Starting %s server %s:%d (systemd)", subsystem, name, buf, htons(IP_PORT(bound)));
^
src/tvhlog.h:98:52: note: in definition of macro ‘tvhlog’
tvhlog(FILE, LINE, 1, severity, subsys, fmt, ##_VA_ARGS__)
^
src/tcp.c:884:33: error: too many arguments for format [-Werror=format-extra-args]
tvhlog(LOG_INFO, subsystem, "Starting %s server %s:%d (systemd)", subsystem, name, buf, htons(IP_PORT(bound)));
^
src/tvhlog.h:98:52: note: in definition of macro ‘tvhlog’
tvhlog(FILE, LINE, 1, severity, subsys, fmt, ##_VA_ARGS__)
^
src/tcp.c:888:43: error: passing argument 2 of ‘tcp_server_create_new’ makes pointer from integer without a cast [-Werror=int-conversion]
ts = tcp_server_create_new(bindaddr, port, ops, opaque);
^
src/tcp.c:741:14: note: expected ‘const char *’ but argument is of type ‘int’
static void *tcp_server_create_new
^
src/tcp.c:888:49: error: passing argument 3 of ‘tcp_server_create_new’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ts = tcp_server_create_new(bindaddr, port, ops, opaque);
^
src/tcp.c:741:14: note: expected ‘const char *’ but argument is of type ‘tcp_server_ops_t * {aka struct tcp_server_ops *}’
static void *tcp_server_create_new
^
src/tcp.c:888:54: error: passing argument 4 of ‘tcp_server_create_new’ makes integer from pointer without a cast [-Werror=int-conversion]
ts = tcp_server_create_new(bindaddr, port, ops, opaque);
^
src/tcp.c:741:14: note: expected ‘int’ but argument is of type ‘void *’
static void *tcp_server_create_new
^
src/tcp.c:888:11: error: too few arguments to function ‘tcp_server_create_new’
ts = tcp_server_create_new(bindaddr, port, ops, opaque);
^
src/tcp.c:741:14: note: declared here
static void *tcp_server_create_new
^
cc1: all warnings being treated as errors
Makefile:568: recipe for target '/usr/src/tvheadend/src/tvheadend/build.linux/src/tcp.o' failed
make: ** [/usr/src/tvheadend/src/tvheadend/build.linux/src/tcp.o] Error 1
History
Updated by Jaroslav Kysela almost 9 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|7b5a7770fd06cba979e175c6fd1d2f75ba85f44a.