From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: emacs fails to build -- XRenderQueryExtension undefined Date: Tue, 12 Jan 2010 16:54:21 +0900 Message-ID: References: <4B4C2742.5010002@swipnet.se> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263282888 6910 80.91.229.12 (12 Jan 2010 07:54:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 07:54:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 12 08:54:40 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUbaK-00053m-C2 for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 08:54:40 +0100 Original-Received: from localhost ([127.0.0.1]:54296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUbaK-0002Vk-Po for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 02:54:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUbaE-0002Uu-Ng for emacs-devel@gnu.org; Tue, 12 Jan 2010 02:54:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUba9-0002Sh-I5 for emacs-devel@gnu.org; Tue, 12 Jan 2010 02:54:33 -0500 Original-Received: from [199.232.76.173] (port=55486 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUba9-0002Sc-Dt for emacs-devel@gnu.org; Tue, 12 Jan 2010 02:54:29 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:52822) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NUba5-00084Z-Sh; Tue, 12 Jan 2010 02:54:25 -0500 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUba4-0002bT-Rs; Tue, 12 Jan 2010 02:54:25 -0500 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id o0C7sMRu007284; Tue, 12 Jan 2010 16:54:22 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay11.aps.necel.com with ESMTP; Tue, 12 Jan 2010 16:54:22 +0900 Original-Received: from dhlpc061 ([10.114.112.30] [10.114.112.30]) by relay11.aps.necel.com with ESMTP; Tue, 12 Jan 2010 16:54:21 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 9CAF352E1FA; Tue, 12 Jan 2010 16:54:21 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: <4B4C2742.5010002@swipnet.se> ("Jan =?iso-8859-1?Q?Dj=E4rv=22?= =?iso-8859-1?Q?'s?= message of "Tue, 12 Jan 2010 08:39:46 +0100") Original-Lines: 35 X-detected-operating-system: by mx20.gnu.org: Solaris 8 (1) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119848 Archived-At: Jan Dj=E4rv 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=20=20 $ pkg-config --libs --static xft -lXft -lXrender -lfontconfig -lexpat -lfreetype -lz -lX11 -lpthread -lxc= b -lXau -lXdmcp=20=20 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 --=20 Monday, n. In Christian countries, the day after the baseball game.