Re: [EXIM] bug in 3.02 top makefile

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Bob Billson
CC: exim-users
Subject: Re: [EXIM] bug in 3.02 top makefile
On Fri, 11 Jun 1999, Bob Billson wrote:

> Someone else may have reported this already. If so, I apologize for the
> repeat.


Nobody has, but it looks truly weird.

> I was trying to compile 3.02 on my Linux (Debian) box. Seems
> bash (v2.02.1(1)-release) choked on a few bits in the top Makefile.
> 'make makefile' gave the following error:


> >>> Creating links to source files...
> /bin/sh: -c: line 1: syntax error near unexpected token `../scripts/Configure-Makefile'
> /bin/sh: -c: line 1: `cd build-${build:-`/bin/sh scripts/os-type`-`/bin/sh

scripts/arch-type`}; /bin/rm -f Makefile; (HELL) ../scripts/Configure-Makefile'

[I have split that last line to make it more readable.]

The shell is complaining about a command line generated from

makefile: build-directory
     @cd build-$(buildname); /bin/rm -f Makefile; \
       ($SHELL) ../scripts/Configure-Makefile


How has it turned ($SHELL) into (HELL) ? Presumably it was "make" that
did that. You fixed it with

>  makefile: build-directory
>    @cd build-$(buildname); /bin/rm -f Makefile; \
> -      ($SHELL) ../scripts/Configure-Makefile
> +    $(SHELL) ../scripts/Configure-Makefile


which just removes a couple of space characters that should be
insignificant in the generated command line.

I think this is a problem in "make", not with the shell.

Anybody else seen this problem?


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***