[MacPorts] #67455: ncarg @6.6.2: disables implicit declaration of function errors

MacPorts noreply at macports.org
Fri Apr 12 07:29:05 UTC 2024


#67455: ncarg @6.6.2: disables implicit declaration of function errors
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  tenomoto
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:
      Port:  ncarg       |
-------------------------+----------------------

Comment (by nilason):

 This is now a problem at least for macOS 14/arm64, log extract from CI
 runner (from a rev-bump PR):

 {{{
 /opt/local/bin/h5cc -fPIC -D_DARWIN_C_SOURCE -Os -Wno-error=implicit-
 function-declaration -DH5_USE_110_API -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -O
 -I../../.././include -I/opt/local/include/freetype2
 -I/opt/local/include/udunits2 -I/opt/local/lib/hdfeos5/include
 -I/opt/local/lib/proj5/include -I/opt/local/include    -DSYSV
 -D_POSIX_SOURCE -D_XOPEN_SOURCE -D__JIRA1530__ -DByteSwapped -D__UNIXOS2__
 -D_DARWIN_C_SOURCE -DNeedFuncProto    -c -o closure.o closure.c
 closure.c:11:1: error: type specifier missing, defaults to 'int'; ISO C99
 and later do not support implicit int [-Wimplicit-int]
 set_EFF()
 ^
 int
 closure.c:21:11: warning: passing arguments to 'allocate' without a
 prototype is deprecated in all versions of C and is not supported in C2x
 [-Wdeprecated-non-prototype]
     EFF = NEW2(nvars * rowsize, unsigned);
           ^
 ./defs.h:105:32: note: expanded from macro 'NEW2'
 #define NEW2(n,t)       ((t*)allocate((unsigned)((n)*sizeof(t))))
                                      ^
 closure.c:39:5: warning: call to undeclared function
 'reflexive_transitive_closure'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
     reflexive_transitive_closure(EFF, nvars);
     ^
 closure.c:47:1: error: type specifier missing, defaults to 'int'; ISO C99
 and later do not support implicit int [-Wimplicit-int]
 set_first_derives()
 ^
 int
 closure.c:63:21: warning: passing arguments to 'allocate' without a
 prototype is deprecated in all versions of C and is not supported in C2x
 [-Wdeprecated-non-prototype]
     first_derives = NEW2(nvars * rulesetsize, unsigned) - ntokens *
 rulesetsize;
                     ^
 ./defs.h:105:32: note: expanded from macro 'NEW2'
 #define NEW2(n,t)       ((t*)allocate((unsigned)((n)*sizeof(t))))
                                      ^
 closure.c:102:1: error: type specifier missing, defaults to 'int'; ISO C99
 and later do not support implicit int [-Wimplicit-int]
 closure(nucleus, n)
 ^
 int
 closure.c:102:1: warning: a function definition without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 closure.c:172:1: error: type specifier missing, defaults to 'int'; ISO C99
 and later do not support implicit int [-Wimplicit-int]
 finalize_closure()
 ^
 int
 4 warnings and 4 errors generated.
 make[4]: *** [closure.o] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67455#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list