From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Christian Jullien" Newsgroups: gmane.emacs.bugs Subject: bug#31634: emacs 26.1 Compilation error and fix on Solaris 10 Date: Tue, 29 May 2018 13:09:57 +0200 Message-ID: <001501d3f73d$950fe930$bf2fbb90$@orange.fr> References: <000301d3f710$d7fc4d10$87f4e730$@orange.fr> <87k1rn3qi3.fsf@igel.home> <000b01d3f71c$2a2d4070$7e87c150$@orange.fr> <87fu2b3oya.fsf@igel.home> <871sduhjzu.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1527592156 23597 195.159.176.226 (29 May 2018 11:09:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 May 2018 11:09:16 +0000 (UTC) Cc: 31634@debbugs.gnu.org To: "'Robert Pluim'" , "'Andreas Schwab'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 29 13:09:12 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNcV5-00061x-Ep for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2018 13:09:11 +0200 Original-Received: from localhost ([::1]:60201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcXA-0000wX-LC for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2018 07:11:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcWv-0000u9-K6 for bug-gnu-emacs@gnu.org; Tue, 29 May 2018 07:11:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNcWs-0002X8-EQ for bug-gnu-emacs@gnu.org; Tue, 29 May 2018 07:11:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45280) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNcWs-0002Wy-9x for bug-gnu-emacs@gnu.org; Tue, 29 May 2018 07:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fNcWr-0004BM-VI for bug-gnu-emacs@gnu.org; Tue, 29 May 2018 07:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Christian Jullien" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 May 2018 11:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31634-submit@debbugs.gnu.org id=B31634.152759221416021 (code B ref 31634); Tue, 29 May 2018 11:11:01 +0000 Original-Received: (at 31634) by debbugs.gnu.org; 29 May 2018 11:10:14 +0000 Original-Received: from localhost ([127.0.0.1]:53177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNcW4-0004AH-2T for submit@debbugs.gnu.org; Tue, 29 May 2018 07:10:14 -0400 Original-Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:33977 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNcVy-00049f-OT for 31634@debbugs.gnu.org; Tue, 29 May 2018 07:10:10 -0400 Original-Received: from young ([217.128.172.94]) by mwinf5d25 with ME id sB9z1x00e22ZY4h03B9zlG; Tue, 29 May 2018 13:10:00 +0200 X-ME-Helo: young X-ME-Date: Tue, 29 May 2018 13:10:00 +0200 X-ME-IP: 217.128.172.94 In-Reply-To: <871sduhjzu.fsf@gmail.com> X-Mailer: Microsoft Outlook 14.0 Content-Language: fr Thread-Index: AQFhidOm0xImhFhoDdy/b0JA++RYQAF6nUnMAgVZBO0CZX0lCQL5B/mopORymGA= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146683 Archived-At: Thanks, this patch works and you can close the bug report. I'm facing other issues like: ld.so.1: temacs: fatal: libxml2.so.2: version 'SUNW_1.1' not found (required by file temacs) But it's another story I'm investigating (LD_NOVERSION=yes ./temacs let it work) -----Original Message----- From: Robert Pluim [mailto:rpluim@gmail.com] Sent: mardi 29 mai 2018 11:47 To: Andreas Schwab Cc: Christian Jullien; 31634@debbugs.gnu.org Subject: Re: bug#31634: emacs 26.1 Compilation error and fix on Solaris 10 Andreas Schwab writes: > On Mai 29 2018, "Christian Jullien" wrote: > >> The result of configure gives config.h with XFT feature: >> >> /* Summary of some of the main features enabled by configure. */ >> #define EMACS_CONFIG_FEATURES "XPM JPEG TIFF PNG ACL FREETYPE XFT >> TOOLKIT_SCROLL_BARS LUCID X11 THREADS" >> >> But later in this file, it gives >> >> /* Define to 1 if you have the Xft library. */ >> /* #undef HAVE_XFT */ > > Looks like there is a logic error in configure, failing to reset > HAVE_XFT to no if Xrender is missing. Indeed. Christian, could you try the following patch? (you'll need to regenerate configure and re-run it). diff --git i/configure.ac w/configure.ac index c66c80adbb..c6101d6353 100644 --- i/configure.ac +++ w/configure.ac @@ -3210,8 +3210,8 @@ AC_DEFUN if test "x${with_xft}" != "xno"; then EMACS_CHECK_MODULES([XFT], [xft >= 0.13.0], [], [HAVE_XFT=no]) - ## Because xftfont.c uses XRenderQueryExtension, we also - ## need to link to -lXrender. + ## Because xterm.c uses XRenderQueryExtension when XFT is + ## enabled, we also need to link to -lXrender. HAVE_XRENDER=no AC_CHECK_LIB(Xrender, XRenderQueryExtension, HAVE_XRENDER=yes) if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then @@ -3234,6 +3234,9 @@ AC_DEFUN CPPFLAGS=$OLD_CPPFLAGS CFLAGS=$OLD_CFLAGS LIBS=$OLD_LIBS + else + # Make sure XFT is disabled if we found XFT but not XRender + HAVE_XFT=no fi # "$HAVE_XFT" != no fi # "x${with_xft}" != "xno"