From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.bugs Subject: bug#8030: configure.in clears FONTCONFIG_CFLAGS and FONTCONFIG_LIBS Date: Wed, 23 Feb 2011 20:05:34 +0100 Message-ID: <87ei6y1sht.fsf@turtle.gmx.de> References: <7BBFADE7-ECB3-4A09-93B3-5BAA3487D0C3@Freenet.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298488020 30370 80.91.229.12 (23 Feb 2011 19:07:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2011 19:07:00 +0000 (UTC) To: 7936@debbugs.gnu.org, 8030@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 23 20:06:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PsK34-0000C8-P7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Feb 2011 20:06:55 +0100 Original-Received: from localhost ([127.0.0.1]:52747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsK34-0001lw-0s for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Feb 2011 14:06:54 -0500 Original-Received: from [140.186.70.92] (port=57190 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsK2u-0001jm-58 for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2011 14:06:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsK2t-0001nZ-1i for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2011 14:06:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsK2s-0001nT-VD for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2011 14:06:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PsK2E-0007Op-Jo; Wed, 23 Feb 2011 14:06:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <7BBFADE7-ECB3-4A09-93B3-5BAA3487D0C3@Freenet.DE> Resent-From: Sven Joachim Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Feb 2011 19:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8030-submit@debbugs.gnu.org id=B8030.129848794628397 (code B ref 8030); Wed, 23 Feb 2011 19:06:02 +0000 Original-Received: (at 8030) by debbugs.gnu.org; 23 Feb 2011 19:05:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PsK1y-0007Nu-6S for submit@debbugs.gnu.org; Wed, 23 Feb 2011 14:05:46 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PsK1v-0007NY-55 for 8030@debbugs.gnu.org; Wed, 23 Feb 2011 14:05:44 -0500 Original-Received: (qmail invoked by alias); 23 Feb 2011 19:05:36 -0000 Original-Received: from p54861D05.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.29.5] by mail.gmx.net (mp047) with SMTP; 23 Feb 2011 20:05:36 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1+jfq9LXySj/tlaxvhtnaOnN2gvlS4ZGvvAMDoSi2 rNOh84bHep9wkt Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id D4A313F44C; Wed, 23 Feb 2011 20:05:34 +0100 (CET) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 23 Feb 2011 14:06:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44319 Archived-At: It seems to me that bugs #7936 and #8030 are the same, so they should probably be merged. Moreover, AFAICS the root of the problem is that configure.in (in Emacs 23.2 and emacs-23) inadvertently clears FONTCONFIG_LIBS, so that '-lfontconfig' is not passed to the linker. This has been fixed by Miles on the trunk in revision 102932: revno: 102932 committer: Miles Bader branch nick: trunk timestamp: Sat 2011-01-22 11:45:57 +0900 message: configure.in: Don't zero-out FONTCONFIG_CFLAGS and FONTCONFIG_LIBS when building with XFT (doing so is incorrect, as Emacs directly uses fontconfig, and breaks building when using a strict linker). --8<---------------cut here---------------start------------->8--- === modified file 'configure.in' --- configure.in 2011-01-22 00:12:10 +0000 +++ configure.in 2011-01-22 02:45:57 +0000 @@ -2252,17 +2252,9 @@ if test "${HAVE_X11}" = "yes"; then HAVE_XFT=no fi - - HAVE_FREETYPE=no ## We used to allow building with FreeType and without Xft. ## However, the ftx font backend driver is not in good shape. - if test "${HAVE_XFT}" = "yes"; then - dnl As we use Xft, we anyway use freetype. - dnl There's no need for additional CFLAGS and LIBS. - HAVE_FREETYPE=yes - FONTCONFIG_CFLAGS= - FONTCONFIG_LIBS= - fi + HAVE_FREETYPE=$HAVE_XFT HAVE_LIBOTF=no if test "${HAVE_FREETYPE}" = "yes"; then --8<---------------cut here---------------end--------------->8--- This bug causes Emacs to FTBFS on GNU/Linux as well with a strict linker when configured "--with-x-toolkit=lucid", see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614823. I can confirm that Miles' change fixes that problem. Any chance to get this fix into Emacs 23.3? Regards, Sven