*BSD News Article 20079


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!doc.ic.ac.uk!pipex!uunet!nctuccca.edu.tw!news!ccds3.ntu.edu.tw!spider!hcchu
From: hcchu@spider.ee.ntu.edu.tw (Hung-Chi Chu)
Subject: Re: Emacs 19-19 for NetBSD-0.9: not executable
Message-ID: <1993Aug26.204256.22159@ccds3.ntu.edu.tw>
Sender: usenet@ccds3.ntu.edu.tw (USENET PROXY ACCOUNT)
Nntp-Posting-Host: spider.ee.ntu.edu.tw
Reply-To: f80204@cc.ee.ntu.edu.tw
Organization: Department of Electrical Engineering, National Taiwan University
References: <CCD5At.LMJ@hermes.hrz.uni-bielefeld.de>
Date: Thu, 26 Aug 1993 20:42:56 GMT
Lines: 126

The a.out format of NetBSD-0.9 is different from that of NetBSD-0.8/386BSD.
Following is the patch. Apply it and configure i386--netbsd.

*** emacs-19.19/configure.orig	Sun Aug 15 13:17:44 1993
--- emacs-19.19/configure	Wed Aug 18 21:01:52 1993
***************
*** 892,897 ****
--- 892,898 ----
        *-sco3.2v4* )		opsys=sco4 ;;
        *-bsd386* )		opsys=bsd386 ;;
        *-386bsd* )	        opsys=386bsd ;;
+       *-netbsd* )	        opsys=netbsd ;;
        ## Otherwise, we'll fall through to the generic opsys code at the bottom.
      esac
    ;;
*** emacs-19.19/config.sub.orig	Sun Aug 15 13:09:03 1993
--- emacs-19.19/config.sub	Wed Aug 18 20:59:16 1993
***************
*** 518,524 ****
  	      | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
  	      | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  	      | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
! 	      | -386bsd* | -lynxos*)
  		;;
  	-sunos5*)
  		os=`echo $os | sed -e 's|sunos5|solaris2|'`
--- 518,524 ----
  	      | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
  	      | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  	      | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
! 	      | -386bsd* | -lynxos* | -netbsd*)
  		;;
  	-sunos5*)
  		os=`echo $os | sed -e 's|sunos5|solaris2|'`
*** emacs-19.19/config.guess.orig	Sun Aug 15 13:09:04 1993
--- emacs-19.19/config.guess	Wed Aug 18 20:59:16 1993
***************
*** 121,126 ****
--- 121,129 ----
      CRAY-2:UNICOS:*:*)
  	echo cray2-cray-unicos
          exit 0 ;;
+     i[34]86:NetBSD:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-netbsd${UNAME_RELEASE}
+ 	exit 0 ;;
      i[34]86:Linux:*:*)
  	echo ${UNAME_MACHINE}-unknown-linux
  	exit 0 ;;
*** emacs-19.19/configure.in.orig	Sat Aug 14 13:31:52 1993
--- emacs-19.19/configure.in	Wed Aug 18 21:01:05 1993
***************
*** 900,905 ****
--- 900,906 ----
        *-sco3.2v4* )		opsys=sco4 ;;
        *-bsd386* )		opsys=bsd386 ;;
        *-386bsd* )	        opsys=386bsd ;;
+       *-netbsd* )	        opsys=netbsd ;;
        ## Otherwise, we'll fall through to the generic opsys code at the bottom.
      esac
    ;;
*** emacs-19.19/src/ymakefile.orig	Sat Aug 14 17:40:55 1993
--- emacs-19.19/src/ymakefile	Wed Aug 18 20:59:17 1993
***************
*** 489,495 ****
     Note that SunOS needs -lm to come before -lc; otherwise, you get
     duplicated symbols.  */
  LIBES = $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
!    LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD
  
  /* Enable recompilation of certain other files depending on system type.  */
  
--- 489,495 ----
     Note that SunOS needs -lm to come before -lc; otherwise, you get
     duplicated symbols.  */
  LIBES = $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
!    LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
  
  /* Enable recompilation of certain other files depending on system type.  */
  
*** emacs-19.19/src/s/netbsd.h.orig	Wed Aug 18 20:59:17 1993
--- emacs-19.19/src/s/netbsd.h	Wed Aug 18 20:59:17 1993
***************
*** 0 ****
--- 1,30 ----
+ /* s/ file for netbsd system.  */
+ 
+ /* Get most of the stuff from bsd4.3 */
+ #include "bsd4-3.h"
+ 
+ #undef SYSTEM_TYPE
+ #define SYSTEM_TYPE "netbsd"
+ 
+ #undef KERNEL_FILE
+ #define KERNEL_FILE "/netbsd"
+ 
+ #undef LDAV_SYMBOL
+ #define LDAV_SYMBOL "_averunnable"
+ 
+ #define SIGNALS_VIA_CHARACTERS
+ 
+ #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
+ 
+ #define A_TEXT_OFFSET(x) (sizeof (struct exec))
+ #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
+ 
+ #define HAVE_SETSID
+ 
+ #define LIBS_DEBUG
+ #define LIBS_SYSTEM -lutil
+ 
+ #define HAVE_GETLOADAVG
+ 
+ /* For mem-limits.h.  */
+ #define BSD4_2
*** emacs-19.19/lisp/site-init.el.orig	Wed Aug 18 20:59:18 1993
--- emacs-19.19/lisp/site-init.el	Wed Aug 18 20:59:18 1993
***************
*** 0 ****
--- 1,3 ----
+ (setq rmail-spool-directory "/var/mail/")
+ (setq sendmail-program "/usr/sbin/sendmail")
+ (setq manual-program "/usr/bin/man")

---
Hung-Chi Chu	Email: f80204@cc.ee.ntu.edu.tw