env set to build using clang35/gmake. During build process of handbrake-0.9.9, port will download and build x264 (and other libraries) from source strictly for handbrake (not use external dependencies). Build will fail with following ===== common/pixel.c:1111:17: error: use of undeclared identifier 'X264_CPU_SSE_MISALIGN' if( cpu&X264_CPU_SSE_MISALIGN ) ^ 6 warnings and 1 error generated. <builtin>: recipe for target 'common/pixel.o' failed gmake[3]: *** [common/pixel.o] Error 1 gmake[3]: Leaving directory '/usr/ports/multimedia/handbrake/work/HandBrake-0.9.9/build/contrib/x264/x264' ../contrib/x264/module.rules:2: recipe for target 'contrib/x264/.stamp.build' failed gmake[2]: *** [contrib/x264/.stamp.build] Error 2 gmake[2]: Leaving directory '/usr/ports/multimedia/handbrake/work/HandBrake-0.9.9/build' *** Error code 1 Stop. make[1]: stopped in /usr/ports/multimedia/handbrake *** Error code 1 Stop. make: stopped in /usr/ports/multimedia/handbrake ===== Error is persistent Could not find same or similar in FreeBSD Bugzilla or internet search. However, found reference to x264 build process failure with similar error message as a result of config.h being clobbered. ( http://forum.doom9.org/showthread.php?t=92726&page=11 )
Created attachment 153128 [details] portmaster log file of handbrake-0.9.9 build process Log file is 1.4MB. Exceeds paste/text attachment limit. Tar-gz to attach.
pkg install multimedia/handbrake will indicate successful build but binary(ghb) cannot be located on the system.
from freebsd-ports mailing list... imb@toshi:/usr/ports/multimedia/handbrake> svn diff Index: Makefile =================================================================== --- Makefile (revision 379979) +++ Makefile (working copy) @@ -78,7 +78,7 @@ .if ${PORT_OPTIONS:MX11} CONFIGURE_ARGS+= --disable-gtk-update-checks --disable-gst -CPPFLAGS+= -I${LOCALBASE}/include +#CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \ libnotify.so:${PORTSDIR}/devel/libnotify patch results in successful compile. No desktop file included with install.
Thanks to Michael Butler for the patch/workaround.
This also affects me, so I'd change the importance of the issue to affects some or many people.
Should point out other problem. After applying patch, I would gather up file(s) to be converted. After clicking Run handbrake would quit. Error message from start HandBrake from cmd line is segmentation fault. Unsure if this is related to missing codec/libraries. Must get backtrace.
Hi, I have the same compilation error and the same behaviour (segfault on file opening) when I install handbrake from packages. It compiles using the provided patch/workaround but handbrake keeps segfaulting when opening a file. Running 10.1-RELEASE and clang 3.4. I think that the problems started after the x264 port had a major update (split into two ports). Regards
Handbrake builds fine, but the problem lies with multimedia/libdvdcss. The 1.3.x branch from the ports tree is incompatible with Handbrake 0.9.9 and the only way I got it play nice was to downgrade to libdvdcss 1.2.13 (using portdowngrade). Maybe it's possible to pull in 2.1.13 like the other tarballs (:contrib mastersite), but I haven't had time to actually try that.
The latest port (0.10.1) compiles and runs fine. Thank you very much.
Builds as intended after handbrake update to 0.10.1