Fails compiling libhb/work.c to libhb/work.o
Steps to reproduce the problem (If Applicable)
Code: Select all
# git clone ...
# cd HandBrake
# ./configure
checkout libbluray from http://git.videolan.org/git/libbluray.git and fake gmake to compile the checked out version instead of downloaded libbluray-1.0.1 (gets around bug within compiling libbluray-1.0.1).
Code: Select all
# cd build
# gmake
Handbrake – trunc
libbluray – trunc
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)
* Ubuntu 17.10
* FreeBSD 11.1
Error message text or screenshot (If Applicable)
Code: Select all
../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);
Code: Select all
# grep -R 'HB_LOW_PRIORITY' *
libhb/ports.h:# define HB_LOW_PRIORITY 5
libhb/ports.h:# define HB_LOW_PRIORITY 0
libhb/ports.h:# define HB_LOW_PRIORITY 0
libhb/ports.h:# define HB_LOW_PRIORITY 0
libhb/ports.h:# define HB_LOW_PRIORITY 0
Code: Select all
./libhb/
./contrib/include
/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd11.0/6.4.0/include
/usr/local/include
/usr/include
Code: Select all
# grep -Ri 'ports.h' *
common.h:#include "ports.h"
-> ports.h has to be included somewhere to make it compile!