From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
Newsgroups: gmane.emacs.devel
Subject: Re: [platform-testers] Emacs 26.2 RC1 is out!
Date: Thu, 21 Mar 2019 16:35:50 -0600
Message-ID: <CMM.0.96.0.1553207750.beebe@gamma.math.utah.edu>
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="111355"; mail-complaints-to="usenet@blaine.gmane.org"
Cc: beebe@math.utah.edu
To: "Emacs Devel" <emacs-devel@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 23:55:50 2019
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256)
	(Exim 4.89)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1h76bG-000SpC-HG
	for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 23:55:50 +0100
Original-Received: from localhost ([127.0.0.1]:47857 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1h76bF-0001My-Gk
	for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 18:55:49 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:56171)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <beebe@math.utah.edu>) id 1h76Xf-0007nE-7y
	for emacs-devel@gnu.org; Thu, 21 Mar 2019 18:52:10 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <beebe@math.utah.edu>) id 1h76Hy-0001QT-Bo
	for emacs-devel@gnu.org; Thu, 21 Mar 2019 18:35:55 -0400
Original-Received: from ipo12.cc.utah.edu ([155.97.144.22]:14356)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <beebe@math.utah.edu>) id 1h76Hx-0001BT-US
	for emacs-devel@gnu.org; Thu, 21 Mar 2019 18:35:54 -0400
X-IronPort-AV: E=Sophos;i="5.60,254,1549954800"; 
   d="scan'208";a="3819326"
Original-Received: from mail.math.utah.edu ([155.101.98.135])
	by ipo12smtp.cc.utah.edu with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
	21 Mar 2019 16:35:51 -0600
Original-Received: from gamma.math.utah.edu (gamma.math.utah.edu [155.101.96.20])
	by mail.math.utah.edu (8.14.8/8.14.8) with ESMTP id x2LMZoWv009267;
	Thu, 21 Mar 2019 16:35:50 -0600 (MDT)
Original-Received: from gamma.math.utah.edu (localhost [127.0.0.1])
	by gamma.math.utah.edu (8.15.1/8.15.1) with ESMTP id x2LMZoUX124793;
	Thu, 21 Mar 2019 16:35:50 -0600
Original-Received: (from beebe@localhost)
	by gamma.math.utah.edu (8.15.1/8.15.1/Submit) id x2LMZod6124791;
	Thu, 21 Mar 2019 16:35:50 -0600
X-US-Mail: "Department of Mathematics, 110 LCB, University of Utah, 155 S
	1400 E RM 233, Salt Lake City, UT 84112-0090, USA"
X-Telephone: +1 801 581 5254
X-FAX: +1 801 581 4148
X-URL: http://www.math.utah.edu/~beebe
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8
	(mail.math.utah.edu [155.101.98.135]);
	Thu, 21 Mar 2019 16:35:50 -0600 (MDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 155.97.144.22
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.devel:234505
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/234505>

On Solaris 11.4.7.0.1.4.0 x86-64, the latest O/S version using patches
released by Oracle two days ago, the native compiler is /usr/bin/gcc,
version 7.3.0.  I built emacs-26.2 like this:

	set path= ( /bin )
	unsetenv CONFIG_SITE
	./configure --prefix=$prefix --with-gnutls=no --with-pop --with-gif=no && gmake all check
	...
	  CC       coding.o
	"coding.c", line 10365: Warning: Likely out-of-bound read: *(args[16]) in function Fdefine_coding_system_internal  
	...
	  CC       xsettings.o
	  CC       gtkutil.o
	  CC       emacsgtkfixed.o
	In file included from /usr/lib/glib-2.0/include/glibconfig.h:9:0,
			 from /usr/include/glib-2.0/glib/gtypes.h:32,
			 from /usr/include/glib-2.0/glib/galloca.h:32,
			 from /usr/include/glib-2.0/glib.h:30,
			 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
			 from /usr/include/gtk-3.0/gdk/gdk.h:30,
			 from /usr/include/gtk-3.0/gtk/gtk.h:30,
			 from xterm.h:49,
			 from emacsgtkfixed.c:25:
	emacsgtkfixed.c: In function ‘emacs_fixed_get_type’:
	/usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array ‘_GStaticAssertCompileTimeAssertion_3’ is negative

Fortunately, I had already installed the Oracle Solaris Studio 12.6
compiler family in /opt/developerstudio12.6, and a build with
CC=cc got further, with some warnings:

	  CC       xterm.o
	"xterm.c", line 9835: warning: statement not reached
	"xterm.c", line 9935: warning: statement not reached

	  CC       xfns.o
	"xfns.c", line 5411: warning: statement not reached

	  CC       keyboard.o
	"keyboard.c", line 3637: warning: initializer will be sign-extended: -536870912

	  CC       sysdep.o
	"sysdep.c", line 641: warning:  "vfork" is deprecated, declared in : "/usr/include/unistd.h", line 672

	  CC       filelock.o
	"filelock.c", line 252: warning:  "utmpname" is deprecated, declared in : "/usr/include/utmp.h", line 142
	"filelock.c", line 254: warning:  "setutent" is deprecated, declared in : "/usr/include/utmp.h", line 141
	"filelock.c", line 260: warning:  "getutid" is deprecated, declared in : "/usr/include/utmp.h", line 138
	"filelock.c", line 272: warning:  "getutent" is deprecated, declared in : "/usr/include/utmp.h", line 137
	"filelock.c", line 276: warning:  "endutent" is deprecated, declared in : "/usr/include/utmp.h", line 136

	  CC       process.o
	"process.c", line 2072: warning:  "vfork" is deprecated, declared in : "/usr/include/unistd.h", line 672

	  CC       callproc.o
	"callproc.c", line 618: warning:  "vfork" is deprecated, declared in : "/usr/include/unistd.h", line 672

	  CC       lcms.o
	"lcms.c", line 23: cannot find include file: <lcms2.h>
	"lisp.h", line 721: bit-field size < 0: _gl_verify_error_if_negative
	"lisp.h", line 823: bit-field size < 0: _gl_verify_error_if_negative
	"lisp.h", line 829: cannot recover from previous errors
	cc: acomp failed for lcms.c

Solaris 11 DOES have the GNU little color management system:

	% pkg info lcms2
		  Name: library/gnu/lcms2
	       Summary: A little color management system (/usr/gnu)
	      Category: System/Libraries
		 State: Installed
	     Publisher: localhosts12
	       Version: 2.7
		Branch: 5.12.0.0.0.115.1
	Packaging Date: January 14, 2017 at  5:26:18 PM
		  Size: 1.57 MB
		  FMRI: pkg://localhosts12/library/gnu/lcms2@2.7-5.12.0.0.0.115.1:20170114T172618Z
	   Project URL: http://www.littlecms.com/
	    Source URL: http://downloads.sourceforge.net/lcms/lcms/2.7/lcms2-2.7.tar.gz

		  Name: library/lcms2
	       Summary: Version 2 of the Little Color Management System
	   Description: A small-footprint color management engine, with special focus on
			accuracy and performance
	      Category: System/Libraries
		 State: Installed
	     Publisher: solaris
	       Version: 2.8
		Branch: 11.4.0.0.1.14.0
	Packaging Date: August 14, 2018 at  4:47:54 PM
		  Size: 1.52 MB
		  FMRI: pkg://solaris/library/lcms2@2.8-11.4.0.0.1.14.0:20180814T164754Z
	   Project URL: http://www.littlecms.com/
	    Source URL: https://sourceforge.net/projects/lcms/files/lcms/2.8/lcms2-2.8.tar.gz

However, the lcms2.h header file is installed at
/usr/include/lcms/lcms2.h, rather than at top level in /usr/include.

The workaround was easy:

	gmake CFLAGS="-I${prefix}/include -I/usr/include/lcms"

A scan of several of my build farm machines showed that most do not
even have lcms2, but those that do, have it in /usr/include, EXCEPT
for some members of the Solaris family (Oracle Solaris and Hipster).

Presumably, the emacs-26.x configure.ac file could be tweaked to check
in /usr/include/lcms as well as /usr/include.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------