[MacPorts] #61663: procmail @3.22: error: implicit declaration of function 'killchildren' is invalid in C99

MacPorts noreply at macports.org
Sat Feb 6 03:04:23 UTC 2021


#61663: procmail @3.22: error: implicit declaration of function 'killchildren' is
invalid in C99
-----------------------+-----------------------------
  Reporter:  pwosel    |      Owner:  blair
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.4
Resolution:  fixed     |   Keywords:  bigsur catalina
      Port:  procmail  |
-----------------------+-----------------------------

Comment (by blair):

 Thanks for that background. Is there a good link to read more?

 For procmail, my initial attempt to get this working was to update
 `src/autoconf` and put in the necessary includes and definitions. However,
 this got to be a bit much and after some struggling, I went the `-Wno-
 error=implicit-function-declaration` way.

 One reason to do this was that `src/autoconf` wants to see which functions
 the OS provides and it does this by compiling the .o file even if the
 system doesn't have the function and then check the link step for a
 missing symbol by grepping the stdout/stderrr for the function name. I
 found it odd to add a symbol declaration when the OS doesn't have the
 function.

 Worse, some of the time the `src/autoconf` doesn't run the resulting
 binary and sometimes it does, so one could use `-Wno-error=implicit-
 function-declaration` sometimes and other times want it to avoid runtime
 issues.

 This really is the worst configuration system :(

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


More information about the macports-tickets mailing list