Project

General

Profile

Actions

Bug #14330

closed

make: too few arguments to function getname_fn

Added by Toomas Soome 22 days ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors with gcc 11:

    /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:741:40: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      741 |                 if (((rule = getname_fn(rule_name,
          |                              ~~~~~~~~~~^~~~~~~~~~~
      742 |                                         (int) (source_suffix->name->
          |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      743 |                                                hash.length +
          |                                                ~~~~~~~~~~~~~
      744 |                                                target_suffix->hash.length),
          |                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      745 |                                         true)) != NULL) &&
          |                                         ~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    + /usr/gcc/7/bin/g++ -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -O -m32 -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-variable -Wno-switch -Wno-parentheses -Wno-unused-function -Wno-clobbered -Wno-uninitialized -I/code/illumos-gate/usr/src/cmd/make/include -D_FILE_OFFSET_BITS=64 -c -o /tmp/cw._eaOHE/cwafa4HE.o /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc
    /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc: In function 'void build_suffix_list(Name)':
    /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:745:10: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
          true)) != NULL) &&
              ^
    In file included from /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    *** Error code 1
    make: Fatal error: Command failed for target `implicit.o'

    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function '_Name* getvar(Name)':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:96:18: note: in expansion of macro 'GETNAME'
       96 |         result = GETNAME(destination.buffer.start, FIND_LENGTH);
          |                  ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function 'void expand_macro(Source, String, wchar_t*, Boolean)':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:302:24: note: in expansion of macro 'GETNAME'
      302 |                 make = GETNAME(wcs_buffer, FIND_LENGTH);
          |                        ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:460:24: note: in expansion of macro 'GETNAME'
      460 |                 name = GETNAME(string.buffer.start, 1);
          |                        ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:471:32: note: in expansion of macro 'GETNAME'
      471 |                         name = GETNAME(string.buffer.start,
          |                                ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:601:24: note: in expansion of macro 'GETNAME'
      601 |                 name = GETNAME(string.buffer.start,
          |                        ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function 'void init_arch_macros()':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:927:25: note: in expansion of macro 'GETNAME'
      927 |                 value = GETNAME(result_string.buffer.start, wcslen(result_string.buffer.start));
          |                         ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function 'void init_mach_macros()':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:982:25: note: in expansion of macro 'GETNAME'
      982 |                 value = GETNAME(result_string.buffer.start, wcslen(result_string.buffer.start));
          |                         ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function '_Property* setvar_daemon(Name, Name, Boolean, Daemon, Boolean, short int)':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1111:33: note: in expansion of macro 'GETNAME'
     1111 |                         value = GETNAME(destination.buffer.start, FIND_LENGTH);
          |                                 ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1145:25: note: in expansion of macro 'GETNAME'
     1145 |                 value = GETNAME(destination.buffer.start, FIND_LENGTH);
          |                         ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1195:25: note: in expansion of macro 'GETNAME'
     1195 |                 value = GETNAME(destination.buffer.start, FIND_LENGTH);
          |                         ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:43: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
      156 | #define GETNAME(a,b)            getname_fn((a), (b), false)
          |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1324:46: note: in expansion of macro 'GETNAME'
     1324 |                                              GETNAME(new_value, FIND_LENGTH),
          |                                              ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:17: note: declared here
       43 | extern Name     getname_fn(wchar_t *, int, Boolean, Boolean *);
          |                 ^~~~~~~~~~
    + /usr/gcc/7/bin/g++ -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -O -m32 -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-function -Wno-unused-value -Wno-uninitialized -I/code/illumos-gate/usr/src/cmd/make/include -D_FILE_OFFSET_BITS=64 -c -o /tmp/cw.ppaqmD/cwqpaGmD.o /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function '_Name* getvar(Name)':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:96:11: note: in expansion of macro 'GETNAME'
      result = GETNAME(destination.buffer.start, FIND_LENGTH);
               ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function 'void expand_macro(Source, String, wchar_t*, Boolean)':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:302:10: note: in expansion of macro 'GETNAME'
       make = GETNAME(wcs_buffer, FIND_LENGTH);
              ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:460:10: note: in expansion of macro 'GETNAME'
       name = GETNAME(string.buffer.start, 1);
              ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:471:11: note: in expansion of macro 'GETNAME'
        name = GETNAME(string.buffer.start,
               ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:601:10: note: in expansion of macro 'GETNAME'
       name = GETNAME(string.buffer.start,
              ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function 'void init_arch_macros()':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:927:11: note: in expansion of macro 'GETNAME'
       value = GETNAME(result_string.buffer.start, wcslen(result_string.buffer.start));
               ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function 'void init_mach_macros()':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:982:11: note: in expansion of macro 'GETNAME'
       value = GETNAME(result_string.buffer.start, wcslen(result_string.buffer.start));
               ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function '_Property* setvar_daemon(Name, Name, Boolean, Daemon, Boolean, short int)':
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1111:12: note: in expansion of macro 'GETNAME'
        value = GETNAME(destination.buffer.start, FIND_LENGTH);
                ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1145:11: note: in expansion of macro 'GETNAME'
       value = GETNAME(destination.buffer.start, FIND_LENGTH);
               ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1195:11: note: in expansion of macro 'GETNAME'
       value = GETNAME(destination.buffer.start, FIND_LENGTH);
               ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/include/mksh/dosys.h:29:0,
                     from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:36:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:156:49: error: too few arguments to function '_Name* getname_fn(wchar_t*, int, Boolean, Boolean*)'
     #define GETNAME(a,b)  getname_fn((a), (b), false)
                                                     ^
    /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:1324:11: note: in expansion of macro 'GETNAME'
               GETNAME(new_value, FIND_LENGTH),
               ^~~~~~~
    In file included from /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:39:0:
    /code/illumos-gate/usr/src/cmd/make/include/mksh/misc.h:43:13: note: declared here
     extern Name getname_fn(wchar_t *, int, Boolean, Boolean *);
                 ^~~~~~~~~~
    *** Error code 1
    make: Fatal error: Command failed for target `objs/macro.o'
    Current working directory /code/illumos-gate/usr/src/tools/make/lib/mksh

The error is making a lot of noise, but the fix really is just oneliner:

-#define GETNAME(a,b)           getname_fn((a), (b), false)
+#define GETNAME(a,b)           getname_fn((a), (b), false, NULL)

Testing done: nightly run...

Actions #1

Updated by Electric Monk 22 days ago

  • Gerrit CR set to 1886
Actions #2

Updated by Toomas Soome 5 days ago

  • Tracker changed from Bug to Feature
  • Status changed from In Progress to Closed

Problem created by mistake in 14327.

Actions #3

Updated by Toomas Soome 5 days ago

  • Tracker changed from Feature to Bug
Actions

Also available in: Atom PDF