From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: emacs fails to build -- XRenderQueryExtension undefined Date: Tue, 12 Jan 2010 09:23:08 +0100 Message-ID: <4B4C316C.2020709@swipnet.se> References: <4B4C2742.5010002@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: Quoted-Printable X-Trace: ger.gmane.org 1263285296 13830 80.91.229.12 (12 Jan 2010 08:34:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 08:34:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 12 09:34:48 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 1NUcD9-0000N5-UX for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 09:34:48 +0100 Original-Received: from localhost ([127.0.0.1]:39352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUcDA-000549-E4 for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 03:34:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUc22-0002r3-FV for emacs-devel@gnu.org; Tue, 12 Jan 2010 03:23:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUc1x-0002pv-WF for emacs-devel@gnu.org; Tue, 12 Jan 2010 03:23:17 -0500 Original-Received: from [199.232.76.173] (port=42376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUc1w-0002pk-Rr for emacs-devel@gnu.org; Tue, 12 Jan 2010 03:23:13 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:54755) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NUc1u-0003be-Mn; Tue, 12 Jan 2010 03:23:10 -0500 Original-Received: from proxy3.bredband.net ([195.54.101.73]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUc1t-0004X9-Hz; Tue, 12 Jan 2010 03:23:09 -0500 Original-Received: from ipb1.telenor.se (195.54.127.164) by proxy3.bredband.net (7.3.140.3) id 4AD3E1BA023E4368; Tue, 12 Jan 2010 09:23:08 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqhFAKvAS0tV4S1uPGdsb2JhbACBRIZukxsBAQEBN7oShDAE X-IronPort-AV: E=Sophos;i="4.49,261,1262559600"; d="scan'208";a="25923369" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 12 Jan 2010 09:23:08 +0100 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 7B85A7FA01A; Tue, 12 Jan 2010 09:23:08 +0100 (CET) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: X-detected-operating-system: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:119852 Archived-At: Miles Bader skrev: > 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-confi= g >> output. Normally on GNU/Linux, -Xrender is a private dependency, >=20 > 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 th= e > linker won't see it): >=20 > $ pkg-config --libs xft > -lXft =20 > $ pkg-config --libs --static xft > -lXft -lXrender -lfontconfig -lexpat -lfreetype -lz -lX11 -lpthread = -lxcb -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. Ah, I didn't see that. >=20 > 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: >=20 > f602b732 src/xftfont.c (YAMAMOTO Mitsuharu 2009-05-11 09:29:49 +0000 36= 5) XRenderQueryExtension (display, &event_base, &error_base); >=20 > [Note, I don't know the details of how this stuff works really, but I > think the above is roughly correct.] >=20 Strange that it worked earlier then. It can't hurt to add -lXrender. To= be=20 on the safe side, AC_CHECK_LIB for Xrender should be made before adding=20 -lXrender to libs. Jan D.