Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764563 - media-gfx/blender-2.91.0 : /.../ld: lib/libbf_intern_ghost.a(GHOST_SystemX11.cpp.o): undefined reference to symbol XPending
Summary: media-gfx/blender-2.91.0 : /.../ld: lib/libbf_intern_ghost.a(GHOST_SystemX11....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-09 10:20 UTC by Toralf Förster
Modified: 2021-06-16 22:47 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.37 KB, text/plain)
2021-01-09 10:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,171.39 KB, text/plain)
2021-01-09 10:20 UTC, Toralf Förster
Details
environment (environment,144.03 KB, text/plain)
2021-01-09 10:20 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.17 KB, application/x-bzip)
2021-01-09 10:20 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.12 KB, application/x-bzip)
2021-01-09 10:20 UTC, Toralf Förster
Details
media-gfx:blender-2.91.0:20210109-035253.log.bz2 (media-gfx:blender-2.91.0:20210109-035253.log.bz2,116.98 KB, application/x-bzip)
2021-01-09 10:20 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,148.19 KB, application/x-bzip)
2021-01-09 10:20 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-01-09 10:20:13 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/libbf_intern_ghost.a(GHOST_SystemX11.cpp.o): undefined reference to symbol 'XPending'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libX11.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20210104-123916

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
/usr/lib/llvm/11
11.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.9 (fallback)
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Jan  9 03:05:16 AM UTC 2021

emerge -qpvO media-gfx/blender
[ebuild  N    ] media-gfx/blender-2.91.0  USE="bullet dds elbeem jemalloc nls openexr openmp sdl system-numpy system-python tbb tiff -abi6-compat -abi7-compat -alembic -collada -color-management -cuda -cycles -debug (-doc) -ffmpeg -fftw -headless -jack -jpeg2k -llvm -man -ndof -openal -opencl -openimageio -opensubdiv -openvdb -osl -sndfile -standalone -test -valgrind" PYTHON_SINGLE_TARGET="python3_8 -python3_7"
Comment 1 Toralf Förster gentoo-dev 2021-01-09 10:20:15 UTC
Created attachment 682042 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-01-09 10:20:16 UTC
Created attachment 682045 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-01-09 10:20:18 UTC
Created attachment 682048 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-01-09 10:20:19 UTC
Created attachment 682051 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2021-01-09 10:20:20 UTC
Created attachment 682054 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2021-01-09 10:20:22 UTC
Created attachment 682057 [details]
media-gfx:blender-2.91.0:20210109-035253.log.bz2
Comment 7 Toralf Förster gentoo-dev 2021-01-09 10:20:23 UTC
Created attachment 682060 [details]
temp.tbz2
Comment 9 MT 2021-03-23 15:20:34 UTC
I can confirm that the patch from https://bugs.gentoo.org/764563#c8 fixes the issue with missing XPending symbols for both v2.91.0 and v2.91.2, but compilation still fails later with more missing symbols from X11 libs:

------

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/libbf_intern_ghost.a(GHOST_DisplayManagerX11.cpp.o): in function `GHOST_DisplayManagerX11::getNumDisplaySettings(unsigned char, int&) const [clone .localalias]':
GHOST_DisplayManagerX11.cpp:(.text._ZNK23GHOST_DisplayManagerX1121getNumDisplaySettingsEhRi+0x3c): undefined reference to `XF86VidModeQueryVersion'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: GHOST_DisplayManagerX11.cpp:(.text._ZNK23GHOST_DisplayManagerX1121getNumDisplaySettingsEhRi+0x5c): undefined reference to `XF86VidModeGetAllModeLines'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/libbf_intern_ghost.a(GHOST_DisplayManagerX11.cpp.o): in function `GHOST_DisplayManagerX11::getDisplaySetting(unsigned char, int, GHOST_DisplaySetting&) const [clone .localalias]':
GHOST_DisplayManagerX11.cpp:(.text._ZNK23GHOST_DisplayManagerX1117getDisplaySettingEhiR20GHOST_DisplaySetting+0x42): undefined reference to `XF86VidModeQueryVersion'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: GHOST_DisplayManagerX11.cpp:(.text._ZNK23GHOST_DisplayManagerX1117getDisplaySettingEhiR20GHOST_DisplaySetting+0xdc): undefined reference to `XF86VidModeGetAllModeLines'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/libbf_intern_ghost.a(GHOST_DisplayManagerX11.cpp.o): in function `GHOST_DisplayManagerX11::setCurrentDisplaySetting(unsigned char, GHOST_DisplaySetting const&) [clone .localalias]':
GHOST_DisplayManagerX11.cpp:(.text._ZN23GHOST_DisplayManagerX1124setCurrentDisplaySettingEhRK20GHOST_DisplaySetting+0x51): undefined reference to `XF86VidModeQueryVersion'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: GHOST_DisplayManagerX11.cpp:(.text._ZN23GHOST_DisplayManagerX1124setCurrentDisplaySettingEhRK20GHOST_DisplaySetting+0x6e): undefined reference to `XF86VidModeGetAllModeLines'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: GHOST_DisplayManagerX11.cpp:(.text._ZN23GHOST_DisplayManagerX1124setCurrentDisplaySettingEhRK20GHOST_DisplaySetting+0x103): undefined reference to `XF86VidModeSwitchToMode'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: GHOST_DisplayManagerX11.cpp:(.text._ZN23GHOST_DisplayManagerX1124setCurrentDisplaySettingEhRK20GHOST_DisplaySetting+0x112): undefined reference to `XF86VidModeSetViewPort'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

------

NOTE: Package x11-libs/libXxf86vm provides the XF86VidMode* symbols, and  Blender's build system handles them in /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/build_files/cmake/platform/platform_unix.cmake but fails to properly detect them during the configure phase (after all, there are not CMake's macros detection for the x11-libs/libXxf86vm libs anywhere in any CMakeLists.txt), thus leading to the  aforementioned linking failures.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-16 22:47:51 UTC
Fixed already in https://github.com/gentoo/gentoo/pull/20565.

See the work in: 
bug 795003
bug 778008
bug 774372
bug 673422
bug 737388