unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* MACHINES, PROBLEMS, configure.in (Solaris) patches
@ 2007-04-02 23:49 Glenn Morris
  2007-04-03 21:40 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2007-04-02 23:49 UTC (permalink / raw)
  To: emacs-devel


I've been trying a few builds on Solaris, just to see if they work. I
don't use Solaris much, but it seems to me the following additions to
PROBLEMS and MACHINES would be useful. Maybe Solaris users can
comment? The PROBLEMS issues are potentially more general.

I also suggest a patch to configure.in to avoid one of the Solaris
problems I found, but maybe it should be left alone at this stage?


*** MACHINES	11 Feb 2007 00:59:09 -0000	1.27
--- MACHINES	2 Apr 2007 23:42:14 -0000
***************
*** 1149,1155 ****
    On Solaris, do not use /usr/ucb/cc.  Use /opt/SUNWspro/bin/cc.  Make
    sure that /usr/ccs/bin and /opt/SUNWspro/bin are in your PATH before
    /usr/ucb.  (Most free software packages have the same requirement on
!   Solaris.)
  
    If you have trouble using open-network-stream, get the distribution
    of `bind' (the BSD name-server), build libresolv.a, and link Emacs
--- 1149,1157 ----
    On Solaris, do not use /usr/ucb/cc.  Use /opt/SUNWspro/bin/cc.  Make
    sure that /usr/ccs/bin and /opt/SUNWspro/bin are in your PATH before
    /usr/ucb.  (Most free software packages have the same requirement on
!   Solaris.)  For the preprocessor, use /opt/SUNWspro/bin/cc -E.  If
!   this inserts extra whitespace into its output (see the PROBLEMS
!   file) then add the option "-Xs".
  
    If you have trouble using open-network-stream, get the distribution
    of `bind' (the BSD name-server), build libresolv.a, and link Emacs


*** PROBLEMS	31 Mar 2007 18:39:26 -0000	1.216
--- PROBLEMS	2 Apr 2007 23:47:36 -0000
***************
*** 2305,2310 ****
--- 2305,2334 ----
  Alternatively, modify the generated src/Makefile to link the .a file
  explicitly, and edit src/config.h to define HAVE_JPEG.
  
+ *** `configure' warns ``accepted by the compiler, rejected by the preprocessor''.
+ 
+ This indicates a mismatch between the C compiler and preprocessor that
+ configure is using.  For example, on Solaris 10 trying to use
+ CC=/opt/SUNWspro/bin/cc (the Sun Studio compiler) together with
+ CPP=/usr/ccs/lib/cpp can result in errors of this form (you may also
+ see the error ``"/usr/include/sys/isa_defs.h", line 500: undefined control'').
+ 
+ The solution is to tell configure to use the correct C preprocessor
+ for your C compiler (CPP="/opt/SUNWspro/bin/cc -E" in the above
+ example).
+ 
+ *** `configure' fails with ``"junk.c", line 660: invalid input token: 8.elc''
+ 
+ The final stage of the Emacs configure process uses the C preprocessor
+ to generate the Makefiles.  Errors of this form can occur if the C
+ preprocessor inserts extra whitespace into its output.  The solution
+ is to find the switches that stop your preprocessor from inserting extra
+ whitespace, add them to CPPFLAGS, and re-run configure.  For example,
+ this error can occur on Solaris 10 when using the Sun Studio compiler
+ ``Sun C 5.8'' with its preprocessor CPP="/opt/SUNWspro/bin/cc -E".
+ The relevant switch in this case is "-Xs" (``compile assuming
+ (pre-ANSI) K & R C style code'').
+ 
  ** Compilation
  
  *** Building Emacs over NFS fails with ``Text file busy''.


*** configure.in	23 Mar 2007 02:56:27 -0000	1.441
--- configure.in	2 Apr 2007 23:49:29 -0000
***************
*** 1030,1036 ****
--- 1030,1041 ----
  		;;
        *-sunos5* | *-solaris* )
  		opsys=sol2-6
+ 		if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
+ 		  ## -Xs prevents spurious whitespace.
+ 		  NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
+ 		else
  		  NON_GNU_CPP=/usr/ccs/lib/cpp
+ 		fi
  		;;
        *			  ) opsys=bsd4-2   ;;
      esac

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: MACHINES, PROBLEMS, configure.in (Solaris) patches
  2007-04-02 23:49 MACHINES, PROBLEMS, configure.in (Solaris) patches Glenn Morris
@ 2007-04-03 21:40 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2007-04-03 21:40 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

    I also suggest a patch to configure.in to avoid one of the Solaris
    problems I found, but maybe it should be left alone at this stage?

Please install your fix.  We want to fix bugs.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-03 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02 23:49 MACHINES, PROBLEMS, configure.in (Solaris) patches Glenn Morris
2007-04-03 21:40 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).