Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!ames!ucbcad!ucbvax!LBL.ARPA!nagy%warner.hepnet From: nagy%warner.hepnet@LBL.ARPA Newsgroups: comp.os.vms Subject: Problem in VAX C CURSES module (and CURSES.H file) Message-ID: <870611052530.017@lbl.arpa> Date: Thu, 11-Jun-87 08:25:29 EDT Article-I.D.: lbl.870611052530.017 Posted: Thu Jun 11 08:25:29 1987 Date-Received: Sat, 20-Jun-87 19:47:24 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 44 >Ton Akveld --- E R C --- >I recently came across the next problem; > 1070 1 mvgetstr(10, 20, pword); >%CC-W-TOOMANYMACARGS, Argument list for macro "mvgetstr" contains > too many arguments; excess arguments ignored. etc... >VAX C bug ?? Certainly looks that way. The problems is the definition in the CURSES module in the VAXCDEF.TLB text library in SYS$LIBRARY (and, if your system manager extracted the modules at installation, in the CURSES.H file in SYS$LIBRARY:). The offending line is: # define mvgetstr(y,x) mvwgetstr (stdscr, y, x) which should be editted and replaced by: # define mvgetstr(y,x,str) mvwgetstr (stdscr, y, x, str) This must be done by the system manager to the CURSES.H file in SYS$LIBRARY (if any) and the CURSES module must be fixed in the library. The CURSES module can be replaced by the fixed version of CURSES.H as: $ LIBRARY /TEXT /REPLACE SYS$LIBRARY:VAXCDEF SYS$LIBRARY:CURSES.H or, the module must be extracted, editted and replaced: $ LIBRARY /TEXT /EXTRACT=CURSES /OUTPUT=CURSES.H SYS$LIBRARY:VAXCDEF edit CURSES.H to make fix $ LIBRARY /TEXT /REPLACE SYS$LIBRARY:VAXCDEF CURSES.H can now delete CURSES.H from local work directory NOTE: This problem is present through V2.2 of VAX C. We have not installed V2.3 of VAX C and so I cannot tell if the problem is present there. = Frank J. Nagy = Fermilab Research Division EED/Controls = HEPNET: WARNER::NAGY (43198::NAGY) or FNAL::NAGY (43009::NAGY) = BitNet: NAGY@FNAL = USnail: Fermilab POB 500 MS/220 Batavia, IL 60510