Skip to content

%RMS-W-RTB, 257 byte record too large for user's buffer #94

@hb--

Description

@hb--
$ mmk/id 
%MMK-I-IDENT, this is the MMK Make Utility V5.0
-MMK-I-COPYRIGHT, Copyright (c) 2008, Matthew Madison.
    Copyright (c) 2013, Endless Software Solutions.
  See LICENSE.TXT in distribution kit for license information.
$ 

With MMK_S_DCL defined to 256 I get

$ mmk 
CC /define=(HAVE_CONFIG_H,VERSION="""21.2""")   /include=(sys$disk:[],sys$disk:[-.src],AXPA:[EMACS.EMACS212_3.LIB-SRC],AXPA:[EMACS.E
MACS212_3.SRC],AXPA:[EMACS.EMACS212_3.VMS])     /WARNINGS=(DISABLE=(UNDEFESCA,PTRMISMATCH1,PTRMISMATCH,QUESTCOMPARE,QUEST)) x
%RMS-W-RTB, 257 byte record too large for user's buffer
^Y
 Interrupt 

I changed mmk.h and it worked. But what do I know, there may be something
else going on in build_target.c ... With some trace code I see:

cmdlen: 257, MMK_S_DCL: 256, strlen(cmd): 257
i: 256, last_quote: 43, inquotes: 0
%RMS-W-RTB, 257 byte record too large for user's buffer
$
$ diff [-.newmmk]mmk.h
************
File SYS$SYSDEVICE:[HB.NEWMMK]MMK.H;2
  148   #define MMK_S_DCL       255     /* 255 is DCL command line + trailing null */
  149   #endif
******
File SYS$SYSDEVICE:[HB.NEWMMK]MMK.H;1
  148   #define MMK_S_DCL       256     /* 255 is DCL command line + trailing null */
  149   #endif
************
************
File SYS$SYSDEVICE:[HB.NEWMMK]MMK.H;2
  154   #define MMK_S_DCL       255     /* 255 is DCL command line + trailing null */
  155   #define MMK_S_MAXRSS    NAML$C_MAXRSS
******
File SYS$SYSDEVICE:[HB.NEWMMK]MMK.H;1
  154   #define MMK_S_DCL       256     /* 255 is DCL command line + trailing null */
  155   #define MMK_S_MAXRSS    NAML$C_MAXRSS
************

Number of difference sections found: 2
Number of difference records found: 2

DIFFERENCES /IGNORE=()/MERGED=1-
    SYS$SYSDEVICE:[HB.NEWMMK]MMK.H;2-
    SYS$SYSDEVICE:[HB.NEWMMK]MMK.H;1
$ mc SYS$SYSDEVICE:[HB.NEWMMK.bin-vax]mmk
CC /define=(HAVE_CONFIG_H,VERSION="""21.2""")   /include=(sys$disk:[],sys$disk:[-.src],AXPA:[EMACS.EMACS212_3.LIB-SRC],AXPA:[EMACS.E
MACS212_3.SRC],AXPA:[EMACS.EMACS212_3.VMS])     /WARNINGS=(DISABLE=(UNDEFESCA,PTRMISMATCH1,PTRMISMATCH,QUESTCOMPARE,QUEST)) x
%CLI-F-OPENIN, error opening SYS$SYSDEVICE:[HB.XMMK]X.C; as input
-RMS-E-FNF, file not found

%MMK-F-ERRUPD, error status %X1000002C occurred when updating target X
$

Yes, it is VAX.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions