[MacPorts] #61275: ncarg: implicit declaration of function (was: ncarg fails to build)
MacPorts
noreply at macports.org
Tue Oct 6 23:25:09 UTC 2020
#61275: ncarg: implicit declaration of function
------------------------+----------------------
Reporter: lucalelli | Owner: tenomoto
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: ncarg |
------------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* owner: (none) => tenomoto
Comment:
There are lots of `implicit declaration of function` errors in the log*.
This is a new problem in Xcode 12. It used to just be a warning. We should
work with the developers of ncarg to fix this. Until we do, you can avoid
the problem by downgrading to Xcode 11 and the Xcode 11 version of the
command line tools.
*:
{{{
closure.c:39:5: error: implicit declaration of function
'reflexive_transitive_closure' is invalid in C99 [-Werror,-Wimplicit-
function-declaration]
ncargpath.c:51:3: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
Fsplit.c:90:47: error: implicitly declaring library function 'isspace'
with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
Fsplit.c:99:13: error: implicitly declaring library function 'isalpha'
with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
Fsplit.c:100:23: error: implicitly declaring library function 'tolower'
with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
Fsplit.c:104:24: error: implicitly declaring library function 'isdigit'
with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
bofred.c:51:14: error: implicit declaration of function 'open' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
bofred.c:58:2: error: implicit declaration of function 'free' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
c_argeti.c:39:11: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_agback.c:18:5: error: implicit declaration of function 'agback_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_cpgetc.c:51:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_ctgetc.c:51:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
array.c:24:9: error: implicitly declaring library function 'strncat' with
type 'char *(char *, const char *, unsigned long)' [-Werror,-Wimplicit-
function-declaration]
array.c:24:30: error: implicitly declaring library function 'strlen' with
type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_dashdc.c:35:11: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_dpgetc.c:51:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_mapdrw.c:18:5: error: implicit declaration of function 'mapdrw_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_gflas2.c:18:5: error: implicit declaration of function 'gflas2_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_gagetc.c:52:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_hstopc.c:44:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_issetr.c:40:11: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_lblbar.c:59:14: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_nggetc.c:51:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_pcgetc.c:51:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_sfgetc.c:52:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_clsgks.c:18:5: error: implicit declaration of function 'clsgks_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_pwrzs.c:47:11: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_stitle.c:49:14: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_encd.c:39:11: error: implicitly declaring library function 'strlen' with
type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_stgeti.c:39:11: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_tdgeti.c:39:11: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_pwrzt.c:47:11: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_vvgetc.c:52:12: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
c_wmdflt.c:18:5: error: implicit declaration of function 'wmdflt_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
wks.c:673:17: error: implicit declaration of function 'bcopyswap' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
wks.c:699:17: error: implicit declaration of function 'bcopyswap' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
wks.c:783:9: error: implicit declaration of function 'bcopyswap' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:166:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:172:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:178:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:211:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:225:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:245:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:325:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:338:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:350:9: error: implicit declaration of function 'ESprintf' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
crotiff.c:364:31: error: implicit declaration of function 'encodePackBits'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
nnerror.c:44:3: error: implicit declaration of function 'Terminate' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_ftcurv.c:558:3: error: implicit declaration of function 'curvs1_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_ftcurv.c:560:3: error: implicit declaration of function 'fcurvs2_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_ftcurv.c:998:3: error: implicit declaration of function 'curvs1dp_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
c_ftcurv.c:1000:3: error: implicit declaration of function 'fcurvs2dp_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
meta_edit.c:1285:6: error: implicit declaration of function 'CGM_validCGM'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
raster.c:142:23: error: implicit declaration of function 'atoi' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
raster.c:152:25: error: implicit declaration of function 'atoi' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
raster.c:162:24: error: implicit declaration of function 'atoi' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
raster.c:172:16: error: implicit declaration of function 'atoi' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
raster.c:182:16: error: implicit declaration of function 'atoi' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
raster.c:204:21: error: implicit declaration of function 'atoi' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
bitops.c:151:18: error: implicit declaration of function 'Get_SI_int' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
bitops.c:169:18: error: implicit declaration of function 'Get_SI_int' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:81:6: error: implicit declaration of function 'sleep' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:310:11: error: implicit declaration of function 'CGM_validCGM'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:805:9: error: implicit declaration of function 'PipeLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:857:10: error: implicit declaration of function
'print_mem_file' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:897:2: error: implicit declaration of function 'sleep' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:909:9: error: implicit declaration of function 'PipeLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:925:9: error: implicit declaration of function 'unlink' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:1292:8: error: implicit declaration of function 'AddSpooler' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:1328:7: error: implicit declaration of function
'SetCurrentAlias' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:1384:2: error: implicit declaration of function 'SetDevWin' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
commands.c:1487:39: error: implicit declaration of function 'getpid' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
main.c:200:9: error: implicit declaration of function 'unlink' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
main.c:270:22: error: implicit declaration of function 'sleep' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
main.c:337:7: error: implicit declaration of function 'OpenOptionTbl' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
main.c:393:3: error: implicit declaration of function
'SetMinLineWidthDefault' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
main.c:395:3: error: implicit declaration of function
'SetMaxLineWidthDefault' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
main.c:397:3: error: implicit declaration of function
'SetAdditionalLineScale' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
main.c:28:6: error: implicit declaration of function 'ICTrans' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
main.c:29:3: error: implicitly declaring library function 'exit' with type
'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
cgm2ncgm.c:61:3: error: implicitly declaring library function 'memmove'
with type 'void *(void *, const void *, unsigned long)' [-Werror
,-Wimplicit-function-declaration]
commands.c:87:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:121:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:160:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:190:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:222:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:244:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:263:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:274:9: error: implicitly declaring library function 'strcpy'
with type 'char *(char *, const char *)' [-Werror,-Wimplicit-function-
declaration]
commands.c:303:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:336:35: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
commands.c:342:4: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:379:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:445:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:475:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:511:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:544:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:576:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:641:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
commands.c:653:3: error: implicit declaration of function
'command_error_message' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
rascat.c:193:2: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
rascat.c:239:7: error: implicit declaration of function 'OpenOptionTbl' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rascat.c:388:5: error: implicit declaration of function 'check_win' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rascat.c:511:11: error: implicit declaration of function 'RasterDither' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rascat.c:516:11: error: implicit declaration of function 'Raster8to24bit'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rascat.c:533:9: error: implicit declaration of function 'RasterRGBScale'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rascat.c:545:10: error: implicit declaration of function 'PaletteRead' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasstat.c:91:2: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
rasstat.c:118:7: error: implicit declaration of function 'OpenOptionTbl'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ncgmstat.c:76:2: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
ncgmstat.c:90:7: error: implicit declaration of function 'OpenOptionTbl'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
w_idt.c:596:2: error: implicit declaration of function 'SetIconResource'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasview.c:215:12: error: implicit declaration of function 'RasterDither'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasview.c:350:7: error: implicit declaration of function 'OpenOptionTbl'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasview.c:414:7: error: implicit declaration of function 'PaletteRead' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:79:11: error: implicit declaration of function 'OpenOptionTbl' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:84:3: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
rasls.c:103:3: error: implicit declaration of function 'Usage' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:108:21: error: implicitly declaring library function 'malloc' with
type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration]
rasls.c:123:4: error: implicit declaration of function 'Usage' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:127:9: error: implicit declaration of function 'Print' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:132:9: error: implicit declaration of function 'PrintLs' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:155:13: error: implicitly declaring library function 'strcmp' with
type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-
declaration]
rasls.c:169:11: error: implicit declaration of function 'PrintLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:175:11: error: implicit declaration of function 'PrintLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:185:11: error: implicit declaration of function 'PrintLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:189:11: error: implicit declaration of function 'PrintLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:205:10: error: implicit declaration of function 'PrintLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:210:11: error: implicit declaration of function 'RasterGetValues'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasls.c:230:10: error: implicit declaration of function 'PrintLine' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasgetpal.c:60:11: error: implicit declaration of function 'OpenOptionTbl'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasgetpal.c:65:3: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
rasgetpal.c:178:8: error: implicitly declaring library function 'strcmp'
with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-
declaration]
rasgetpal.c:179:13: error: implicit declaration of function 'PaletteWrite'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rasgetpal.c:182:13: error: implicit declaration of function 'PaletteWrite'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rassplit.c:42:3: error: implicit declaration of function 'Usage' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
rassplit.c:55:11: error: implicit declaration of function 'PrintHelp' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
ras2ccir601.c:144:2: error: implicitly declaring library function 'exit'
with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-
function-declaration]
ras2ccir601.c:239:7: error: implicit declaration of function
'OpenOptionTbl' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
ras2ccir601.c:361:12: error: implicit declaration of function
'Raster8to24bit' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
closure.c:39:5: error: implicit declaration of function
'reflexive_transitive_closure' is invalid in C99 [-Werror,-Wimplicit-
function-declaration]
Error.c:402:2: error: implicit declaration of function 'nhlfloadgerhnd_'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:481:5: error: implicit declaration of function 'nhlpfinqunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:512:7: error: implicit declaration of function 'nhlpfopnunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:566:7: error: implicit declaration of function 'nhlpfopnunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:751:5: error: implicit declaration of function 'nhlpfclsunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:756:4: error: implicit declaration of function 'nhlpfinqunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:789:6: error: implicit declaration of function 'nhlpfopnunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:821:5: error: implicit declaration of function 'nhlpfclsunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:838:5: error: implicit declaration of function 'nhlpfinqunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:869:7: error: implicit declaration of function 'nhlpfopnunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:985:4: error: implicit declaration of function 'nhlpfclsunit_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
Error.c:1145:3: error: implicit declaration of function 'nhlpfprnmes_' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
DataSupport.c:3086:9: error: implicitly declaring library function
'isspace' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
rgb.c:75:2: error: implicitly declaring library function 'exit' with type
'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
rgb.c:87:12: error: implicit declaration of function 'close' is invalid in
C99 [-Werror,-Wimplicit-function-declaration]
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61275#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list