From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ali Bahrami Newsgroups: gmane.emacs.bugs Subject: bug#1191: How to contribute back changes for Emacs on Solaris Date: Thu, 23 Oct 2008 00:45:43 -0600 Message-ID: <49001D97.3000602@emvision.com> References: <48F80A14.7010502@emvision.com> <200810170622.m9H6Mipv013865@mothra.ics.uci.edu> <48F8BD05.5010102@emvision.com> <200810172352.m9HNqwSb016244@mothra.ics.uci.edu> <48FAA706.2050806@emvision.com> <200810202229.m9KMTIjS025889@mothra.ics.uci.edu> Reply-To: Ali Bahrami , 1191@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1224745844 16024 80.91.229.12 (23 Oct 2008 07:10:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2008 07:10:44 +0000 (UTC) Cc: 1191@emacsbugs.donarmstrong.com To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 23 09:11:44 2008 connect(): Connection refused 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.50) id 1KsuM9-0005BR-8m for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Oct 2008 09:11:41 +0200 Original-Received: from localhost ([127.0.0.1]:35453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsuL3-00012C-Cu for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Oct 2008 03:10:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsuKf-0000kf-3N for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 03:10:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsuKd-0000jL-5l for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 03:10:08 -0400 Original-Received: from [199.232.76.173] (port=42649 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsuKc-0000jE-W5 for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 03:10:07 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:13047) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsuKc-0000Es-KY for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 03:10:06 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsuKb-0004P7-7K for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 03:10:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9N7A19e029587; Thu, 23 Oct 2008 00:10:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9N6t4RH025303; Wed, 22 Oct 2008 23:55:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Ali Bahrami Original-Sender: Ali.Bahrami@Sun.COM Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 23 Oct 2008 06:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1191 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1191-submit@emacsbugs.donarmstrong.com id=B1191.122474434923940 (code B ref 1191); Thu, 23 Oct 2008 06:55:04 +0000 Original-Received: (at 1191) by emacsbugs.donarmstrong.com; 23 Oct 2008 06:45:49 +0000 Original-Received: from brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9N6jjGE023934 for <1191@emacsbugs.donarmstrong.com>; Wed, 22 Oct 2008 23:45:46 -0700 Original-Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m9N6ji4g003362 for <1191@emacsbugs.donarmstrong.com>; Thu, 23 Oct 2008 06:45:44 GMT Original-Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K9600301IO5NP00@mail-amer.sun.com> (original mail from ali_gnu@emvision.com) for 1191@emacsbugs.donarmstrong.com; Thu, 23 Oct 2008 00:45:44 -0600 (MDT) Original-Received: from [198.182.198.27] ([199.45.162.234]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K9600GH4IS7SYC0@mail-amer.sun.com>; Thu, 23 Oct 2008 00:45:44 -0600 (MDT) In-reply-to: <200810202229.m9KMTIjS025889@mothra.ics.uci.edu> User-Agent: Thunderbird 2.0.0.12 (X11/20080228) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Resent-Date: Thu, 23 Oct 2008 03:10:08 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:21823 Archived-At: Dan, I made the changes you suggested to the src/s/sol2-10.h. I pulled a copy of CVS head, and produced diffs for configure.in based on that. Both items are below, delimited by '=======' lines. configure.in has changed since emacs 22.1, and there's a lot less cruft there. As a result, this version of the change is simpler than the previous one. I've build the result on Nevada Solaris (OpenSolaris) and on Solaris 9, and both work as expected. ----- FYI: CVS HEAD does not build on Solaris 10. This is not due to my changes, as I tried it on an unmodified workspace as well. The end of the output is: checking for SmcOpenConnection in -lSM... no checking whether netdb declares h_errno... no checking for working alloca.h... no checking for alloca... no checking whether `alloca.c' needs Cray hooks... no checking stack direction for C alloca... -1 configure: error: a system implementation of alloca is required Solaris has alloca, so something is up with the test being used. However, the changes I'm proposing here are orthogonal to whatever is happening with that. - Ali ========================================================================= /* Handle Solaris 2.10 */ #include "sol2-6.h" /* * Use the native system malloc() */ #define SYSTEM_MALLOC /* * Use the Solaris dldump() function, called from unexsol.c, to dump * emacs, instead of the generic ELF dump code found in unexelf.c. * The resulting binary has a complete symbol table, and is better * for debugging and other observabilty tools (debuggers, pstack, etc). * * If you encounter a problem using dldump(), please consider sending * a message to the OpenSolaris tools-linking mailing list: * http://mail.opensolaris.org/mailman/listinfo/tools-linking * * It is likely be that dldump() works with older Solaris too, * but this has not been tested, and so, this change is for * Solaris 10 and newer only at this time. */ #undef UNEXEC #define UNEXEC unexsol.o ========================================================================= *** configure.in.orig Wed Oct 22 20:40:42 2008 --- configure.in Wed Oct 22 20:53:20 2008 *************** *** 442,449 **** ;; *-sun-solaris* \ ! | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ ! | rs6000-*-solaris2*) case "${canonical}" in i[3456]86-*-* ) machine=intel386 ;; amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; --- 442,450 ---- ;; *-sun-solaris* \ ! | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \ ! | x86_64-*-solaris2* | x86_64-*-sunos5* \ ! | powerpc*-*-solaris2* | rs6000-*-solaris2*) case "${canonical}" in i[3456]86-*-* ) machine=intel386 ;; amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; *************** *** 471,480 **** NON_GNU_CPP=/usr/ccs/lib/cpp RANLIB="ar -ts" ;; ! *-sunos5* | *-solaris* ) opsys=sol2-6 emacs_check_sunpro_c=yes NON_GNU_CPP=/usr/ccs/lib/cpp ;; esac ## Watch out for a compiler that we know will not work. --- 472,486 ---- NON_GNU_CPP=/usr/ccs/lib/cpp RANLIB="ar -ts" ;; ! *-sunos5.[7-9]* | *-solaris2.[7-9]* ) opsys=sol2-6 emacs_check_sunpro_c=yes NON_GNU_CPP=/usr/ccs/lib/cpp + ;; + *-sunos5* | *-solaris* ) + opsys=sol2-10 + emacs_check_sunpro_c=yes + NON_GNU_CPP=/usr/ccs/lib/cpp ;; esac ## Watch out for a compiler that we know will not work. =========================================================================