Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552792 - media-video/handbrake-10.0.1 x265 link error
Summary: media-video/handbrake-10.0.1 x265 link error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-21 22:25 UTC by Peter Foley
Modified: 2015-08-09 13:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Handbrake x265 fix (handbrake-9999-fix-x265.patch,285 bytes, patch)
2015-06-21 22:25 UTC, Peter Foley
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Foley 2015-06-21 22:25:04 UTC
Created attachment 405514 [details, diff]
Handbrake x265 fix

The current handbrake ebuild fails to compile HandBrakeCLI with x265 support.

/usr/bin/g++ -pipe -Wl,-S -Wl,-O1 -Wl,--as-needed -fmessage-length=0 -Wall -g0 -O3 -O2 -pipe -march=native -DUSE_X265 -I./libhb/ -Iinclude -o HandBrakeCLI -Wl,--start-group test/test.o test/parsecsv.o ./libhb/libhandbrake.a -Llib -lass -lavcodec -lavformat -lavutil -lavresample -ldvdnav -ldvdread -lfontconfig -lfribidi -lmp3lame -logg -lsamplerate -lswscale -lvpx -ltheoraenc -ltheoradec -lvorbis -lvorbisenc -lx264 -lbluray -lfreetype -lxml2 -lbz2 -lz -lpthread -ldl -lm -Wl,--end-group
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld: ./libhb/libhandbrake.a(encx265.o): undefined reference to symbol 'x265_param_alloc'
/usr/lib64/libx265.so.59: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
../test/module.rules:7: recipe for target 'HandBrakeCLI' failed
make: *** [HandBrakeCLI] Error 1

I've attached a patch that adds the necessary link flag to fix this.
Comment 1 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2015-08-09 13:49:13 UTC
Hey Peter,

Thanks for the patch, its in the tree now!

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8f141afeb0e183298fe227672ac9338e0e8e12c