Subject: Re: Problem with bash and/or make under NetBSD 1.0
To: None <rpe@Cybernetics.NET>
From: Chet Ramey <chet@odin.INS.CWRU.Edu>
List: netbsd-help
Date: 02/07/1995 10:11:34
> I've got a recurring problem with make under NetBSD 1.0.
> It gets errors like "execvp: /bin: path too long". If I try the
> make again, it sometimes works. Here's some example output:
> 
> bash $ make
> cc -g  -c tst.c
> execvp: /usr/local/bin: path too long
> execvp: /bin: path too long
> execvp: /usr/bin: path too long
> execvp: /sbin: path too long
> execvp: /usr/sbin: path too long
> execvp: /etc: path too long
> execvp: /usr/games: path too long
> cc: not found
> *** Error code 1
> 
> This error does NOT seem to happen with gmake. It doesn't happen
> if I use csh as my shell instead of bash. Any ideas? (Is this a FAQ?)

The NetBSD execvp() thinks that the $PATH should not be longer than
PATH_MAX (1024) characters (that *is* pretty long), and will not
search any directories in your $PATH after that limit is reached.

This is done for security reasons.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu