Bug 197774 - multimedia/handbrake fails during build of internal x264 library
Summary: multimedia/handbrake fails during build of internal x264 library
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 00:08 UTC by Scott Furry
Modified: 2015-04-03 11:36 UTC (History)
4 users (show)

See Also:


Attachments
portmaster log file of handbrake-0.9.9 build process (71.54 KB, application/x-gzip)
2015-02-18 00:10 UTC, Scott Furry
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Furry 2015-02-18 00:08:57 UTC
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 )
Comment 1 Scott Furry 2015-02-18 00:10:41 UTC
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.
Comment 2 Scott Furry 2015-02-25 23:38:21 UTC
pkg install multimedia/handbrake will indicate successful build but binary(ghb) cannot be located on the system.
Comment 3 Scott Furry 2015-02-26 04:13:12 UTC
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.
Comment 4 Scott Furry 2015-02-26 04:14:30 UTC
Thanks to Michael Butler for the patch/workaround.
Comment 5 Santiago Pastorino 2015-03-04 14:17:08 UTC
This also affects me, so I'd change the importance of the issue to affects some or many people.
Comment 6 Scott Furry 2015-03-04 14:31:21 UTC
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.
Comment 7 Jens Grassel 2015-03-07 16:38:38 UTC
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
Comment 8 Ralf van der Enden 2015-03-17 22:53:47 UTC
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.
Comment 9 Jens Grassel 2015-03-30 17:25:16 UTC
The latest port (0.10.1) compiles and runs fine. Thank you very much.
Comment 10 Thomas Zander freebsd_committer freebsd_triage 2015-04-03 11:36:50 UTC
Builds as intended after handbrake update to 0.10.1