[MacPorts] #71517: kermit @9.0.302: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]

MacPorts noreply at macports.org
Fri May 23 02:51:14 UTC 2025


#71517: kermit @9.0.302: error: type specifier missing, defaults to 'int'; ISO C99
and later do not support implicit int [-Wimplicit-int]
-----------------------+---------------------
  Reporter:  SaintBol  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.10.5
Resolution:            |   Keywords:  sequoia
      Port:  kermit    |
-----------------------+---------------------

Comment (by Parakleta):

 It is pretty clear that the `ckwart.c` file's conditional defines are
 broken (looks like a patch merge error).  Looking from lines 496:530 it is
 clear that no return type can be specified if STRATUS is defined, but then
 the `ifdef __GNUC__` test which should give us the correct value is behind
 a `ifdef STRATUS` (thus putting us in the impossible condition that
 STRATUS must both be defined and not defined at the same time).

 If we did somehow get into that clause we would actually end up with `int
 int main(argc,argv)` which is also clearly wrong.

 The best option would be to update to a later version.  The last "release"
 was 14 years ago despite continuous development since then of both the v9
 and v10 versions - I think the alpha/beta flags are being used more as a
 legal disclaimer than an actual indication of quality.  This particular
 bug was fixed in C-Kermit 9.0.305 Alpha.02 19 September 2020.

 If the decision is not to update then at the very least, building on
 DarwinNE's suggestion, the build arguments/environment should have
 `KFLAGS=-DMAINTYPE=int` set in the build process.  This would be done by
 adding the following line to the Portfile:

 `build.env-append KFLAGS=-DMAINTYPE=int`

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


More information about the macports-tickets mailing list