From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs fails to build -- XRenderQueryExtension undefined
Date: Tue, 12 Jan 2010 09:23:08 +0100 [thread overview]
Message-ID: <4B4C316C.2020709@swipnet.se> (raw)
In-Reply-To: <buovdf7iwr6.fsf@dhlpc061.dev.necel.com>
Miles Bader skrev:
> Jan Djärv <jan.h.d@swipnet.se> writes:
>>> I worked around it with the following patch, though it's probably not
>>> exactly the right fix...
>> What system are you on? How did you configure Emacs?
>> If Xft requires Xrender at link time it should say so in the pkg-config
>> output. Normally on GNU/Linux, -Xrender is a private dependency,
>
> It only says so in the pkg-config output if you specify --static
> (otherwise, I think that since it's a "private" dependency of libxft.so,
> it uses libxft.so's dependencies to load the library at runtime, but the
> linker won't see it):
>
> $ pkg-config --libs xft
> -lXft
> $ pkg-config --libs --static xft
> -lXft -lXrender -lfontconfig -lexpat -lfreetype -lz -lX11 -lpthread -lxcb -lXau -lXdmcp
>
> The problem, as far as I can tell, seems to be that there's an explicit
> reference to XRenderQueryExtension in src/xftfont.c (src/xftfont.c:365),
> so Emacs itself needs to link against -lXrender, it can't rely on the
> the fact that libxft uses it.
Ah, I didn't see that.
>
> I dunno if there's some system change that exposed this issue recently;
> the relevant Emacs change seems to be a bit old -- vc annotate says:
>
> f602b732 src/xftfont.c (YAMAMOTO Mitsuharu 2009-05-11 09:29:49 +0000 365) XRenderQueryExtension (display, &event_base, &error_base);
>
> [Note, I don't know the details of how this stuff works really, but I
> think the above is roughly correct.]
>
Strange that it worked earlier then. It can't hurt to add -lXrender. To be
on the safe side, AC_CHECK_LIB for Xrender should be made before adding
-lXrender to libs.
Jan D.
next prev parent reply other threads:[~2010-01-12 8:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-12 3:12 emacs fails to build -- XRenderQueryExtension undefined Miles Bader
2010-01-12 7:39 ` Jan Djärv
2010-01-12 7:54 ` Miles Bader
2010-01-12 8:06 ` Miles Bader
2010-01-12 8:23 ` Jan Djärv [this message]
2010-01-12 16:25 ` Chong Yidong
2010-01-12 9:22 ` YAMAMOTO Mitsuharu
2010-01-12 9:44 ` Miles Bader
2010-01-12 10:01 ` Sven Joachim
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=4B4C316C.2020709@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=miles@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.