Article delegate-en/139 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A138@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: compiling v5.7.1 with GNU Make
29 Oct 1998 17:07:40 GMT ysato@etl.go.jp (Yutaka Sato 佐藤豊)


Hi Ciaran,

In message <Pine.A41.4.05.9810291508090.60000-00000X@esquelet>
on 10/29/98(23:24:22)
you Ciaran Deignan <poqmqbth4-q4vsjhviirvr.ml@ml.delegate.org> wrote:
 |I have a problem building delegated version 5.7.1 on AIX 4.1.5 with GNU
 |make version 3.76.1.
 |
 |GNU Make displays the message
 |  Entering directory 'xxxxxxx' when the directory changes.
 |the Mkmake tool does not discard this warning, and thus the
 |contents of Makefile.go becomes corrupted.
 |The problem can be avoided by forcing the use of the standard make.

There have been several reports including your very informative one
about the problem on making DeleGate/4.7.1.  Just as you pointed out,
the problem occurs when you use GNUmake and do make at the top
directory of DeleGate, so you can avoid it by using the standard make
or do make at src/ directory (or invoke make with -s option).
I found out that this problem is caused by GNUmake with strange
policy which automatically insert "-w" flag in MAKEFLAGS environment
variable which is not negated with "-s" option in command line.
(http://wall.etl.go.jp/mail-lists/delegate/7545)
So I did patch as enclosed at the end of this message.

Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_


*** ../dist/delegate5.7.1/maker/mkmake.c	Mon Oct 26 19:42:02 1998
--- mkmake.c	Thu Oct 29 14:10:42 1998
***************
*** 21,26 ****
--- 21,27 ----
  #include <stdio.h>
  #include <string.h>
  extern FILE *tmpfile();
+ extern char *getenv();
  
  #define MKMKMK_EXE "mkmkmk.exe"
  #define SRCFILE_LIST	"srcfiles"
***************
*** 488,494 ****
--- 489,500 ----
  		char cwd[1024],lscom[1024];
  		char *sp,*lp,*fp,*dp;
  		char name[128],dir1[128],files[4096],file1[128];
+ 		char *env;
  
+ 		/* to ignore -w flag of GNUmake ... */
+ 		if( env = getenv("MAKEFLAGS") ) *env = 0;
+ 		if( env = getenv("MFLAGS") ) *env = 0;
+ 
  		GETCWD(cwd,sizeof(cwd));
  		sprintf(lscom,"%s %s %s",MAKE,BESILENT,SRCFILE_LIST);
  		dp = libsrcs;


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V