News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

Compilation error of vompserver 0.5.1

Started by winschrott, March 03, 2020, 18:37:27

Previous topic - Next topic

winschrott

Hello,
I tried to compile the actual server 0.5.1 from GIT against VDR 2.2.0. I get errors in dsock6.c - is it because I do not have IPv6 installed on my VDR?

Workaround:
I changed the max. VOMP PROTOCOL VERSION in vompcientrrproc.c to 0x00000500.

CU

Chris

Hi,

Could you copy the build error messages here please. What operating system are you compiling on? How is it that you don't have IPv6?


Chris

winschrott

Hello,

sorry for my late response. The error is the following:

*** Plugin vompserver:
( if [ -f .standalone ] ; then ( rm -f .standalone; make clean ; make objects ) ; else exit 0 ;fi )
CC vompserver.o
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -DPLUGIN_NAME_I18N='"vompserver"' -D__STL_CONFIG_H -DVOMPSERVER -I/home/administrator/vdr-2.2.0/include  -o vompserver.o vompserver.c
CC dsock.o
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -DPLUGIN_NAME_I18N='"vompserver"' -D__STL_CONFIG_H -DVOMPSERVER -I/home/administrator/vdr-2.2.0/include  -o dsock.o dsock.c
CC dsock6.o
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -DPLUGIN_NAME_I18N='"vompserver"' -D__STL_CONFIG_H -DVOMPSERVER -I/home/administrator/vdr-2.2.0/include  -o dsock6.o dsock6.c
dsock6.c: In member function 'bool DatagramSocket6::init(USHORT)':
dsock6.c:110:3: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
   auto last = std::unique(mcastIndexes.begin(), mcastIndexes.end());
   ^
dsock6.c:110:8: error: 'last' does not name a type
   auto last = std::unique(mcastIndexes.begin(), mcastIndexes.end());
        ^
dsock6.c:111:22: error: 'last' was not declared in this scope
   mcastIndexes.erase(last, mcastIndexes.end());
                      ^
dsock6.c:114:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
   for(auto mif : mcastIndexes)
       ^
dsock6.c:114:12: error: 'mif' does not name a type
   for(auto mif : mcastIndexes)
            ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30:0,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:219,
                 from /usr/include/stdlib.h:314,
                 from dsock6.c:21:
dsock6.c:129:3: error: expected ';' before 'do'
   FD_ZERO(&readfds);
   ^
dsock6.c:129:3: error: expected primary-expression before 'do'
dsock6.c:129:3: error: expected ';' before 'do'
dsock6.c:129:3: error: expected primary-expression before 'do'
dsock6.c:129:3: error: expected ')' before 'do'
make[1]: *** [dsock6.o] Fehler 1

Thanks