Tvheadend in OpenWRT trunk: ar71xx broken?
Added by Frans ! almost 12 years ago
I'm hoping someone can point me in the right direction to resolve or workaround a build issue with Tvheadend on OpenWRT.
I've used these instructions to build Tvheadend:
http://trweb.cwsurf.de/wordpress_301-de/wordpress/?p=1556
In the build process, these error appear:
./tvheadend-3.2/src/webui/statedump.c: In function 'dumpchannels':
./tvheadend-3.2/src/webui/statedump.c:60:3: error: unknown type name 'channel_t'
./tvheadend-3.2/src/webui/statedump.c:63:3: error: assignment from incompatible pointer type [-Werror]
./tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:65:39: error: request for member 'ch_name' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:65:52: error: request for member 'ch_id' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:71:8: error: request for member 'ch_refcount' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:72:8: error: request for member 'ch_zombie' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:73:8: error: request for member 'ch_number' in something not a structure or union
./tvheadend-3.2/src/webui/statedump.c:74:8: error: request for member 'ch_icon' in something not a structure or union
These errors are identical to the ones listed in http://buildbot.openwrt.org:8010/broken_packages/ar71xx/tvheadend/compile.txt
So it looks like the Tvheadend feed is broke or that maybe some prerequisite is missing?
Without Tvheadend, the openwrt image builds ok...
Any hints/solutions highly appreciated :-)
Replies (2)
RE: Tvheadend in OpenWRT trunk: ar71xx broken? - Added by Prof Yaffle almost 12 years ago
I'm by no means an expert on either C or on the tvheadend code, but it looks like channel_t is defined in channels.h, and statedump.c is then creating a variable of that type. The error suggests that - for whatever reason - that initial declaration isn't happening, so statedump.c goes to create the variable and it fails with your "unknown type name" error.
I'd check the code you're downloading and see (1) if channels.h is there, (2) if it includes the declaration (typedef struct channel {...} channel_t), (3) if it's included from the statedump.c code (#include channels.h). It might be that you're downloading incomplete code, or a file has been damaged or got lost in version control. If it's not that, I'd guess at a compiler issue, perhaps due to the flags in use, perhaps due to a version of that.
Then again, it might be the pixies frollicking in the fields, getting upset at the recent weather. What do I know...
RE: Tvheadend in OpenWRT trunk: ar71xx broken? - Added by Frans ! almost 12 years ago
Thx Prof! I did just that and ended up with a bunch of other errors with missing declarations.
Moments after getting it to compile ok , something wonderful happened - my HD running the linux build VM died with CRC errors :-(
Well to make a long story short, today I created a new linux VM, installed everything from scratch and... everything build without error.
Maybe the repository got updated overnight or I missed out on something during the initial install.
Like you say, what do I know :0)