Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724650 - media-video/handbrake-1.3.2 fails to build: undefined reference to symbol 'x265_api_query'
Summary: media-video/handbrake-1.3.2 fails to build: undefined reference to symbol 'x2...
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: PATCH
: 727268 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-23 11:16 UTC by Tomasz Golinski
Modified: 2020-08-18 18:45 UTC (History)
21 users (show)

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


Attachments
build log (build.log.gz,6.84 KB, application/gzip)
2020-05-23 11:17 UTC, Tomasz Golinski
Details
handbrake-1.3.2-x265.patch (handbrake-1.3.2-x265.patch,585 bytes, patch)
2020-05-23 15:27 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Golinski 2020-05-23 11:16:40 UTC
I'm trying to build it with media-libs/x265-3.2.1 but it produces error:

/usr/bin/g++ -pipe -Wl,-S -Wl,-O1 -Wl,--as-needed -fmessage-length=0 -Wall -Wno-format-truncation -g0 -O3 -O2 -march=native -pipe -mfpmath=sse -msse2 -I./libhb/ -Iinclude -I/usr/include/libxml2 -o HandBrakeCLI -Wl,--start-group test/test.o test/parsecsv.o ./libhb/libhandbrake.a -Llib -lass -lavformat -lavfilter -lavcodec -lavutil -lswresample -lpostproc -lmp3lame -ldvdnav -ldvdread -lfribidi -lswscale -lvpx -ltheoraenc -ltheoradec -lvorbis -lvorbisenc -logg -lx264 -lbluray -lfreetype -lxml2 -lbz2 -lz -ljansson -lharfbuzz -lopus -lspeex -llzma -ldav1d -lfontconfig -lpthread -ldl -lm -Wl,--end-group
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./libhb/libhandbrake.a(common.o): undefined reference to symbol 'x265_api_query'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libx265.so.179: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


Reproducible: Always

Steps to Reproduce:
1. emerge handbrake
2.
3.



/usr/lib/python3.7/site-packages/portage/package/ebuild/_config/KeywordsManager.py:70: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  UserWarning)
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.30-r8, 5.6.13-gentoo x86_64)
=================================================================
System uname: Linux-5.6.13-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-gentoo-2.6
KiB Mem:    32913040 total,  27191676 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sat, 23 May 2020 10:14:29 +0000
Head commit of repository gentoo: 57b3a60f46455829b03574dad6ed2e68ec69559a

Timestamp of repository kde: Sat, 23 May 2020 09:32:06 +0000
Head commit of repository kde: ee05667d3705cc80bd71200fb06c8dc962ed4a26

Timestamp of repository steam-overlay: Sat, 23 May 2020 09:30:57 +0000
Head commit of repository steam-overlay: 16b95b0e44ed34a02bdad6ac632dc22a97669e87

sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: yes

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo

local
    location: /var/db/repos/local
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=20 --load-average=14 --keep-going"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.leaseweb.com/gentoo/"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/pl* -/usr/share/locale/en /usr/share/binutils-data/*/*/locale -/usr/share/binutils-data/*/*/locale/pl* -/usr/share/binutils-data/*/*/locale/en /usr/share/gcc-data/*/*/locale -/usr/share/gcc-data/*/*/locale/pl* -/usr/share/gcc-data/*/*/locale/en /usr/share/man/ -/usr/share/man/man* -/usr/share/man/pl* -/usr/share/man/whatis"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j24 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acoustid acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cups dbus dri dts dvd dvdr emboss encode exif flac fortran gdbm gif gimp gpm gpu gtk gtk3 iconv icu jpeg lcms libnotify libtirpc lto mad mng mobi mp3 mp4 mpeg mtp multilib musepack musicbrainz ncurses nls nptl offensive ogg opencl opengl openmp opus pam pango pcre pdf pgo png policykit postscript ppds qt5 readline sane scanner sdl seccomp spell split-usr ssl startup-notification svg system-cairo system-harfbuzz system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-llvm system-sqlite tcpd tiff truetype udev udisks unicode upower usb userlocales vdpau vorbis vulkan webp wxwidgets x264 x265 xcb xml xmp xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="intel8x0 emu10k1 virtuoso" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="hd44780 curses text rawserial serialpos serialvfd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="serial" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tomasz Golinski 2020-05-23 11:17:42 UTC
Created attachment 641024 [details]
build log
Comment 2 ernsteiswuerfel archtester 2020-05-23 12:41:33 UTC
Same here.
Comment 3 edes 2020-05-23 14:51:51 UTC
and here
Comment 4 Marco Genasci 2020-05-23 15:27:36 UTC
Created attachment 641160 [details, diff]
handbrake-1.3.2-x265.patch

Patch to solve problem
Comment 5 ernsteiswuerfel archtester 2020-05-23 22:48:35 UTC
(In reply to Marco Genasci from comment #4)
> Created attachment 641160 [details, diff] [details, diff]
> handbrake-1.3.2-x265.patch
> 
> Patch to solve problem
Your patch works fine, thanks!
Comment 6 Benjamin Réveillé 2020-05-24 12:41:46 UTC
Can confirm patch does the job !
Comment 7 jms 2020-05-24 13:35:28 UTC
(In reply to Marco Genasci from comment #4)
> Created attachment 641160 [details, diff] [details, diff]
> handbrake-1.3.2-x265.patch
> 
> Patch to solve problem

same problem.
confirm with the patch no problem.
thanks
Comment 8 Guido Winkelmann 2020-05-29 21:07:25 UTC
Problem is still present with media-libs/x265-3.3
Comment 9 Beelzebubbie 2020-06-05 16:33:59 UTC
proposed patch is working with media-libs/x265-3.3
Comment 10 Per Pomsel 2020-06-16 14:42:41 UTC
Maintainer, what's the problem here? Push the patch to git...
Comment 11 Larry the Git Cow gentoo-dev 2020-06-27 09:39:12 UTC
The bug has been closed via the following commit(s):

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

commit de81c6b585f654b688425b8d84801677c4357c57
Author:     Ian Whyman <thev00d00@gentoo.org>
AuthorDate: 2020-06-27 09:38:40 +0000
Commit:     Ian Whyman <thev00d00@gentoo.org>
CommitDate: 2020-06-27 09:39:05 +0000

    media-video/handbrake: Bump, fix x265 link, drop old
    
    Closes: https://bugs.gentoo.org/713598
    Closes: https://bugs.gentoo.org/724650
    Closes: https://bugs.gentoo.org/724650
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Ian Whyman <thev00d00@gentoo.org>

 media-video/handbrake/Manifest                     |   3 +-
 .../handbrake-1.3.0-missing-linker-flags.patch     |  27 ----
 .../files/handbrake-1.3.2-x265-link.patch          |  12 ++
 media-video/handbrake/handbrake-1.3.0-r2.ebuild    | 170 ---------------------
 ...ndbrake-1.3.2.ebuild => handbrake-1.3.3.ebuild} |   5 +-
 5 files changed, 17 insertions(+), 200 deletions(-)

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

commit de81c6b585f654b688425b8d84801677c4357c57
Author:     Ian Whyman <thev00d00@gentoo.org>
AuthorDate: 2020-06-27 09:38:40 +0000
Commit:     Ian Whyman <thev00d00@gentoo.org>
CommitDate: 2020-06-27 09:39:05 +0000

    media-video/handbrake: Bump, fix x265 link, drop old
    
    Closes: https://bugs.gentoo.org/713598
    Closes: https://bugs.gentoo.org/724650
    Closes: https://bugs.gentoo.org/724650
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Ian Whyman <thev00d00@gentoo.org>

 media-video/handbrake/Manifest                     |   3 +-
 .../handbrake-1.3.0-missing-linker-flags.patch     |  27 ----
 .../files/handbrake-1.3.2-x265-link.patch          |  12 ++
 media-video/handbrake/handbrake-1.3.0-r2.ebuild    | 170 ---------------------
 ...ndbrake-1.3.2.ebuild => handbrake-1.3.3.ebuild} |   5 +-
 5 files changed, 17 insertions(+), 200 deletions(-)
Comment 12 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2020-06-27 09:40:52 UTC
*** Bug 727268 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Proteus 2020-06-28 10:48:46 UTC
If hadbrake has USE=-x265, the patch causes ebuild to fail with a "cannot find -lx265"
Comment 14 Attila Tóth 2020-06-28 11:37:48 UTC
(In reply to Andreas Proteus from comment #13)
> If hadbrake has USE=-x265, the patch causes ebuild to fail with a "cannot
> find -lx265"

Making this patch for only USE=x265 would be a solution to this...