home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / emacs / bug / 1454 < prev    next >
Encoding:
Text File  |  1992-11-07  |  10.0 KB  |  343 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!acl.lanl.gov!jgd
  3. From: jgd@acl.lanl.gov (Jerry G. DeLapp)
  4. Subject: 18.59 problem -- Error in init file
  5. Message-ID: <9211051910.AA03918@kodiak.acl.lanl.gov>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: jgd@acl.lanl.gov
  8. Organization: GNUs Not Usenet
  9. Distribution: gnu
  10. Date: Thu, 5 Nov 1992 05:10:48 GMT
  11. Approved: bug-gnu-emacs@prep.ai.mit.edu
  12. Lines: 329
  13.  
  14. Hi -- snarfed 18.59 from prep about 2 days ago. Built it into a non default
  15. place for testing. (SparcStation IPX, SunOS 4.1.2) The problem is, when I
  16. start it up I get "Error in init file" message in minibuffer. This was with no
  17. changes to the distribution except as below...
  18.  
  19. Makefile...
  20. LIBDIR= /n/kodiak/u3/local/lib/emacs
  21. BINDIR= /n/kodiak/u3/local/bin
  22. MANDIR= /n/kodiak/u3/local/man/man1
  23.  
  24. s-sunos4-1.h...
  25. openwin is in /home/openwin instead of /usr/openwin
  26. activated X
  27.  
  28. The full text of my Makefile and s-sunos file are appended for reference...
  29.  
  30. I'm wondering where to look now. I've read the INSTALL, MACHINES, and PROBLEMS
  31. files for information, to no avail...
  32.  
  33. Oh yes, compiled with sun CC 1.0, not gcc.
  34.  
  35. Any suggestions you could provide would be greatly appreciated.
  36.  
  37. Jerry G. DeLapp -- ACL System Scientist -- (505) 665-4531 <jgd@lanl.gov>
  38. Computing beyond the Bleeding Edge -- The Advanced Computing Laboratory
  39.  
  40.  
  41.  
  42. -- Makefile --
  43. # make all    to compile and build Emacs
  44. # make install    to install it
  45. # make install.sysv   to install on system V.
  46. # make install.xenix  to install on Xenix
  47. # make install.aix    to install on AIX.
  48. # make tags    to update tags tables
  49. #
  50. # make distclean    to delete everything that wasn't in the distribution
  51. #    This is a very dangerous thing to do!
  52. # make clean
  53. #       This is a little less dangerous.
  54.  
  55. SHELL = /bin/sh
  56.  
  57. # Where to install things
  58. # Note that on system V you must change MANDIR to /use/local/man/man1.
  59. # This got changed in late 1991 to say /usr/local/lib/emacs,
  60. # but there was no explanation of why, so it seems better to keep this stable.
  61. LIBDIR= /n/kodiak/u3/local/lib/emacs
  62. BINDIR= /n/kodiak/u3/local/bin
  63. MANDIR= /n/kodiak/u3/local/man/man1
  64.  
  65. # Flags passed down to subdirectory makefiles.
  66. MFLAGS=
  67.  
  68. # Command used for installation.
  69. # If `install' doesn't work on your system, try `./install.sh'.
  70. INSTALL=install
  71.  
  72. # Subdirectories to make recursively.  `lisp' is not included
  73. # because the compiled lisp files are part of the distribution
  74. # and you cannot remake them without installing Emacs first.
  75. SUBDIR= etc src
  76.  
  77. # Subdirectories to install
  78. COPYDIR= etc info lisp
  79.  
  80. # Subdirectories to clean
  81. CLEANDIR= ${COPYDIR} lisp/term oldXMenu
  82.  
  83. all:    src/paths.h ${SUBDIR}
  84.  
  85. src/paths.h: Makefile src/paths.h-dist
  86.     sed 's;/usr/local/emacs;${LIBDIR};g' < src/paths.h-dist > src/paths.h
  87.  
  88. src:    etc
  89.  
  90. .RECURSIVE: ${SUBDIR}
  91.  
  92. ${SUBDIR}: FRC
  93.     cd $@; make ${MFLAGS} all
  94.  
  95. install: all mkdir lockdir
  96. # B option to tar xf removed because some systems don't have it.
  97. # It should work without that as long as the same tar program
  98. # is running on both sides of the pipe.
  99.     -if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
  100.         tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xf - ) ;\
  101.         for i in ${CLEANDIR}; do \
  102.             (rm -rf ${LIBDIR}/$$i/RCS; \
  103.              rm -f ${LIBDIR}/$$i/\#*; \
  104.              rm -f ${LIBDIR}/$$i/*~); \
  105.         done \
  106.     else true; \
  107.     fi
  108.     $(INSTALL) -c etc/emacsclient ${BINDIR}/emacsclient
  109.     $(INSTALL) -c etc/etags ${BINDIR}/etags
  110.     $(INSTALL) -c etc/ctags ${BINDIR}/ctags
  111.     $(INSTALL) -c -m 1755 src/xemacs ${BINDIR}/xemacs
  112.     $(INSTALL) -c -m 444 etc/emacs.1 ${MANDIR}/emacs.1
  113.     -rm -f ${BINDIR}/emacs
  114.     mv ${BINDIR}/xemacs ${BINDIR}/emacs
  115.  
  116. install.sysv: all mkdir lockdir
  117.     -if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
  118.         find ${COPYDIR} -print | cpio -pdum ${LIBDIR} ;\
  119.         for i in ${CLEANDIR}; do \
  120.             (rm -rf ${LIBDIR}/$$i/RCS; \
  121.              rm -f ${LIBDIR}/$$i/\#*; \
  122.              rm -f ${LIBDIR}/$$i/*~); \
  123.         done \
  124.     else true; \
  125.     fi
  126.     -cpset etc/emacsclient ${BINDIR}/emacsclient 755 bin bin
  127.     -cpset etc/etags ${BINDIR}/etags 755 bin bin
  128.     -cpset etc/ctags ${BINDIR}/ctags 755 bin bin
  129.     -cpset etc/emacs.1 ${MANDIR}/emacs.1 444 bin bin
  130.     -/bin/rm -f ${BINDIR}/emacs
  131.     -cpset src/xemacs ${BINDIR}/emacs 1755 bin bin
  132.  
  133. install.xenix: all mkdir lockdir
  134.     if [ `pwd` != `(cd ${LIBDIR}; pwd)` ] ; then \
  135.         tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xpf - ) ;\
  136.         for i in ${CLEANDIR}; do \
  137.             (rm -rf ${LIBDIR}/$$i/RCS; \
  138.              rm -f ${LIBDIR}/$$i/\#*; \
  139.              rm -f ${LIBDIR}/$$i/*~); \
  140.         done \
  141.     else true; \
  142.     fi
  143.     cp etc/etags etc/ctags etc/emacsclient ${BINDIR}
  144.     chmod 755 ${BINDIR}/etags ${BINDIR}/ctags ${BINDIR}/emacsclient
  145.     cp etc/emacs.1 ${MANDIR}/emacs.1
  146.     chmod 444 ${MANDIR}/emacs.1
  147.     -mv -f ${BINDIR}/emacs ${BINDIR}/emacs.old
  148.     cp src/xemacs ${BINDIR}/emacs
  149.     chmod 1755 ${BINDIR}/emacs
  150.     -rm -f ${BINDIR}/emacs.old
  151.  
  152. install.aix: all mkdir lockdir
  153.     -if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
  154.         tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xBf - ) ;\
  155.         for i in ${CLEANDIR}; do \
  156.             (rm -rf ${LIBDIR}/$$i/RCS; \
  157.              rm -f ${LIBDIR}/$$i/\#*; \
  158.              rm -f ${LIBDIR}/$$i/*~); \
  159.         done \
  160.     else true; \
  161.     fi
  162.     install -f ${BINDIR} etc/emacsclient
  163.     install -f ${BINDIR} etc/etags
  164.     install -f ${BINDIR} etc/ctags
  165.     install -M 1755 -f ${BINDIR} src/xemacs
  166.     install -M 444 -f ${MANDIR} etc/emacs.1
  167.     -rm -f ${BINDIR}/emacs
  168.     mv ${BINDIR}/xemacs ${BINDIR}/emacs
  169.  
  170. mkdir: FRC
  171.     -mkdir ${LIBDIR} ${BINDIR} ${MANDIR}
  172.  
  173. distclean:
  174.     for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done
  175.     cd oldXMenu; make ${MFLAGS} distclean
  176.  
  177. clean:
  178.     cd src; make clean
  179.     cd oldXMenu; make ${MFLAGS} clean
  180.     if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
  181.         cd etc; make clean; \
  182.     else true; \
  183.     fi
  184.  
  185. lockdir:
  186.     -mkdir ${LIBDIR}/lock
  187.     -chmod 777 ${LIBDIR}/lock
  188.  
  189. FRC:
  190.  
  191. tags:    etc
  192.     cd src; ../etc/etags *.[ch] ../lisp/*.el ../lisp/term/*.el
  193.  
  194.  
  195. -- config.h --
  196. /* GNU Emacs site configuration template file.
  197.    Copyright (C) 1988 Free Software Foundation, Inc.
  198.  
  199. This file is part of GNU Emacs.
  200.  
  201. GNU Emacs is free software; you can redistribute it and/or modify
  202. it under the terms of the GNU General Public License as published by
  203. the Free Software Foundation; either version 1, or (at your option)
  204. any later version.
  205.  
  206. GNU Emacs is distributed in the hope that it will be useful,
  207. but WITHOUT ANY WARRANTY; without even the implied warranty of
  208. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  209. GNU General Public License for more details.
  210.  
  211. You should have received a copy of the GNU General Public License
  212. along with GNU Emacs; see the file COPYING.  If not, write to
  213. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  214.  
  215.  
  216.  
  217. /* Include here a s- file that describes the system type you are using.
  218.    See the file ../etc/MACHINES for a list of systems and
  219.    the names of the s- files to use for them.
  220.    See s-template.h for documentation on writing s- files.  */
  221. #include "s-sunos4-1.h"
  222. /* Include here a m- file that describes the machine and system you use.
  223.    See the file ../etc/MACHINES for a list of machines and
  224.    the names of the m- files to use for them.
  225.    See m-template.h for info on what m- files should define.
  226.    */
  227. #include "m-sparc.h"
  228.  
  229. /* Load in the conversion definitions if this system
  230.    needs them and the source file being compiled has not
  231.    said to inhibit this.  There should be no need for you
  232.    to alter these lines.  */
  233.  
  234. #ifdef SHORTNAMES
  235. #ifndef NO_SHORTNAMES
  236. #include "../shortnames/remap.h"
  237. #endif /* not NO_SHORTNAMES */
  238. #endif /* SHORTNAMES */
  239.  
  240. /* Define HAVE_X_WINDOWS if you want to use the X window system.  */
  241.  
  242. #define HAVE_X_WINDOWS
  243.  
  244. /* Define X11 if you want to use version 11 of X windows.
  245.    Otherwise, Emacs expects to use version 10.  */
  246.  
  247. #ifdef HAVE_X_WINDOWS
  248. #define X11
  249. #endif
  250.  
  251. /* Define HAVE_X_MENU if you want to use the X window menu system.
  252.    This appears to work on some machines that support X
  253.    and not on others.  */
  254.  
  255. #define HAVE_X_MENU
  256.  
  257. /* Define `subprocesses' should be defined if you want to
  258.    have code for asynchronous subprocesses
  259.    (as used in M-x compile and M-x shell).
  260.    These do not work for some USG systems yet;
  261.    for the ones where they work, the s-*.h file defines this flag.  */
  262.  
  263. #ifndef VMS
  264. #ifndef USG
  265. #define subprocesses
  266. #endif
  267. #endif
  268.  
  269. /* Define USER_FULL_NAME to return a string
  270.    that is the user's full name.
  271.    It can assume that the variable `pw'
  272.    points to the password file entry for this user.
  273.  
  274.    At some sites, the pw_gecos field contains
  275.    the user's full name.  If neither this nor any other
  276.    field contains the right thing, use pw_name,
  277.    giving the user's login name, since that is better than nothing.  */
  278.  
  279. #define USER_FULL_NAME pw->pw_gecos
  280.  
  281. /* Define AMPERSAND_FULL_NAME if you use the convention
  282.    that & in the full name stands for the login id.  */
  283.  
  284. /* #define AMPERSAND_FULL_NAME */
  285.  
  286. /* # bytes of pure Lisp code to leave space for.
  287.    Note that s-vms.h and m-sun2.h may override this default.  */
  288.  
  289. #ifndef PURESIZE
  290. #ifdef HAVE_X_WINDOWS
  291. #define PURESIZE 122000
  292. #else
  293. #define PURESIZE 120000
  294. #endif
  295. #endif
  296.  
  297. /* Define HIGHPRI as a negative number
  298.    if you want Emacs to run at a higher than normal priority.
  299.    For this to take effect, you must install Emacs with setuid root.
  300.    Emacs will change back to the users's own uid after setting
  301.    its priority.  */
  302.  
  303. /* #define HIGHPRI */
  304.  
  305. -- s-sunos4-1.h --
  306. #include "s-sunos4-0.h"
  307.  
  308. /* 4.1.1 makes these system calls interruptable.  */
  309.  
  310. #define read sys_read
  311. #define write sys_write
  312. #define open sys_open
  313. #define close sys_close
  314.  
  315. #define INTERRUPTABLE_OPEN
  316. #define INTERRUPTABLE_CLOSE
  317. #define INTERRUPTABLE_IO
  318.  
  319.  
  320. #define HAVE_TZSET
  321.  
  322. /* Cause the compilation of oldxmenu to use the right -I option.  */
  323. #define OLDXMENU_OPTIONS CFLAGS=C_SWITCH_SYSTEM
  324.  
  325. /* The following is needed to work with the "Open Windows"
  326.    version of X windows.  But it should do no harm if you don't have that.  */
  327. #if 1  /* The -I and -L options should be harmless otherwise.  */
  328. #undef LD_SWITCH_SYSTEM
  329. #if __GNUC__ > 1
  330. #define LD_SWITCH_SYSTEM -e __start -static -L/home/openwin/lib
  331. #else
  332. #define LD_SWITCH_SYSTEM -e __start -Bstatic -L/home/openwin/lib
  333. #endif
  334.  
  335. #define C_SWITCH_SYSTEM -I/home/openwin/include
  336. #endif 
  337.  
  338. /* Enable a fix in malloc.  */
  339. #define SUNOS_LOCALTIME_BUG
  340.  
  341.  
  342.  
  343.