Project

General

Profile

Bug #3944

Build with --enable-libsystemd_daemon broken

Added by Hanspeter Müller over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2016-08-19
Due date:
% Done:

100%

Estimated time:
Found in version:
4.1-2184~gb1ef757
Affected Versions:

Description

Hi,

the work on the tvlog seems to have broken build with --enable-libsystemd_daemon (works without). I assumed that i needed it after the upgrade to ubuntu 16.04; but it seems to work without, what does libsystemd_daemon do...?

CC src/access.o
CC src/tcp.o
src/tcp.c:838:1: error: conflicting types for 'tcp_server_create'
tcp_server_create
^
In file included from src/tcp.c:39:0:
src/tcp.h:70:7: note: previous declaration of 'tcp_server_create' was here
void tcp_server_create(int subsystem, const char *name,
^
src/tcp.c: In function 'tcp_server_create':
src/tcp.c:894:18: error: passing argument 4 of '_tvhlog' makes integer from pointer without a cast [-Werror=int-conversion]
tvhinfo(subsystem, "Starting %s server %s:%d (systemd)", name, buf, htons(IP_PORT(bound)));
^
In file included from src/tvheadend.h:41:0,
from src/tcp.c:38:
src/tvhlog.h:65:6: note: expected 'int' but argument is of type 'const char *'
void _tvhlog ( const char *file, int line, int severity,
^
src/tcp.c:898:32: error: passing argument 1 of 'tcp_server_create_new' makes integer from pointer without a cast [-Werror=int-conversion]
ts = tcp_server_create_new(subsystem, name, bindaddr, port, ops, opaque);
^
src/tcp.c:751:14: note: expected 'int' but argument is of type 'const char *'
static void *tcp_server_create_new
^
cc1: all warnings being treated as errors
Makefile:625: recipe for target '/usr/src/tvheadend/build.linux/src/tcp.o' failed
make2:
[/usr/src/tvheadend/build.linux/src/tcp.o] Error 1
make2: Leaving directory '/usr/src/tvheadend'
debian/rules:11: recipe for target 'override_dh_auto_build' failed
make1:
[override_dh_auto_build] Error 2
make1: Leaving directory '/usr/src/tvheadend'
debian/rules:5: recipe for target 'build' failed
make: *
* [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

regards,

/hp

History

#1

Updated by Jaroslav Kysela over 8 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|1c7eab4059f348bf4946dd676459a36ca220913d.

#2

Updated by Jaroslav Kysela over 8 years ago

Fixed in v4.1-2187-g1c7eab4 .

Also available in: Atom PDF