Subject: bin/9527: collect2 breaks if directory called ld too early in $PATH
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/03/2000 13:18:59
>Number:         9527
>Category:       bin
>Synopsis:       collect2 (and thus cc) breaks if directory called ld too early in $PATH
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar  3 13:18:01 2000
>Originator:     Olaf 'Rhialto' Seibert
>Release:        1.4.1
System: NetBSD 1.4.1 NetBSD 1.4.1 (AZENOMEI) #22: Tue Feb 22 22:39:20 CET 2000 alpha

	If you have a directory called "ld" in your $PATH before the
	real ld (the linker), you cannot compile any programs.
Script started on Fri Mar  3 22:10:38 2000
azenomei.3:/tmp$ l c.c
-rw-r--r--  1 rhialto  wheel  18 Mar  3 21:27 c.c
azenomei.3:/tmp$ gcc c.c
azenomei.3:/tmp$ mkdir ld
azenomei.3:/tmp$ gcc c.c
collect2: ld returned 33 exit status
azenomei.3:/tmp$ echo $PATH
azenomei.3:/tmp$ exit

Script done on Fri Mar  3 22:11:01 2000
	Workaround: put . at end of $PATH, if present.
	Fix: I didn't look at that, I'm trying to make a crosscompiler to
	the VAX ;-)