NetBSD Problem Report #53

From gnats  Wed Dec 29 14:25:14 1993
Received: from aruba.lerc.nasa.gov (root@aruba.lerc.nasa.gov [139.88.35.16]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with SMTP id OAA15911 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 29 Dec 1993 14:19:50 -0800
Message-Id: <199312292219.AA26325@flick.lerc.nasa.gov>
Date: Wed, 29 Dec 1993 17:19:46 -0500
From: mckim@lerc.nasa.gov
Reply-To: mckim@lerc.nasa.gov
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: genassym should be linked statically
X-Send-Pr-Version: 3.2

>Number:         53
>Category:       kern
>Synopsis:       genassym should be linked statically
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 29 14:35:02 +0000 1993
>Closed-Date:    Thu Dec 30 11:01:29 +0000 1993
>Last-Modified:  
>Originator:     Jim McKim
>Release:        NetBSD-current
>Organization:
NASA Lewis Research Center
>Environment:

System: NetBSD 0.9
Architecture: i386

>Description:

genassym, created as part of the kernel recompilation process is built
shared. It might be better to build it static (at least until shared
libraries are commonly available). The impact would be small on those
who already have shared libraries, but would be one less chuckhole in
the road for those trying to bootstrap from 0.9

>How-To-Repeat:

Install the -current gcc, as, ld.
Recompile the kernel.
The makefile will compile genassym. The -current compiler
defaults to non-static libraries. The resultant genassym executable will not
run correctly.

>Fix:
*** usr/src/sys/arch/i386/conf/Makefile.i386.orig	Wed Dec 29 14:50:22 1993
--- usr/src/sys/arch/i386/conf/Makefile.i386	Wed Dec 29 14:50:55 1993
***************
*** 114,120 ****
  	./genassym >assym.s

  genassym: ${I386}/i386/genassym.c
! 	${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
  		 ${I386}/i386/genassym.c -o genassym

  depend: assym.s param.c
--- 114,120 ----
  	./genassym >assym.s

  genassym: ${I386}/i386/genassym.c
! 	${CC} -static ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
  		 ${I386}/i386/genassym.c -o genassym

  depend: assym.s param.c

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Dec 30 11:01:29 1993
State-Changed-Why:
Fixed by theo.

>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.