Subject: bin/3601: /src/gnu/usr.bin/gas/Makefile misses $(.CURDIR)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 05/11/1997 00:11:49
>Number:         3601
>Category:       bin
>Synopsis:       /src/gnu/usr.bin/gas/Makefile misses $(.CURDIR)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 10 15:35:01 1997
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        <NetBSD-current source date> NetBSD current 09.05.1997
>Environment:
	
System: NetBSD cyberlap 1.2E NetBSD 1.2E (CYBERLAP) #11: Sat May 10 16:08:28 CEST 1997 frueauf@cyberlap:/usr/src/sys/arch/i386/compile/CYBERLAP i386


>Description:
	
/src/gnu/usr.bin/gas/Makefile misses $(.CURDIR), this gets visible if one
uses `make obj` to seperate object files from the source tree.

>How-To-Repeat:
	
With a current 09.05.1997 NetBSD source tree, do the following (on i386):

cd /src/gnu/usr.bin/gas
make obj
make depend && make
and watch:

cc   -o as app.o as.o atof-generic.o bignum-copy.o cond.o expr.o flo-const.o flo-copy.o flonum-mult.o frags.o hash.o hex-value.o input-file.o input-scrub.o listing.o messages.o obstack.o output-file.o read.o subsegs.o symbols.o version.o write.o xmalloc.o xrealloc.o obj-aout.o 
app.o: Undefined symbol `_comment_chars' referenced from text segment
app.o: Undefined symbol `_comment_chars' referenced from text segment
app.o: Undefined symbol `_line_comment_chars' referenced from text segment
app.o: Undefined symbol `_line_comment_chars' referenced from text segment
app.o: Undefined symbol `_comment_chars' referenced from text segment
as.o: Undefined symbol `_md_begin' referenced from text segment
as.o: Undefined symbol `_md_parse_option' referenced from text segment
as.o: Undefined symbol `_md_end' referenced from text segment
expr.o: Undefined symbol `_EXP_CHARS' referenced from text segment
expr.o: Undefined symbol `_FLT_CHARS' referenced from text segment
expr.o: Undefined symbol `_EXP_CHARS' referenced from text segment
expr.o: Undefined symbol `_md_operand' referenced from text segment
read.o: Undefined symbol `_md_pseudo_table' referenced from text segment
read.o: Undefined symbol `_md_pseudo_table' referenced from text segment
read.o: Undefined symbol `_md_assemble' referenced from text segment
read.o: Undefined symbol `_line_comment_chars' referenced from text segment
read.o: Undefined symbol `_md_number_to_chars' referenced from text segment
read.o: Undefined symbol `_md_undefined_symbol' referenced from text segment
[...]

>Fix:
	
Dunno if this is the proper fix, but for me the following patch worked
(apply it to /src/gnu/usr.bin/gas/Makefile):

*** Makefile-orig	Sun Apr 20 13:18:46 1997
--- Makefile	Sun May 11 00:03:04 1997
***************
*** 1,8 ****
  #	$NetBSD: Makefile,v 1.19 1997/04/19 02:59:28 cgd Exp $
  #	@(#)Makefile	6.1 (Berkeley) 3/3/91
  
! .if exists(config/Makefile.$(MACHINE_ARCH))
! .include "config/Makefile.$(MACHINE_ARCH)"
  .endif
  
  .if !defined (gas_hosttype)
--- 1,8 ----
  #	$NetBSD: Makefile,v 1.19 1997/04/19 02:59:28 cgd Exp $
  #	@(#)Makefile	6.1 (Berkeley) 3/3/91
  
! .if exists($(.CURDIR)/config/Makefile.$(MACHINE_ARCH))
! .include "$(.CURDIR)/config/Makefile.$(MACHINE_ARCH)"
  .endif
  
  .if !defined (gas_hosttype)
>Audit-Trail:
>Unformatted:
/src/gnu/usr.bin/gas/Makefile misses $(.CURDIR)