Project

General

Profile

Actions

Bug #2249

closed

does not compile with vdr-2.3.1

Added by Jarod over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Server (general)
Target version:
-
Start date:
10/08/2015
Due date:
% Done:

100%

Estimated time:

Description

Hi,

while trying to compile the streamdev plugin under Debian Jessie with vdr-2.3.1 on my RPI2 I got the following error message.

g++ -g -O0 -Wall -Werror=overloaded-virtual -Wno-parentheses -ggdb3 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/local/src/vdr-2.3.1-eepg/include -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"streamdev-server"' -I/usr/local/src/vdr-2.3.1-eepg/include -I/usr/local/src/vdr-2.3.1-eepg/include -I.. -o connection.o connection.c
connection.c: In static member function ‘static const cChannel* cServerConnection::ChannelFromString(const char*, int*, int*)’:
connection.c:49:28: error: ‘Channels’ was not declared in this scope
if (temp >= 1 && temp <= Channels.MaxNumber())
^
connection.c:52:13: error: ‘Channels’ was not declared in this scope
channel = Channels.GetByChannelID(tChannelID::FromString(string));
^
streamdev-server.c: In member function ‘virtual void cPluginStreamdevServer::MainThreadHook()’:
streamdev-server.c:167:49: error: invalid conversion from ‘const cMainThreadHookSubscriber*’ to ‘cMainThreadHookSubscriber*’ [-fpermissive]
for (cMainThreadHookSubscriber *s = subs.First(); s; s = subs.Next(s))
^
streamdev-server.c:167:70: error: invalid conversion from ‘const cMainThreadHookSubscriber*’ to ‘cMainThreadHookSubscriber*’ [-fpermissive]
for (cMainThreadHookSubscriber *s = subs.First(); s; s = subs.Next(s))
^
streamdev-server.c: In member function ‘virtual cString cPluginStreamdevServer::SVDRPCommand(const char*, const char*, int&)’:
streamdev-server.c:203:40: error: invalid conversion from ‘const cServerConnection*’ to ‘cServerConnection*’ [-fpermissive]
cServerConnection *s = clients.First();
^
streamdev-server.c:210:32: error: invalid conversion from ‘const cServerConnection*’ to ‘cServerConnection*’ [-fpermissive]
for (; s; s = clients.Next(s))
^
streamdev-server.c:227:41: error: invalid conversion from ‘const cServerConnection*’ to ‘cServerConnection*’ [-fpermissive]
cServerConnection *s = clients.First();
^
streamdev-server.c:228:47: error: invalid conversion from ‘const cServerConnection*’ to ‘cServerConnection*’ [-fpermissive]
for (; s && s != client; s = clients.Next(s));
^
Makefile:39: recipe for target 'connection.o' failed
make[2]: *** [connection.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:39: recipe for target 'streamdev-server.o' failed
make[2]: *** [streamdev-server.o] Error 1
Makefile:76: recipe for target 'server' failed
make[1]: *** [server] Error 2

btw:
g++ version is:(Raspbian 4.9.2-10) 4.9.2


Related issues 1 (0 open1 closed)

Is duplicate of VDR Streamdev Plugin - Bug #2243: Compilierfehler für VDR 2.3.1Closed09/28/2015

Actions
Actions #1

Updated by schmirl over 8 years ago

Streamdev-server is not compatible with VDR 2.3.1 yet. Streamdev-client has been fixed recently. To compile the client alone try "make client; make install-client" in the streamdev source directory.

Or try this patch by Copperhead: https://github.com/VDR4Arch/vdr4arch/raw/54f0803c20c3a9f95e578a664f05b38a0d384422/plugins/vdr-streamdev/streamdev-vdr2.3.1compat.diff
You need to drop the first hunk (lines 1 - 13) if you have a recent streamdev git version where the client is already fixed.

Actions #2

Updated by schmirl over 8 years ago

  • Status changed from New to Closed

Duplikat von #2249. Schließe dieses Ticket, da das andere Ticket auf Englisch verfasst ist und somit mehr Leuten hilft.

Actions #3

Updated by schmirl over 8 years ago

  • Subject changed from does not compile on RPI2 to does not compile with vdr-2.3.1
  • Category set to Server (general)
  • Status changed from Closed to New
Actions #4

Updated by danielmayer over 8 years ago

Hi,
I tried the patch. It compiles but VDR itself won't start with the plugin enabled. VDR starts without streamdev-plugin.
So copperheads diff seems not to be enough.

Actions #5

Updated by danielmayer over 8 years ago

to be more precise: streamdev-server-plugin, loaded on headless vdr-2.3.1. The start of VDR stops without any hints in /var/log/syslog during loading the plugins. Is there any further log I can provide?

Actions #6

Updated by schmirl about 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF