[MacPorts] #68083: miriad @4.3.8.20160322: error: implicitly declaring library function 'strlen', 'strncmp'

MacPorts noreply at macports.org
Wed Aug 30 05:28:21 UTC 2023


#68083: miriad @4.3.8.20160322: error: implicitly declaring library function
'strlen', 'strncmp'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  pkgw
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.8.1
 Keywords:              |       Port:  miriad
------------------------+----------------------
 https://build.macports.org/builders/ports-
 12_x86_64-builder/builds/80361/steps/install-port/logs/stdio

 {{{
 docfmt.c:29:1: warning: type specifier missing, defaults to 'int'
 [-Wimplicit-int]
 main(argc,argv)
 ^
 docfmt.c:121:21: error: implicitly declaring library function 'strlen'
 with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
 declaration]
   if(!echo)length = strlen(keyword);
                     ^
 docfmt.c:121:21: note: include the header <string.h> or explicitly provide
 a declaration for 'strlen'
 docfmt.c:128:17: error: implicitly declaring library function 'strncmp'
 with type 'int (const char *, const char *, unsigned long)' [-Werror
 ,-Wimplicit-function-declaration]
     if(!echo && strncmp(line,"%A",2));
                 ^
 docfmt.c:128:17: note: include the header <string.h> or explicitly provide
 a declaration for 'strncmp'
 1 warning and 2 errors generated.
 make[2]: *** [docfmt.o] Error 1
 }}}

 See WimplicitFunctionDeclaration.

-- 
Ticket URL: <https://trac.macports.org/ticket/68083>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list