emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MACHINES, PROBLEMS, configure.in (Solaris) patches


From: Glenn Morris
Subject: MACHINES, PROBLEMS, configure.in (Solaris) patches
Date: Mon, 02 Apr 2007 19:49:25 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]