NetBSD Problem Report #1729

From gnats  Sun Nov  5 14:48:55 1995
Received: from flipper.pvv.unit.no by pain.lcs.mit.edu (8.6.9/8.6.9) with ESMTP id OAA14041 for <gnats-bugs@gnats.netbsd.org>; Sun, 5 Nov 1995 14:41:48 -0500
Message-Id: <199511051940.UAA13460@boks.pvv.unit.no>
Date: Sun, 5 Nov 1995 20:40:18 +0100
From: "Arne H. Juul" <arnej@pvv.unit.no>
Reply-To: arnej@pvv.unit.no
To: gnats-bugs@gnats.netbsd.org
Cc: jonathan@DSG.Stanford.EDU, mellon@fugue.com
Subject: NetBSD/pmax needs various Makefile etc. fixes
X-Send-Pr-Version: 3.95

>Number:         1729
>Category:       port-pmax
>Synopsis:       NetBSD/pmax needs various Makefile etc. fixes
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    misc-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 05 19:50:00 +0000 1995
>Closed-Date:    Wed Jul 30 22:46:04 +0000 1997
>Last-Modified:  Wed Aug 07 21:57:58 +0000 2002
>Originator:     Arne H. Juul
>Release:        NetBSD-1.1_ALPHA
>Organization:
	University of Trondheim, Norway
>Environment:

Any NetBSD/pmax machine for 1.1.

>Description:
	I have found various places where NetBSD/pmax needs
	special attention in system Makefiles, mostly because it
	uses a non-standard toolchain.  A couple of these are also
	needed for other architectures (alpha and/or vax).
	I hope there is no problem with installing any of these
	in the 1.1 branch.
>How-To-Repeat:
	cd /usr/src ; make build ; make build
	and noting how it breaks
>Fix:

	Apply these patches:

diff -u usr.bin/kdump/mkioctls.orig usr.bin/kdump/mkioctls
--- usr.bin/kdump/mkioctls.orig	Sun Nov  5 20:14:43 1995
+++ usr.bin/kdump/mkioctls	Sun Nov  5 20:21:54 1995
@@ -33,7 +33,7 @@
 #
 #	@(#)mkioctls	8.2 (Berkeley) 4/28/95
 #
-cpp -dM ${1+"$@"} | awk '
+cat ${1+"$@"} | cpp -dM | awk '
 BEGIN {
 	print "#include <sys/param.h>"
 	print "#include <sys/socket.h>"
diff -u gnu/lib/Makefile.orig gnu/lib/Makefile
--- gnu/lib/Makefile.orig	Sun Nov  5 20:14:42 1995
+++ gnu/lib/Makefile	Sun Nov  5 20:21:54 1995
@@ -1,7 +1,7 @@
 #	$NetBSD: Makefile,v 1.7 1995/04/23 07:50:21 cgd Exp $

 SUBDIR+= libmalloc
-.if (${MACHINE_ARCH} != "alpha")
+.if(${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "mips")
 SUBDIR+= libg++
 .endif

diff -u gnu/usr.bin/groff/Makefile.cfg.orig gnu/usr.bin/groff/Makefile.cfg
--- gnu/usr.bin/groff/Makefile.cfg.orig	Sun Nov  5 20:14:42 1995
+++ gnu/usr.bin/groff/Makefile.cfg	Sun Nov  5 20:21:54 1995
@@ -37,7 +37,8 @@
 		-DHAVE_SYS_SIGLIST=1

 # XXX actually, >= 2.7.0 gcc's; for scoping rules changed.
-.if (${MACHINE_ARCH} == "alpha")
+.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "mips") || \
+    (${MACHINE_ARCH} == "vax")
 CXXFLAGS+=	-fno-for-scope
 .endif

diff -u sys/arch/pmax/Makefile.orig sys/arch/pmax/Makefile
--- sys/arch/pmax/Makefile.orig	Sun Nov  5 20:14:42 1995
+++ sys/arch/pmax/Makefile	Sun Nov  5 20:21:54 1995
@@ -4,10 +4,11 @@

 # Makefile for pmax links, tags file

-.include "../kern/Make.tags.inc"
+.include "../../kern/Make.tags.inc"

-all:
-	@echo "make links or tags only"
+NOPROG=	noprog
+NOMAN=	noman
+NOOBJ=	noobj

 DIRS=	conf dev dist include pmax ultrix

@@ -27,3 +28,5 @@
 	sort -o tags tags
 	chown bin.wsrc tags
 	chmod 444 tags
+
+.include <bsd.prog.mk>
diff -u usr.bin/xlint/lint1/param.h.orig usr.bin/xlint/lint1/param.h
--- usr.bin/xlint/lint1/param.h.orig	Sun Nov  5 20:14:43 1995
+++ usr.bin/xlint/lint1/param.h	Sun Nov  5 20:21:54 1995
@@ -63,6 +63,9 @@
 #ifdef __alpha__
 #define PTRDIFF_IS_LONG		1
 #define SIZEOF_IS_ULONG		1
+#elif __mips__
+#define PTRDIFF_IS_LONG		1
+#define SIZEOF_IS_ULONG		1
 #elif __i386__
 #define PTRDIFF_IS_LONG		0
 #define SIZEOF_IS_ULONG		0
diff -u usr.bin/lorder/Makefile.orig usr.bin/lorder/Makefile
--- usr.bin/lorder/Makefile.orig	Sun Nov  5 20:14:43 1995
+++ usr.bin/lorder/Makefile	Sun Nov  5 20:21:54 1995
@@ -3,7 +3,7 @@

 MAN=	lorder.1

-.if (${MACHINE_ARCH} != "alpha")
+.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "mips")
 SCRIPT=	lorder.sh
 .else
 # alpha uses special version which works with GNU nm.
>Release-Note:
>Audit-Trail:

From: Jonathan Stone <jonathan@netbsd1.cygnus.com>
To: Misc Bug People <gnats-admin@NetBSD.ORG>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-pmax/1729: NetBSD/pmax needs various Makefile etc. fixes
Date: 30 Jul 1997 22:48:51 -0000

 	`Jonathan Stone' made changes to this PR.

 --- /tmp/gnats018455	Wed Jul 30 15:35:20 1997
 +++ /tmp/gnatsa18455	Wed Jul 30 15:46:04 1997
 @@ -18,7 +18,7 @@
  >Severity:       serious
  >Priority:       high
  >Responsible:    misc-bug-people
 ->State:          open
 +>State:          closed
  >Class:          change-request
  >Submitter-Id:   net
  >Arrival-Date:   Sun Nov  5 14:50:00 1995

 sorry about the  delay, this PR was misfiled.


 This PR referenced the following  files from approximately
 NetBSD 1.1:

 +++ usr.bin/kdump/mkioctls	Sun Nov  5 20:21:54 1995
 +++ gnu/lib/Makefile	Sun Nov  5 20:21:54 1995
 +++ gnu/usr.bin/groff/Makefile.cfg	Sun Nov  5 20:21:54 1995
 +++ sys/arch/pmax/Makefile	Sun Nov  5 20:21:54 1995
 +++ usr.bin/xlint/lint1/param.h	Sun Nov  5 20:21:54 1995
 +++ usr.bin/lorder/Makefile	Sun Nov  5 20:21:54 1995

 * mkioctls seems to  work fine as-is with cpp from gcc 2.7.2.2
   in the NetBSD tree.

 * gnu/lib/Makefile builds libg++ on all ports. The  suggested
   change (excluding pmax as well as alpha( is no longer needed.

 * groff/Makefile.cfg has been updated for a newer version
   of groff _and_ a newer g++.  The -fno-for-scope is unecessary.

 * sys/arch/pmax/Makefile has been replaced with a newer 
    Makefile based on  i386 boilerplate. I think the change there
    is redudant.

 * sys/arch/mips/include uses 'int' for prtdiff_t and
   `unsigned int' for size_t. The xlint ifdefs in xlint/lint1/param.h
    match that usage,  and GCC doesn't seem to object.

  * lorder has been updated to use a single script for 
   both NetBSD and GNU binutils. The suggested lodrer change
   is  no longer needed.

 None of the changes in the PR are still relevant, so I'm closing it.

 If you think GCC and sys/arch/mips/include/ansi.h should be changed to
 use long and unsigned long for ptrdiff_t/size_t, please send another
 PR.  The current setup doens't seem broken, but I'm open to the idea
 of changing, especially if it aids migration to 64-bit mips.
 (Was that the point?)
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.