Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875230 - app-editors/emacs-28.2 - ./xterm.h: fatal error: cairo-xlib.h file not found
Summary: app-editors/emacs-28.2 - ./xterm.h: fatal error: cairo-xlib.h file not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-05 07:25 UTC by Toralf Förster
Modified: 2022-10-05 15:18 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.63 KB, text/plain)
2022-10-05 07:25 UTC, Toralf Förster
Details
app-editors:emacs-28.2:20221004-201519.log (app-editors:emacs-28.2:20221004-201519.log,105.46 KB, text/plain)
2022-10-05 07:25 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,6.04 KB, application/x-bzip)
2022-10-05 07:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,21.54 KB, text/plain)
2022-10-05 07:25 UTC, Toralf Förster
Details
environment (environment,99.20 KB, text/plain)
2022-10-05 07:25 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,9.09 KB, application/x-bzip)
2022-10-05 07:25 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,42.16 KB, application/x-bzip)
2022-10-05 07:25 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,43.41 KB, application/x-bzip)
2022-10-05 07:25 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-10-05 07:25:43 UTC
too long lines were shrinked:

clang -c  -Demacs  -I. -I. -I../lib -I../lib      -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/cairo -I/usr/inclu
clang -c    -MMD -MF deps/EvHand.d -MP -Wno-switch -Wno-pointer-sign -Wno-string-plus-int -Wno-unknown-attributes -Wno-initializer-overrides -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare    -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=impli
In file included from dispnew.c:33:
In file included from ./keyboard.h:27:
./xterm.h:71:10: fatal error: 'cairo-xlib.h' file not found
#include <cairo-xlib.h>
         ^~~~~~~~~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit a7d72d81ce25b9d16eb27e51cbe9f0d910626e59
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 19:47:52 2022 +0000

    2022-10-04 19:47:52 UTC

emerge -qpvO app-editors/emacs
[ebuild  N    ] app-editors/emacs-28.2  USE="acl cairo gmp gpm gui inotify jpeg kerberos png sound ssl svg threads xft xpm zlib -Xaw3d -alsa (-aqua) -athena -dbus -dynamic-loading -games -gfile -gif -gsettings -gtk -gzip-el -harfbuzz -imagemagick -jit -json -lcms -libxml2 -livecd -m17n-lib -mailutils -motif (-selinux) -source -systemd -tiff -toolkit-scroll-bars -wide-int -xwidgets"
Comment 1 Toralf Förster gentoo-dev 2022-10-05 07:25:44 UTC
Created attachment 820408 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-05 07:25:46 UTC
Created attachment 820411 [details]
app-editors:emacs-28.2:20221004-201519.log
Comment 3 Toralf Förster gentoo-dev 2022-10-05 07:25:47 UTC
Created attachment 820414 [details]
clang.tar.bz2
Comment 4 Toralf Förster gentoo-dev 2022-10-05 07:25:48 UTC
Created attachment 820417 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2022-10-05 07:25:51 UTC
Created attachment 820420 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2022-10-05 07:25:52 UTC
Created attachment 820423 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-05 07:25:53 UTC
Created attachment 820426 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-10-05 07:25:55 UTC
Created attachment 820429 [details]
temp.tar.bz2
Comment 9 Ulrich Müller gentoo-dev 2022-10-05 08:00:00 UTC
(In reply to Toralf Förster from comment #2)
> Created attachment 820411 [details]
> app-editors:emacs-28.2:20221004-201519.log

clang -c  -Demacs  -I. -I. -I../lib -I../lib      -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2   -I/usr/include/libpng16            -I/usr/include/freetype2  -I/usr/include/freetype2     -MMD -MF deps/dispnew.d -MP     -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16   -Wno-switch -Wno-pointer-sign -Wno-string-plus-int -Wno-unknown-attributes -Wno-initializer-overrides -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int  dispnew.c

I see -I/usr/include/cairo there, so I wonder why it doesn't find the file. Maybe a missing USE dependency on cairo?

In file included from dispnew.c:33:
In file included from ./keyboard.h:27:
./xterm.h:71:10: fatal error: 'cairo-xlib.h' file not found
#include <cairo-xlib.h>
         ^~~~~~~~~~~~~~

Do you have the file /usr/include/cairo/cairo-xlib.h?
Comment 10 Toralf Förster gentoo-dev 2022-10-05 14:14:35 UTC
(In reply to Ulrich Müller from comment #9)
> Do you have the file /usr/include/cairo/cairo-xlib.h?

no:

# ls -l  /usr/include/cairo/cairo-xlib.h*
ls: cannot access '/usr/include/cairo/cairo-xlib.h*': No such file or directory
Comment 11 Ulrich Müller gentoo-dev 2022-10-05 15:03:23 UTC
Right. Looks like we need cairo[X].
Comment 12 Larry the Git Cow gentoo-dev 2022-10-05 15:18:47 UTC
The bug has been closed via the following commit(s):

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

commit 1cc149f5d5938cbd0087f55cb9b590fd9cd442b5
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-10-05 15:17:25 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-10-05 15:18:36 +0000

    app-editors/emacs: Depend on x11-libs/cairo[X]
    
    Closes: https://bugs.gentoo.org/875230
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/emacs/{emacs-25.3-r11.ebuild => emacs-25.3-r12.ebuild} | 2 +-
 app-editors/emacs/{emacs-26.3-r7.ebuild => emacs-26.3-r8.ebuild}   | 2 +-
 app-editors/emacs/{emacs-27.2-r5.ebuild => emacs-27.2-r6.ebuild}   | 2 +-
 app-editors/emacs/emacs-28.1-r2.ebuild                             | 2 +-
 app-editors/emacs/emacs-28.1-r3.ebuild                             | 2 +-
 app-editors/emacs/{emacs-28.2.ebuild => emacs-28.2-r1.ebuild}      | 2 +-
 app-editors/emacs/emacs-28.2.9999.ebuild                           | 2 +-
 app-editors/emacs/emacs-29.0.9999.ebuild                           | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)