Article delegate-en/2051 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:<_A2050@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Building Delegate 8.3.0 on OS/2 with EMX
28 Dec 2002 09:45:06 GMT feedback@delegate.org (Yutaka Sato)


Hi,

On 12/28/02(13:45) you pzmbabdyi-ok6ijbkgvfvr.ml@ml.delegate.org wrote
in <_A2050@delegate-en.ML_>
 |>         scanning source of SUBST at ../maker
 |> SYS1086: The following character string is too long:
 |> 
 |> make[2]: *** [srcfiles] Error 1
...
 |It turns out that OS/2 has a 1024 byte limit on the command line - and the 
 |srcfiles:;	@echo " $(SRCS) " at the end of maker/Makefile produces a 
 |command a few bytes longer than that.  You might try a make -s srcfiles | wc
 |to see exactly how long it is - because of the error, I can't tell you precisely,
 |and I'm afraid I'm too lazy to hand-count the bytes in the Makefile.

The length of SRCS seems to have become over 1024 at the modification
in 8.0.0.
And such limitation could be in a system other than OS/2. I saw such
problem past on some system (Win95 or so?) and have been aware not to
exceed the limit, but missed it in 8.0.0 at last.  To be able to be
unaware with the limitation, I'll fix the problem by splitting SRCS
into several definitions like an enclosed patch.  I hope it will work
on OS/2 too.

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


diff -cr 830/maker/Makefile ./maker/Makefile
*** 830/maker/Makefile	Fri Sep  6 12:14:09 2002
--- ./maker/Makefile	Sat Dec 28 17:34:24 2002
***************
*** 35,41 ****
  
  LIBOBJS = *.o
  
! SUBSTSRCS = dummy.c \
  	uname.c __uname.c \
  	bcopy.c putenv.c \
  	old_alloca.c __alloca.c alloca.c \
--- 35,43 ----
  
  LIBOBJS = *.o
  
! SUBSTSRCS0 = Makefile mkmake.c avail.c
! 
! SUBSTSRCS1 = dummy.c \
  	uname.c __uname.c \
  	bcopy.c putenv.c \
  	old_alloca.c __alloca.c alloca.c \
***************
*** 55,61 ****
  	fork.c __fork.c \
  	ptrace.c __ptrace.c _-ptrace.c \
  	sigaction.c __sigaction.c \
! 	utimes.c __utimes.c \
  	fsync.c \
  	fchmod.c __fchmod.c \
  	fchown.c __fchown.c \
--- 57,65 ----
  	fork.c __fork.c \
  	ptrace.c __ptrace.c _-ptrace.c \
  	sigaction.c __sigaction.c \
! 	utimes.c __utimes.c
! 
! SUBSTSRCS2 = \
  	fsync.c \
  	fchmod.c __fchmod.c \
  	fchown.c __fchown.c \
***************
*** 75,81 ****
  	getwd.c getcwd.c __opendir.c __scandir.c ___findfirst.c \
  	stdio.c errno.c
  
! SRCS =	Makefile mkmake.c avail.c $(SUBSTSRCS)
  
  .c.o:;	-$(CC) $(CFLAGS) $(HDRDIR) -c $*.c $(CCOUT)
  
--- 79,87 ----
  	getwd.c getcwd.c __opendir.c __scandir.c ___findfirst.c \
  	stdio.c errno.c
  
! SUBSTSRCS = $(SUBSTSRCS1) $(SUBSTSRCS2)
! 
! SRCS =	$(SUBSTSRCS0) $(SUBSTSRCS)
  
  .c.o:;	-$(CC) $(CFLAGS) $(HDRDIR) -c $*.c $(CCOUT)
  
***************
*** 101,104 ****
  
  clean:; rm -f *.o errors
  files:;		ls -d $(SRCS)
! srcfiles:;	@echo " $(SRCS) "
--- 107,112 ----
  
  clean:; rm -f *.o errors
  files:;		ls -d $(SRCS)
! srcfiles:;	@echo " $(SUBSTSRCS0) "
! 		@echo " $(SUBSTSRCS1) "
! 		@echo " $(SUBSTSRCS2) "
diff -cr 830/maker/mkmake.c ./maker/mkmake.c
*** 830/maker/mkmake.c	Tue Jun 26 07:07:31 2001
--- ./maker/mkmake.c	Sat Dec 28 17:54:47 2002
***************
*** 520,525 ****
--- 520,530 ----
  			}
  
  			for( fp = files; fp; fp = strspace(fp+1) ){
+ 				while( *fp && strchr(" \t\r\n",*fp) )
+ 					fp++;
+ 				if( *fp == 0 )
+ 					break;
+ 
  				file1[0] = 0;
  				sscanf(fp,"%s",file1);
  			if( file1[0] == 0 )

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