[MacPorts] #61425: kermit @9.0.302: error: implicit declaration of function 'time' is invalid in C99

MacPorts noreply at macports.org
Wed Dec 2 06:56:24 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 pinxue):

 Compiling issue is easy to patch:

 {{{
 ckupty.c and ckutio.c :
 #include <util.h>

 ckuusx.c :
 #include <curses.h>
 #include <term.h>

 ckcmai.c :
 #include <time.h>
 }}}

 And then make -j8 macosx  && make install just works, but port install
 failed weirdly:


 {{{
 /usr/bin/clang -arch x86_64  -o wermit \
                 ckcmai.o ckclib.o ckutio.o ckufio.o \
                 ckcfns.o ckcfn2.o ckcfn3.o ckuxla.o \
                 ckcpro.o ckucmd.o ckuus2.o ckuus3.o \
                 ckuus4.o ckuus5.o ckuus6.o ckuus7.o \
                 ckuusx.o ckuusy.o ckuusr.o ckucns.o \
                 ckudia.o ckuscr.o ckcnet.o ckusig.o \
                 ckctel.o ckcuni.o ckupty.o ckcftp.o \
                 ckuath.o ck_crp.o ck_ssl.o -lncurses -lresolv

 ld: can't write output file: wermit for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make[1]: *** [xermit] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_comms_kermit/kermit/work/cku302'
 }}}

 After port install failure, I run the linking command exactly same in
 source build dir and it still work, faint!

 PS, running with Xcode 12 on macOS Big Sur v11.0.1,  other 471 ports
 restored just fine.

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


More information about the macports-tickets mailing list