[MacPorts] #68078: rb-calendar @1.11r: error: call to undeclared library function 'strcmp'

MacPorts noreply at macports.org
Tue Aug 29 08:40:04 UTC 2023


#68078: rb-calendar @1.11r: error: call to undeclared library function 'strcmp'
------------------------+-------------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.8.1
 Keywords:              |       Port:  rb-calendar
------------------------+-------------------------
 https://build.macports.org/builders/ports-
 13_arm64-builder/builds/33666/steps/install-port/logs/stdio

 {{{
 getdate.c:16:14: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 extern char *getenv();
              ^
 getdate.y:456:19: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 extern struct tm        *gmtime ();
                          ^
 getdate.y:457:19: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 extern struct tm        *localtime ();
                          ^
 getdate.y:458:16: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 extern time_t           mktime ();
                         ^
 getdate.y:649:1: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 yyerror (s)
 ^
 getdate.y:86:17: note: expanded from macro 'yyerror'
 #define yyerror gd_error
                 ^
 getdate.y:656:1: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 ToHour (Hours, Meridian)
 ^
 getdate.y:685:1: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 ToYear (Year)
 ^
 getdate.y:716:7: error: call to undeclared library function 'strcmp' with
 type 'int (const char *, const char *)'; ISO C99 and later do not support
 implicit function declarations [-Wimplicit-function-declaration]
   if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
       ^
 getdate.y:716:7: note: include the header <string.h> or explicitly provide
 a declaration for 'strcmp'
 getdate.y:728:7: error: call to undeclared library function 'strlen' with
 type 'unsigned long (const char *)'; ISO C99 and later do not support
 implicit function declarations [-Wimplicit-function-declaration]
   if (strlen (buff) == 3)
       ^
 getdate.y:728:7: note: include the header <string.h> or explicitly provide
 a declaration for 'strlen'
 getdate.y:742:8: error: call to undeclared library function 'strncmp' with
 type 'int (const char *, const char *, unsigned long)'; ISO C99 and later
 do not support implicit function declarations [-Wimplicit-function-
 declaration]
           if (strncmp (buff, tp->name, 3) == 0)
               ^
 getdate.y:742:8: note: include the header <string.h> or explicitly provide
 a declaration for 'strncmp'
 getdate.y:702:1: warning: a function declaration without a prototype is
 deprecated in all versions of C and is not supported in C2x [-Wdeprecated-
 non-prototype]
 LookupWord (buff)
 ^
 getdate.y:934:7: error: call to undeclared function 'gd_parse'; ISO C99
 and later do not support implicit function declarations [-Wimplicit-
 function-declaration]
   if (yyparse ()
       ^
 getdate.y:84:17: note: expanded from macro 'yyparse'
 #define yyparse gd_parse
                 ^
 8 warnings and 4 errors generated.
 }}}

 See WimplicitFunctionDeclaration.

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


More information about the macports-tickets mailing list