[MacPorts] #60779: et @6.0.5: error: call to 'clock_gettime' is ambiguous

MacPorts noreply at macports.org
Sat Jul 4 05:19:21 UTC 2020


#60779: et @6.0.5: error: call to 'clock_gettime' is ambiguous
-------------------------+----------------------
 Reporter:  ryandesign   |      Owner:  l2dy
     Type:  defect       |     Status:  assigned
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.6.2
 Keywords:  snowleopard  |       Port:  et
-------------------------+----------------------
 et failed to build on 10.6 because it used getline. So I added the
 legacysupport portgroup. That fixed the getline problem, but now it still
 [https://build.macports.org/builders/ports-10.6_i386-builder/builds/14560/steps
 /install-port/logs/stdio fails to build] because apparently et has a
 built-in compatibility version of clock_gettime but it is different from
 the one provided by legacysupport:

 {{{
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_et/et/work/EternalTerminal-6.0.5/src/base/sole.hpp:457:3:
 error: call to 'clock_gettime' is ambiguous
   clock_gettime(0 /*CLOCK_REALTIME*/, &tp);
   ^~~~~~~~~~~~~
 /opt/local/include/LegacySupport/time.h:39:12: note: candidate function
 extern int clock_gettime( clockid_t clk_id, struct timespec *ts );
            ^
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_et/et/work/EternalTerminal-6.0.5/src/base/sole.hpp:442:16:
 note: candidate function
     inline int clock_gettime(int /*clk_id*/, struct timespec *t) {
                ^
 }}}

 Ken, do you know what the best way is to deal with this?

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


More information about the macports-tickets mailing list