D: [iurt_root_command] chroot
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
Installing /home/iurt/rpmbuild/SRPMS/vdr-plugin-vnsiserver-0.9.1-0.git20130204.11.mga9.src.rpm
Building target platforms: aarch64
Building for target aarch64
Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.KKi5wV
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/iurt/rpmbuild/BUILD
+ rm -rf vnsiserver-frodo-git20130204
+ /usr/bin/xz -dc /home/iurt/rpmbuild/SOURCES/vdr-vnsiserver-frodo-git20130204.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd vnsiserver-frodo-git20130204
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/iurt/rpmbuild/SOURCES/gcc6-fixes.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /home/iurt/rpmbuild/SOURCES/more-gcc6-fixes.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ sed -r -i 's,(PLUGIN = vnsiserver)[0-9]+,\1,' Makefile
+ for file in po/*.po
+ grep -Eq 'msgstr ".+"' 'po/*.po'
grep: po/*.po: No such file or directory
+ rm -f 'po/*.po'
+ set +x
Silent renaming of locales
+ touch vdr_plugin_prep.done
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.QyJu7s
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ cd vnsiserver-frodo-git20130204
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/bin/make -O -j8 V=1 VERBOSE=1 all 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags ' 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags ' 'LDFLAGS= -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' PLUGINLIBDIR=/usr/lib64/vdr VIDEODIR=/var/lib/vdr/video LIBDIR=. LOCALEDIR=locale 'VDRLOCALE=""' DVBDIR=/usr VDRDIR=/usr/include/vdr VDRVERSION=2.4.6-3.mga9 VDRVERSNUM=20406 APIVERSION=2.4.6.1 APIVERSNUM=20406
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o bitstream.o bitstream.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o cxsocket.o cxsocket.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser_DTS.o parser_DTS.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o vnsi.o vnsi.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o config.o config.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser_AC3.o parser_AC3.c
parser_AC3.c: In member function 'int cParserAC3::FindHeaders(uint8_t*, int)':
parser_AC3.c:202:23: error: 'max' was not declared in this scope; did you mean 'std::max'?
  202 |       int srShift   = max(bsid, 8) - 8;
      |                       ^~~
      |                       std::max
In file included from /usr/include/c++/11/bits/specfun.h:45,
                 from /usr/include/c++/11/cmath:1935,
                 from /usr/include/c++/11/math.h:36,
                 from /usr/include/vdr/tools.h:18,
                 from /usr/include/vdr/i18n.h:14,
                 from /usr/include/vdr/config.h:19,
                 from config.h:32,
                 from parser_AC3.c:27:
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: 'std::max' declared here
  300 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
make: *** [Makefile:107: parser_AC3.o] Error 1
make: *** Waiting for unfinished jobs....
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser.o parser.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser_AAC.o parser_AAC.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser_h264.o parser_h264.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser_MPEGAudio.o parser_MPEGAudio.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser_MPEGVideo.o parser_MPEGVideo.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o parser_Subtitle.o parser_Subtitle.c
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -Wl,--as-needed  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o vnsiclient.o vnsiclient.c
vnsiclient.c: In member function 'void cVNSIClient::EpgChange()':
vnsiclient.c:265:3: error: 'cSchedulesLock' was not declared in this scope; did you mean 'cSchedules_Lock'?
  265 |   cSchedulesLock MutexLock;
      |   ^~~~~~~~~~~~~~
      |   cSchedules_Lock
vnsiclient.c:266:45: error: 'Schedules' is not a member of 'cSchedules'
  266 |   const cSchedules *schedules = cSchedules::Schedules(MutexLock);
      |                                             ^~~~~~~~~
vnsiclient.c:266:55: error: 'MutexLock' was not declared in this scope; did you mean 'cMutexLock'?
  266 |   const cSchedules *schedules = cSchedules::Schedules(MutexLock);
      |                                                       ^~~~~~~~~
      |                                                       cMutexLock
vnsiclient.c:273:50: error: invalid conversion from 'const cEvent*' to 'cEvent*' [-fpermissive]
  273 |     cEvent *lastEvent =  schedule->Events()->Last();
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                  |
      |                                                  const cEvent*
vnsiclient.c: In member function 'bool cVNSIClient::processChannelStream_Open()':
vnsiclient.c:654:3: error: 'Channels' was not declared in this scope; did you mean 'kChannels'?
  654 |   Channels.Lock(false);
      |   ^~~~~~~~
      |   kChannels
vnsiclient.c: In member function 'bool cVNSIClient::processCHANNELS_ChannelsCount()':
vnsiclient.c:848:3: error: 'Channels' was not declared in this scope; did you mean 'kChannels'?
  848 |   Channels.Lock(false);
      |   ^~~~~~~~
      |   kChannels
vnsiclient.c: In member function 'bool cVNSIClient::processCHANNELS_GetChannels()':
vnsiclient.c:865:3: error: 'Channels' was not declared in this scope; did you mean 'kChannels'?
  865 |   Channels.Lock(false);
      |   ^~~~~~~~
      |   kChannels
vnsiclient.c: In member function 'bool cVNSIClient::processCHANNELS_GroupsCount()':
vnsiclient.c:900:3: error: 'Channels' was not declared in this scope; did you mean 'kChannels'?
  900 |   Channels.Lock(false);
      |   ^~~~~~~~
      |   kChannels
vnsiclient.c: In member function 'bool cVNSIClient::processCHANNELS_GetGroupMembers()':
vnsiclient.c:962:3: error: 'Channels' was not declared in this scope; did you mean 'kChannels'?
  962 |   Channels.Lock(false);
      |   ^~~~~~~~
      |   kChannels
vnsiclient.c: In member function 'void cVNSIClient::CreateChannelGroups(bool)':
vnsiclient.c:1003:28: error: 'Channels' was not declared in this scope; did you mean 'kChannels'?
 1003 |   for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel))
      |                            ^~~~~~~~
      |                            kChannels
vnsiclient.c: In member function 'bool cVNSIClient::processTIMER_GetCount()':
vnsiclient.c:1032:15: error: 'Timers' was not declared in this scope; did you mean 'kTimers'?
 1032 |   int count = Timers.Count();
      |               ^~~~~~
      |               kTimers
vnsiclient.c: In member function 'bool cVNSIClient::processTIMER_Get()':
vnsiclient.c:1047:19: error: 'Timers' was not declared in this scope; did you mean 'kTimers'?
 1047 |   int numTimers = Timers.Count();
      |                   ^~~~~~
      |                   kTimers
vnsiclient.c: In member function 'bool cVNSIClient::processTIMER_GetList()':
vnsiclient.c:1085:19: error: 'Timers' was not declared in this scope; did you mean 'kTimers'?
 1085 |   int numTimers = Timers.Count();
      |                   ^~~~~~
      |                   kTimers
vnsiclient.c: In member function 'bool cVNSIClient::processTIMER_Add()':
vnsiclient.c:1157:17: error: 'Timers' was not declared in this scope; did you mean 'kTimers'?
 1157 |     cTimer *t = Timers.GetTimer(timer);
      |                 ^~~~~~
      |                 kTimers
vnsiclient.c: In member function 'bool cVNSIClient::processTIMER_Delete()':
vnsiclient.c:1194:41: error: 'Timers' was not declared in this scope; did you mean 'kTimers'?
 1194 |   if (number <= 0 || number > (uint32_t)Timers.Count())
      |                                         ^~~~~~
      |                                         kTimers
vnsiclient.c:1211:37: error: no matching function for call to 'cRecordControls::Process(time_t)'
 1211 |             cRecordControls::Process(time(NULL));
      |             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from vnsiclient.c:35:
/usr/include/vdr/menu.h:271:15: note: candidate: 'static bool cRecordControls::Process(cTimers*, time_t)'
  271 |   static bool Process(cTimers *Timers, time_t t);
      |               ^~~~~~~
/usr/include/vdr/menu.h:271:15: note:   candidate expects 2 arguments, 1 provided
vnsiclient.c: In member function 'bool cVNSIClient::processTIMER_Update()':
vnsiclient.c:1252:19: error: 'Timers' was not declared in this scope; did you mean 'kTimers'?
 1252 |   cTimer *timer = Timers.Get(index - 1);
      |                   ^~~~~~
      |                   kTimers
vnsiclient.c: In member function 'bool cVNSIClient::processRECORDINGS_GetDiskSpace()':
vnsiclient.c:1327:17: error: 'VideoDiskSpace' was not declared in this scope; did you mean 'cVideoDiskUsage'?
 1327 |   int Percent = VideoDiskSpace(&FreeMB);
      |                 ^~~~~~~~~~~~~~
      |                 cVideoDiskUsage
vnsiclient.c: In member function 'bool cVNSIClient::processRECORDINGS_GetCount()':
vnsiclient.c:1341:3: error: 'Recordings' was not declared in this scope; did you mean 'Recording'?
 1341 |   Recordings.Load();
      |   ^~~~~~~~~~
      |   Recording
vnsiclient.c: In member function 'bool cVNSIClient::processRECORDINGS_GetList()':
vnsiclient.c:1353:32: error: 'Recordings' was not declared in this scope; did you mean 'Recording'?
 1353 |   for (cRecording *recording = Recordings.First(); recording; recording = Recordings.Next(recording))
      |                                ^~~~~~~~~~
      |                                Recording
vnsiclient.c: In member function 'bool cVNSIClient::processRECORDINGS_Rename()':
vnsiclient.c:1491:5: error: 'Recordings' was not declared in this scope; did you mean 'Recording'?
 1491 |     Recordings.Update();
      |     ^~~~~~~~~~
      |     Recording
vnsiclient.c: In member function 'bool cVNSIClient::processRECORDINGS_Delete()':
vnsiclient.c:1522:9: error: 'Recordings' was not declared in this scope; did you mean 'Recording'?
 1522 |         Recordings.DelByName(recording->FileName());
      |         ^~~~~~~~~~
      |         Recording
vnsiclient.c: In member function 'bool cVNSIClient::processEPG_GetForChannel()':
vnsiclient.c:1562:3: error: 'Channels' was not declared in this scope; did you mean 'kChannels'?
 1562 |   Channels.Lock(false);
      |   ^~~~~~~~
      |   kChannels
vnsiclient.c:1583:3: error: 'cSchedulesLock' was not declared in this scope; did you mean 'cSchedules_Lock'?
 1583 |   cSchedulesLock MutexLock;
      |   ^~~~~~~~~~~~~~
      |   cSchedules_Lock
vnsiclient.c:1584:45: error: 'Schedules' is not a member of 'cSchedules'
 1584 |   const cSchedules *Schedules = cSchedules::Schedules(MutexLock);
      |                                             ^~~~~~~~~
vnsiclient.c:1584:55: error: 'MutexLock' was not declared in this scope; did you mean 'cMutexLock'?
 1584 |   const cSchedules *Schedules = cSchedules::Schedules(MutexLock);
      |                                                       ^~~~~~~~~
      |                                                       cMutexLock
vnsiclient.c:1677:48: error: invalid conversion from 'const cEvent*' to 'cEvent*' [-fpermissive]
 1677 |   cEvent *lastEvent =  Schedule->Events()->Last();
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                |
      |                                                const cEvent*
make: *** [Makefile:107: vnsiclient.o] Error 1
error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.QyJu7s (%build)


RPM build errors:
    Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
    Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.QyJu7s (%build)
I: [iurt_root_command] ERROR: chroot