Build failure: The build currently fails in src/main.c due to an outdated macro call for codec_init (using vainfo_probe_enabled), which also triggers an unused variable error under strict compiler flags. Upstream needs to update the tvhftrace call for codec_init to drop the extra argument.
Search Criteria
Package Details: tvheadend-git 4.3.r2758.g27295c5-2
Package Actions
| Git Clone URL: | https://aur.archlinux.org/tvheadend-git.git (read-only, click to copy) |
|---|---|
| Package Base: | tvheadend-git |
| Description: | TV streaming server and DVR |
| Upstream URL: | https://tvheadend.org |
| Keywords: | dvb iptv pvr streaming tv |
| Licenses: | GPL-3.0-or-later |
| Conflicts: | tvheadend |
| Provides: | tvheadend |
| Submitter: | zman0900 |
| Maintainer: | willemw |
| Last Packager: | willemw |
| Votes: | 28 |
| Popularity: | 0.000000 |
| First Submitted: | 2015-08-10 20:59 (UTC) |
| Last Updated: | 2026-08-14 06:55 (UTC) |
Dependencies (21)
- avahi
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-cudaAUR, ffmpeg-whisper-gitAUR, librempeg-gitAUR, ffmpeg-gitAUR, ffmpeg-full-gitAUR, ffmpeg-whisperAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR, ffmpeg-amd-full-gitAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-cuda-fullAUR, ffmpeg-headlessAUR, ffmpeg-full-llvmAUR)
- libdvbcsaAUR (libdvbcsa-gitAUR)
- libfdk-aac (libfdk-aac-gitAUR)
- libiconv
- libogg (libogg-gitAUR)
- libtheora (libtheora-gitAUR)
- libvorbis (libvorbis-aotuvAUR, libvorbis-aotuv-lancerAUR, libvorbis-gitAUR)
- libvpx (libvpx-full-gitAUR, libvpx-gitAUR)
- openssl (openssl-gitAUR, openssl-aegisAUR, openssl-staticAUR)
- opus (opus-gitAUR)
- pcre2 (pcre2-gitAUR)
- pngquant
- uriparser (uriparser-gitAUR)
- x264 (x264-tmod-gitAUR, x264-gitAUR, x264-patmanmod-gitAUR)
- x265 (x265-mod-patman-gitAUR, x265-gitAUR)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- python (make)
- wget (wget-gitAUR) (make)
- libhdhomerunAUR (libhdhomerun-gitAUR) (optional) – HDHomeRun support
- Show 1 more dependencies...
Required by (0)
Sources (4)
foggybrain commented on 2026-08-12 14:55 (UTC)
willemw commented on 2026-08-10 08:38 (UTC)
You cannot easily downgrade to ffmpeg 8, because of all the version restrictions in several dependencies. And support for ffmpeg 9 can take while.
Changing to the built-in ffmpeg (changing --disable-ffmpeg_static "$libav_option" to --enable-libav) is probably the only solution, at least for now.
PaulchenPlump commented on 2026-08-10 07:03 (UTC)
After updating ffmpeg to version 9, tvheadend can no longer be started and terminates at "/usr/bin/tvheadend: error while loading shared libraries: libavfilter.so.11: cannot open shared object file: No such file or directory".
Recompilation then fails with: "In file included from src/tvheadend.h:41,
from src/main.c:39:
src/main.c: In Funktion »main«:
src/main.c:1305:22: error: zu viele Argumente für Funktion »codec_init«; 0 erwartet, 1 bekommen
1305 | tvhftrace(LS_MAIN, codec_init, vainfo_probe_enabled);
| ^~
src/tvhlog.h:259:3: note: in definition of macro »tvhftrace«
259 | fcn(VA_ARGS); \
| ^~~
In file included from src/main.c:71:
src/transcoding/codec.h:186:1: note: hier deklariert"
willemw commented on 2026-05-03 17:29 (UTC)
Thanks. Updated.
realh commented on 2026-05-03 14:43 (UTC)
The following need to be added to CFLAGS in addition to '-Wno-error=discarded-qualifiers':
-Wno-error=unused-but-set-variable -Wno-error=format-truncation
glenb77 commented on 2025-10-06 11:14 (UTC)
@willemw thanks for looking so quickly, and yes builds fine now... appreciate the help.
willemw commented on 2025-10-06 09:00 (UTC)
@glenb77: Thanks. "libav" was not enabled (for the current ffmpeg version), while "vaapi" is enabled, and that caused a build error.
glenb77 commented on 2025-10-05 14:59 (UTC)
after updating my system, new ffmpeg and related av libs, had to rebuild tvheadend and get failure: it stops here:
"make -f Makefile.webui WEBUI=debug compile-debug make[2]: Entering directory '/home/g/tvheadend-git/src/tvheadend-git' WEBUI debug finished make[2]: Leaving directory '/home/g/tvheadend-git/src/tvheadend-git' make[1]: Leaving directory '/home/g/tvheadend-git/src/tvheadend-git' ==> ERROR: A failure occurred in build()."
did manage to build directly from tvh github, had to change options in configure and then copy resulting binary to /usr/bin and also copy the webgui files to /var/lib/tvheadend/webui and i have it running.
any help appreciated would like to have pkg in sync with arch. thanks.
Pinned Comments
francoism90 commented on 2021-03-21 14:16 (UTC) (edited on 2021-03-21 14:16 (UTC) by francoism90)
Warning: if you have previously used this package, you need to reinstall! Sorry for introducing breaking changes, but hopefully the introduced changes will provide a better experience for most users. :)
Backup your configs (if needed) before performing the upgrade!
Changes:
/var/lib/tvheadendinstead of/usr/share/tvheadendtvheadend(member of groupvideo) with config files stored in/etc/tvheadend, it will not use a home directory anymore.sysusers.dandtmpfiles.dpermissions should be easier to manage.tvheadend.servicenow includes-Cby default.If you have any questions or suggestions, please let me know. :)
luciferin commented on 2017-04-06 14:01 (UTC) (edited on 2019-08-14 12:21 (UTC) by luciferin)
I started up a wiki page for Tvheadend. Input and help is welcome.
https://wiki.archlinux.org/index.php/Tvheadend