Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879045 - x11-libs/cairo-1.17.6[opengl,-X] - cairo-glx-context.c:(.text+<snip>): undefined reference to XDestroyWindow
Summary: x11-libs/cairo-1.17.6[opengl,-X] - cairo-glx-context.c:(.text+<snip>): undefi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 891619 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-11-01 18:22 UTC by Toralf Förster
Modified: 2023-01-31 18:31 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,21.38 KB, text/plain)
2022-11-01 18:22 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,104.73 KB, application/x-bzip)
2022-11-01 18:22 UTC, Toralf Förster
Details
environment (environment,119.89 KB, text/plain)
2022-11-01 18:22 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,31.98 KB, application/x-bzip)
2022-11-01 18:22 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,10.12 KB, application/x-bzip)
2022-11-01 18:22 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,42.90 KB, application/x-bzip)
2022-11-01 18:22 UTC, Toralf Förster
Details
x11-libs:cairo-1.17.6:20221101-110701.log.bz2 (x11-libs:cairo-1.17.6:20221101-110701.log.bz2,13.55 KB, application/x-bzip)
2022-11-01 18:22 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 2022-11-01 18:22:02 UTC
too long lines were shrinked:

[151/163] x86_64-pc-linux-gnu-gcc  -o src/libcairo.so.2.11706.0 src/libcairo.so.2.11706.0.p/cairo-analysis-surface.c.o src/libcairo.so.2.11706.0.p/cairo-arc.c.o src/libcairo.so.2.11706.0.p/cairo-array.c.o src/libcairo.so.2.11706.0.p/cairo-atomic.c.o src/libcairo.so.2.11706.0.p/cairo-base64-stream.c.
FAILED: src/libcairo.so.2.11706.0 
x86_64-pc-linux-gnu-gcc  -o src/libcairo.so.2.11706.0 src/libcairo.so.2.11706.0.p/cairo-analysis-surface.c.o src/libcairo.so.2.11706.0.p/cairo-arc.c.o src/libcairo.so.2.11706.0.p/cairo-array.c.o src/libcairo.so.2.11706.0.p/cairo-atomic.c.o src/libcairo.so.2.11706.0.p/cairo-base64-stream.c.o src/libc
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/libcairo.so.2.11706.0.p/cairo-glx-context.c.o: in function `_glx_destroy':
cairo-glx-context.c:(.text+0x38): undefined reference to `XDestroyWindow'
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/libcairo.so.2.11706.0.p/cairo-glx-context.c.o: in function `cairo_glx_device_create':
cairo-glx-context.c:(.text+0x304): undefined reference to `XFree'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20221027-040004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.3
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
4)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm
  [4]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.4

  HEAD of ::gentoo
commit b81676d6de7724e423b8da7956fe6e1c2d34858a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 1 10:46:51 2022 +0000

    2022-11-01 10:46:51 UTC

emerge -qpvO x11-libs/cairo
[ebuild     U ] x11-libs/cairo-1.17.6 [1.16.0-r6] USE="glib opengl -X (-aqua) -debug (-gles2-only) -gles3% -gtk-doc% -test% (-static-libs%) (-svg%*) (-utils%) (-valgrind%)" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2022-11-01 18:22:03 UTC
Created attachment 826363 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-01 18:22:05 UTC
Created attachment 826365 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-11-01 18:22:06 UTC
Created attachment 826367 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-01 18:22:07 UTC
Created attachment 826369 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-01 18:22:08 UTC
Created attachment 826371 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-01 18:22:10 UTC
Created attachment 826373 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-01 18:22:11 UTC
Created attachment 826375 [details]
x11-libs:cairo-1.17.6:20221101-110701.log.bz2
Comment 8 Sorrow 2022-11-11 16:26:35 UTC
The problem happens when you build cairo with USE="-X opengl".
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-31 18:25:04 UTC
*** Bug 891619 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2023-01-31 18:31:21 UTC
The bug has been closed via the following commit(s):

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

commit fa5a90b58a64a24730d51462510acedb9490b0c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-31 18:25:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-31 18:26:06 +0000

    x11-libs/cairo: drop opengl backend
    
    Dropped entirely upstream in https://gitlab.freedesktop.org/cairo/cairo/-/commit/47a932bffc16323b58e3c8f9bc3fe0d821838a84
    and caused build failures with USE=-X.
    
    As discussed in #gentoo-desktop.
    
    Closes: https://bugs.gentoo.org/879045
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-libs/cairo/cairo-1.17.6-r1.ebuild | 82 +++++++++++++++++++++++++++++++++++
 x11-libs/cairo/cairo-9999.ebuild      | 22 +---------
 2 files changed, 84 insertions(+), 20 deletions(-)