Bug #5361
TVHeadend 4.3-1588~g752fd7cb2 is FTBFS on Ubuntu
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2018-11-28
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3-1588~g752fd7cb2
Affected Versions:
Description
My automatic nightly builds for version 4.3-1588~g752fd7cb2 have all failed with the following output:
cc -MD -MP -D_REENTRANT -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -g -O2 -D_FORTIFY_SOURCE=2 -fPIE -Wunused-result -Werror -Wall -Wwrite-strings -Wno-deprecated-declarations -Wmissing-prototypes -fms-extensions -funsigned-char -fno-strict-aliasing -Wno-stringop-truncation -Wno-stringop-overflow -D_FILE_OFFSET_BITS=64 -I/<<PKGBUILDDIR>>/build.linux -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>> `pkg-config --cflags libavfilter libswresample libavresample libswscale libavformat libavcodec libavutil` -c -o /<<PKGBUILDDIR>>/build.linux/src/watchdog.o src/watchdog.c src/watchdog.c: In function ‘watchdog_init’: src/watchdog.c:74:24: error: passing argument 1 of ‘pthread_mutex_init’ from incompatible pointer type [-Werror=incompatible-pointer-types] pthread_mutex_init(&watchdog_exiting_mutex, NULL); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/tvh_thread.h:23, from src/tvheadend.h:34, from src/idnode.h:23, from src/config.h:28, from src/watchdog.h:22, from src/watchdog.c:19: /usr/include/pthread.h:750:49: note: expected ‘pthread_mutex_t *’ {aka ‘union <anonymous> *’} but argument is of type ‘tvh_mutex_t *’ {aka ‘struct tvh_mutex *’} extern int pthread_mutex_init (pthread_mutex_t *__mutex, ~~~~~~~~~~~~~~~~~^~~~~~~ src/watchdog.c: In function ‘watchdog_done’: src/watchdog.c:91:27: error: passing argument 1 of ‘pthread_mutex_destroy’ from incompatible pointer type [-Werror=incompatible-pointer-types] pthread_mutex_destroy(&watchdog_exiting_mutex); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/tvh_thread.h:23, from src/tvheadend.h:34, from src/idnode.h:23, from src/config.h:28, from src/watchdog.h:22, from src/watchdog.c:19: /usr/include/pthread.h:755:52: note: expected ‘pthread_mutex_t *’ {aka ‘union <anonymous> *’} but argument is of type ‘tvh_mutex_t *’ {aka ‘struct tvh_mutex *’} extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) ~~~~~~~~~~~~~~~~~^~~~~~~ cc1: all warnings being treated as errors
Here is a link to the full build log: https://launchpadlibrarian.net/399337004/buildlog_ubuntu-disco-amd64.tvheadend_4.3-1588~g752fd7cb2~disco_BUILDING.txt.gz
History
Updated by Michael Marley almost 6 years ago
It is still FTBFS. The error is now:
cc -MD -MP -D_REENTRANT -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -g -O2 -D_FORTIFY_SOURCE=2 -fPIE -Wunused-result -Werror -Wall -Wwrite-strings -Wno-deprecated-declarations -Wmissing-prototypes -fms-extensions -funsigned-char -fno-strict-aliasing -Wno-stringop-truncation -Wno-stringop-overflow -D_FILE_OFFSET_BITS=64 -I/<<PKGBUILDDIR>>/build.linux -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>> `pkg-config --cflags libavfilter libswresample libavresample libswscale libavformat libavcodec libavutil` -c -o /<<PKGBUILDDIR>>/build.linux/src/watchdog.o src/watchdog.c src/watchdog.c: In function ‘watchdog_init’: src/watchdog.c:74:5: error: implicit declaration of function ‘tv_mutex_init’; did you mean ‘tvh_mutex_init’? [-Werror=implicit-function-declaration] tv_mutex_init(&watchdog_exiting_mutex, NULL); ^~~~~~~~~~~~~ tvh_mutex_init cc1: all warnings being treated as errors
Updated by Luis Alves almost 6 years ago
It's a typo.
Someone already sent a PR to fix it: https://github.com/tvheadend/tvheadend/pull/1224