snapshot build fails with /bin/ksh

Mark_Andrews at isc.org Mark_Andrews at isc.org
Mon Jul 15 07:35:33 UTC 2002


> one of my machines (FreeBSD 4.6 stable) has ksh (ksh93) installed (from
> ports, i believe).
> 
> with this file in place, i get the following error when configuring bind
> 9.3.0s20020703 with the following command:
> 
> % ./configure --with-openssl
> [....]
> checking build system type... i386-unknown-freebsd4.6
> checking host system type... i386-unknown-freebsd4.6
> checking whether make sets ${MAKE}... yes
> checking for ranlib... :
> checking for a BSD-compatible install... ./../../install-sh -c
> checking for ar... no
> configure: error:
> ar program not found.  Please fix your PATH to include the directory in
> which ar resides, or set AR in the environment with the full path to ar.
> 
> configure: error: /bin/ksh './configure' failed for lib/bind
> 
> jazz% which ar
> /usr/bin/ar
> jazz% echo $PATH
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/
> X11R6/bin:/home/william/bin
> jazz% ksh
> $ echo $PATH
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/
> X11R6/bin:/home/william/bin
> $ which ar
> /usr/bin/ar
> 
> jazz% cat test
> #!/bin/ksh
> echo $PATH
> echo $(which ar)
> jazz% ./test 
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/
> X11R6/bin:/home/william/bin
> /usr/bin/ar
> 
> Any idea why I'm getting this error?
> 
> Temporarily moving /bin/ksh to /bin/ksh93 fixes the problem, since the
> script doesn't find ksh then.
> 
> -- 
> No copies, please.
> To reply privately, simply reply; don't remove anything.
> 

	ksh has strange PATH handling which causes the code to
	find the path seperator to fail.  Any non-absolute path
	element is treated as ".".

	Mark

% sh
$ PATH=".;."
$ configure
configure: not found
$ exit
% ksh
$ PATH=".;."
$ configure
uname: not found
expr: not found
sed: not found
sed: not found
sed: not found
: error: cannot create .lineno; rerun with a POSIX shell
$ exit
% 

--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list