all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ali Bahrami <ali_gnu@emvision.com>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: 1191@emacsbugs.donarmstrong.com
Subject: bug#1191: How to contribute back changes for Emacs on Solaris
Date: Thu, 23 Oct 2008 00:45:43 -0600	[thread overview]
Message-ID: <49001D97.3000602@emvision.com> (raw)
In-Reply-To: <200810202229.m9KMTIjS025889@mothra.ics.uci.edu>

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.
=========================================================================






  reply	other threads:[~2008-10-23  6:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200812120309.mBC392kD002742@mothra.ics.uci.edu>
2008-10-17  3:44 ` bug#1191: How to contribute back changes for Emacs on Solaris Ali Bahrami
2008-10-17  6:22   ` Dan Nicolaescu
2008-10-17 16:27     ` Ali Bahrami
2008-10-17 23:52       ` Dan Nicolaescu
2008-10-19  3:18         ` Ali Bahrami
2008-10-20 22:29           ` Dan Nicolaescu
2008-10-23  6:45             ` Ali Bahrami [this message]
2008-10-23 16:23               ` Ali Bahrami
2008-10-23 19:35               ` Dan Nicolaescu
2008-10-23 22:51                 ` Ali Bahrami
2008-10-23 23:06                   ` Dan Nicolaescu
2008-10-23 23:21                     ` Ali Bahrami
2008-10-24  0:22                       ` Dan Nicolaescu
2008-12-11 17:47   ` Dan Nicolaescu
2008-12-11 18:10     ` Ali Bahrami
2008-12-11 18:14       ` Dan Nicolaescu
2008-12-11 18:21         ` Ali Bahrami
2008-12-12  2:55         ` Ali Bahrami
2008-12-12  3:15   ` bug#1191: marked as done (How to contribute back changes for Emacs on Solaris) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49001D97.3000602@emvision.com \
    --to=ali_gnu@emvision.com \
    --cc=1191@emacsbugs.donarmstrong.com \
    --cc=dann@ics.uci.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.