Project

General

Profile

Bug #5060

Cannot build latest git d941885

Added by virtual dj over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
non-x86
Target version:
-
Start date:
2018-04-04
Due date:
% Done:

0%

Estimated time:
Found in version:
d941885
Affected Versions:

Description

Cannot build the latest git on my (old) armel compiler:

CC              src/version.o
CC              src/uuid.o
CC              src/main.o
In file included from src/service.h:23,
                 from src/subscriptions.h:22,
                 from src/main.c:48:
src/streaming.h:47: error: redefinition of typedef ‘streaming_start_t’
src/esstream.h:30: note: previous declaration of ‘streaming_start_t’ was here
In file included from src/subscriptions.h:22,
                 from src/main.c:48:
src/service.h:389: error: redefinition of typedef ‘service_t’
src/esstream.h:29: note: previous declaration of ‘service_t’ was here
make: *** [/root/tvheadend/tvheadend/build.linux/src/main.o] Error 1

History

#1

Updated by virtual dj over 6 years ago

Same errors also on the latest c597a56.

#2

Updated by virtual dj over 6 years ago

I've updated my git sources to 518d57b but still I'm unable to build them with the armel compiler.
The error is the same of the original description above; I've tried to edit esstream.h line 30 and streaming.h line 47 with something like this (both files):

#ifndef __STREAMING_START_T
#define __STREAMING_START_T
typedef struct streaming_start streaming_start_t;
#endif
but then it fails with this error:
CC              src/version.o
CC              src/main.o
In file included from src/subscriptions.h:22,
                 from src/main.c:48:
src/service.h:389: error: redefinition of typedef ‘service_t’
src/esstream.h:29: note: previous declaration of ‘service_t’ was here
make: *** [/root/tvheadend/tvheadend/build.linux/src/main.o] Error 1
As the service.h definition of service_t seems more articulated, I opened esstream.h line 29 and commented out the offending line:
//typedef struct service service_t;
but again the errors move elsewhere:
CC              src/main.o
In file included from src/service.h:22,
                 from src/subscriptions.h:22,
                 from src/main.c:48:
src/esstream.h:156: error: expected specifier-qualifier-list before ‘service_t’
src/esstream.h:167: error: expected declaration specifiers or ‘...’ before ‘service_t’
src/esstream.h:168: error: expected declaration specifiers or ‘...’ before ‘service_t’
src/esstream.h: In function ‘elementary_stream_find’:
src/esstream.h:182: error: ‘elementary_set_t’ has no member named ‘set_last_pid’
src/esstream.h:185: error: ‘elementary_set_t’ has no member named ‘set_last_es’
make: *** [/root/tvheadend/tvheadend/build.linux/src/main.o] Error 1
Sorry, I would like to help you by fixit it myself, but my C knowledge is not enough to do so. Jaroslav, can you help? :)

#3

Updated by virtual dj over 6 years ago

With 595fd17 the redefinition errors are still there, unfortunately. :(

CC              src/uuid.o
CC              src/main.o
In file included from src/service.h:23,
                 from src/subscriptions.h:22,
                 from src/main.c:48:
src/streaming.h:47: error: redefinition of typedef ‘streaming_start_t’
src/esstream.h:30: note: previous declaration of ‘streaming_start_t’ was here
In file included from src/subscriptions.h:22,
                 from src/main.c:48:
src/service.h:389: error: redefinition of typedef ‘service_t’
src/esstream.h:29: note: previous declaration of ‘service_t’ was here
make: *** [/root/tvheadend/tvheadend/build.linux/src/main.o] Error 1
I did not write the configuration switches before, here they are:
./configure --disable-avahi --disable-libav --disable-ffmpeg_static --disable-libx264 --disable-libx265 --disable-dbus_1 --disable-hdhomerun_client --disable-hdhomerun_static --disable-libx264_static --disable-libx265_static --disable-libvpx --disable-libvpx_static --disable-libtheora --disable-libtheora_static --disable-libvorbis --disable-libvorbis_static --disable-libfdkaac --disable-libfdkaac_static --disable-libmfx_static --disable-tvhcsa

Also available in: Atom PDF