all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Andrea Corallo <akrl@sdf.org>, emacs-devel@gnu.org
Subject: Re: master 9076a63 1/3: Port to Solaris 10
Date: Mon, 4 Jan 2021 10:35:42 -0800	[thread overview]
Message-ID: <89b303a7-cb9f-bf9d-778c-654317fd944a@cs.ucla.edu> (raw)
In-Reply-To: <xjfturwfzwy.fsf@sdf.org>

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

On 1/4/21 8:08 AM, Andrea Corallo wrote:
>    CCLD     temacs
> /usr/bin/ld: xterm.o: undefined reference to symbol 'XRenderQueryExtension'
> //usr/lib/x86_64-linux-gnu/libXrender.so.1: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> Makefile:655: recipe for target 'temacs' failed
> ========
> 
> We don't add -lXrender.  I do have "X11/extensions/Xrender.h" but not
> "X11/Intrinsic.h".

Isn't it odd to have the development environment for X11 extensions 
installed, but not that for base X11?

Still, Emacs should work if Xrender is absent while Cairo is present. I 
installed the attached patch to try to do that; please let us know if it 
works for you.

[-- Attachment #2: 0001-Do-not-assume-Xrender-merely-because-Cairo.patch --]
[-- Type: text/x-patch, Size: 1211 bytes --]

From ec35298e7f12d5aa86b79bcf5a6517ecc7414d74 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 4 Jan 2021 10:33:43 -0800
Subject: [PATCH] Do not assume Xrender merely because Cairo

Problem reported by Andrea Corallo in:
https://lists.gnu.org/r/emacs-devel/2021-01/msg00225.html
* src/xterm.c (x_term_init) [USE_CAIRO && !HAVE_XRENDER]:
Do not call XRenderQueryExtension.
---
 src/xterm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 0a86738cc2..b8374fed8b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -13035,13 +13035,13 @@ #define NUM_ARGV 10
        or larger than other for other applications, even if it is the same
        font name (monospace-10 for example).  */
 
+# ifdef HAVE_XRENDER
     int event_base, error_base;
-    char *v;
-    double d;
-
     XRenderQueryExtension (dpyinfo->display, &event_base, &error_base);
+# endif
 
-    v = XGetDefault (dpyinfo->display, "Xft", "dpi");
+    char *v = XGetDefault (dpyinfo->display, "Xft", "dpi");
+    double d;
     if (v != NULL && sscanf (v, "%lf", &d) == 1)
       dpyinfo->resy = dpyinfo->resx = d;
   }
-- 
2.27.0


  reply	other threads:[~2021-01-04 18:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210101205823.1572.21242@vcs0.savannah.gnu.org>
     [not found] ` <20210101205825.93701209C6@vcs0.savannah.gnu.org>
2021-01-04 16:08   ` master 9076a63 1/3: Port to Solaris 10 Andrea Corallo via Emacs development discussions.
2021-01-04 18:35     ` Paul Eggert [this message]
2021-01-04 19:45       ` Andrea Corallo via Emacs development discussions.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89b303a7-cb9f-bf9d-778c-654317fd944a@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=akrl@sdf.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.