all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: emacs fails to build -- XRenderQueryExtension undefined
Date: Tue, 12 Jan 2010 16:54:21 +0900	[thread overview]
Message-ID: <buovdf7iwr6.fsf@dhlpc061.dev.necel.com> (raw)
In-Reply-To: <4B4C2742.5010002@swipnet.se> ("Jan Djärv"'s message of "Tue, 12 Jan 2010 08:39:46 +0100")

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.

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.]

-Miles

-- 
Monday, n. In Christian countries, the day after the baseball game.




  reply	other threads:[~2010-01-12  7:54 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 [this message]
2010-01-12  8:06     ` Miles Bader
2010-01-12  8:23     ` Jan Djärv
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=buovdf7iwr6.fsf@dhlpc061.dev.necel.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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.