[MacPorts] #61425: kermit @9.0.302: error: implicit declaration of function 'time' is invalid in C99 (was: kermit fails to compile on macOS 11.0 - implicit declaration)

MacPorts noreply at macports.org
Tue Nov 10 13:17:14 UTC 2020


#61425: kermit @9.0.302: error: implicit declaration of function 'time' is invalid
in C99
---------------------+--------------------
  Reporter:  Knapoc  |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.3
Resolution:          |   Keywords:
      Port:  kermit  |
---------------------+--------------------

Comment (by ryandesign):

 Thanks for reporting the problem and trying to fix it.

 For macOS 10.15 I would offer the workaround of downgrading to Xcode 11
 and the Xcode 11 version of the command line tools, but since you're on
 macOS 11 beta you don't have that option.

 It should be the developers of kermit who fix the problem. Unfortunately
 it looks like the last version of kermit was released in 2011, then the
 project moved to a new home where further development has taken place but
 no new official release has been made. There are testing releases there,
 and it may be that they have already fixed the problems in those testing
 releases. I haven't tried them yet, but for example the first error you
 saw was in ckcmai.c and in their latest testing version of the code
 ckcmai.c contains this post-2011 addition:

 {{{
 #ifdef TIMEH
 /* This had to be added for NetBSD 6.1 - it might have "effects" elsewhere
 */
 /* Tue Sep  3 17:03:42 2013 */
 #include <time.h>
 #endif /* TIMEH */
 }}}

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


More information about the macports-tickets mailing list