Compile stops while compiling libbluray
Posted: Sun Dec 03, 2017 4:13 am
Description of problem or question
Trying to compile HandBrake on FreeBSD 11.1. Compile stops while compiling libbluray:
Steps to reproduce the problem (If Applicable)
HandBrake version (e.g., 1.0.0)
trunk
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)
FreeBSD ebony 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12:40 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Error message text or screenshot (If Applicable)
Since treating warnings as errors is set, compilation stops at implicit function declaration. Now I am not sure if this is an upstream problem to be reported to the maintainers of libbluray or one to be solved by HandBrake developers.
Switching -Werror=implicit-function-declaration to -Wimplicit-function-declaration does not realy help:
compilation stops in this case a little bit later on with undeclared variables.
Trying to compile HandBrake on FreeBSD 11.1. Compile stops while compiling libbluray:
Code: Select all
CC src/util/libbluray_la-mutex.lo
CC src/util/libbluray_la-refcnt.lo
CC src/util/libbluray_la-strutl.lo
CC src/util/libbluray_la-time.lo
src/util/time.c: In function '_bd_get_scr_impl':
src/util/time.c:58:5: error: implicit declaration of function 'gettimeofday' [-Werror=implicit-function-declaration]
gettimeofday(&tv, 0);
^~~~~~~~~~~~
cc1: some warnings being treated as errors
gmake[2]: *** [Makefile:1808: src/util/libbluray_la-time.lo] Error 1
gmake[2]: Leaving directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
gmake[1]: *** [Makefile:932: all] Error 2
gmake[1]: Leaving directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
gmake: *** [../contrib/libbluray/module.rules:3: contrib/libbluray/.stamp.libbluray.build] Error 2
Steps to reproduce the problem (If Applicable)
Code: Select all
# git clone ...
# cd HandBrake
# ./configure
# cd build
# gmake
trunk
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)
FreeBSD ebony 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12:40 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Error message text or screenshot (If Applicable)
Code: Select all
CC src/util/libbluray_la-time.lo
src/util/time.c: In function '_bd_get_scr_impl':
src/util/time.c:58:5: error: implicit declaration of function 'gettimeofday' [-Werror=implicit-function-declaration]
gettimeofday(&tv, 0);
Switching -Werror=implicit-function-declaration to -Wimplicit-function-declaration does not realy help:
Code: Select all
CCLD libbluray.la
gmake[2]: Leaving directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
gmake[1]: Leaving directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
touch contrib/libbluray/.stamp.libbluray.build
gmake -j 1 -C ./contrib/libbluray/libbluray-1.0.1/ install
gmake[1]: Entering directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
gmake[2]: Entering directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
build-aux/install-sh -c -d '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib'
/bin/sh ./libtool --mode=install /usr/bin/install -c libbluray.la '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib'
libtool: install: /usr/bin/install -c .libs/libbluray.lai /usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib/libbluray.la
libtool: install: /usr/bin/install -c .libs/libbluray.a /usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib/libbluray.a
libtool: install: chmod 644 /usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib/libbluray.a
libtool: install: ranlib /usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib/libbluray.a
build-aux/install-sh -c -d '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib/pkgconfig'
/usr/bin/install -c -m 644 src/libbluray.pc '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/lib/pkgconfig'
build-aux/install-sh -c -d '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/include/libbluray'
/usr/bin/install -c -m 644 src/file/filesystem.h src/libbluray/bluray.h src/libbluray/bluray-version.h src/libbluray/keys.h src/libbluray/player_settings.h src/libbluray/bdnav/clpi_data.h src/libbluray/bdnav/meta_data.h src/libbluray/decoders/overlay.h src/util/log_control.h '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/include/libbluray'
gmake[2]: Leaving directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
gmake[1]: Leaving directory '/usr/portp/multimedia/handbreak/HandBrake/build/contrib/libbluray/libbluray-1.0.1'
touch contrib/libbluray/.stamp.libbluray.install
/usr/local/bin/gcc -std=gnu99 -pipe -fmessage-length=0 -Wall -g0 -O3 -mfpmath=sse -msse2 -DUSE_LIBAV_AAC -D__LIBHB__ -DUSE_PTHREAD -DUSE_X265 -DHAS_STRERROR_R -DARCH_X86_64 -I./libhb/ -I./contrib/include -I/usr/include/libxml2 -c ../libhb/reader.c -o libhb/reader.o
/usr/local/bin/gcc -std=gnu99 -pipe -fmessage-length=0 -Wall -g0 -O3 -mfpmath=sse -msse2 -DUSE_LIBAV_AAC -D__LIBHB__ -DUSE_PTHREAD -DUSE_X265 -DHAS_STRERROR_R -DARCH_X86_64 -I./libhb/ -I./contrib/include -I/usr/include/libxml2 -c ../libhb/lang.c -o libhb/lang.o
/usr/local/bin/gcc -std=gnu99 -pipe -fmessage-length=0 -Wall -g0 -O3 -mfpmath=sse -msse2 -DUSE_LIBAV_AAC -D__LIBHB__ -DUSE_PTHREAD -DUSE_X265 -DHAS_STRERROR_R -DARCH_X86_64 -I./libhb/ -I./contrib/include -I/usr/include/libxml2 -c ../libhb/avfilter.c -o libhb/avfilter.o
/usr/local/bin/gcc -std=gnu99 -pipe -fmessage-length=0 -Wall -g0 -O3 -mfpmath=sse -msse2 -DUSE_LIBAV_AAC -D__LIBHB__ -DUSE_PTHREAD -DUSE_X265 -DHAS_STRERROR_R -DARCH_X86_64 -I./libhb/ -I./contrib/include -I/usr/include/libxml2 -c ../libhb/unsharp.c -o libhb/unsharp.o
/usr/local/bin/gcc -std=gnu99 -pipe -fmessage-length=0 -Wall -g0 -O3 -mfpmath=sse -msse2 -DUSE_LIBAV_AAC -D__LIBHB__ -DUSE_PTHREAD -DUSE_X265 -DHAS_STRERROR_R -DARCH_X86_64 -I./libhb/ -I./contrib/include -I/usr/include/libxml2 -c ../libhb/detelecine.c -o libhb/detelecine.o
/usr/local/bin/gcc -std=gnu99 -pipe -fmessage-length=0 -Wall -g0 -O3 -mfpmath=sse -msse2 -DUSE_LIBAV_AAC -D__LIBHB__ -DUSE_PTHREAD -DUSE_X265 -DHAS_STRERROR_R -DARCH_X86_64 -I./libhb/ -I./contrib/include -I/usr/include/libxml2 -c ../libhb/work.c -o libhb/work.o
../libhb/work.c: In function 'hb_work_init':
../libhb/work.c:56:53: error: 'HB_LOW_PRIORITY' undeclared (first use in this function)
return hb_thread_init( "work", work_func, work, HB_LOW_PRIORITY );
^~~~~~~~~~~~~~~
../libhb/work.c:56:53: note: each undeclared identifier is reported only once for each function it appears in
../libhb/work.c: In function 'do_job':
../libhb/work.c:1717:62: error: 'HB_LOW_PRIORITY' undeclared (first use in this function)
w->thread = hb_thread_init(w->name, hb_work_loop, w, HB_LOW_PRIORITY);
^~~~~~~~~~~~~~~
../libhb/work.c: In function 'hb_work_init':
../libhb/work.c:57:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
gmake: *** [../libhb/module.rules:12: libhb/work.o] Error 1