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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

macports-4
#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
Reply | Threaded
Open this post in threaded view
|

Re: #60779: et @6.0.5: error: call to 'clock_gettime' is ambiguous

macports-4
#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
Resolution:              |   Keywords:  snowleopard
      Port:  et          |
-------------------------+-------------------------

Comment (by kencu):

 We haven't come across this much yet.

 It would occasionally be desirable to be able to choose just the parts of
 legacysupport we want to use by manipulating #defines, for example
 [https://github.com/macports/macports-legacy-
 support/blob/3a9a65d54764eb0aefcb4af23f19907b408dffd7/include/MacportsLegacySupport.h#L41
 this one]. We haven't really crossed that bridge to make that work yet
 though.

 I will have to see if the easiest thing would be to patch in getline, or
 disable the internal compat function.

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