[MacPorts] #46479: libgcc @4.9.2_1: error: implicit declaration of function 'clock_gettime'

MacPorts noreply at macports.org
Wed Jan 7 21:21:11 PST 2015


#46479: libgcc @4.9.2_1: error: implicit declaration of function 'clock_gettime'
------------------------------+-------------------
  Reporter:  Andrew_Rogers@…  |      Owner:  mww@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.3.3
Resolution:                   |   Keywords:
      Port:  libgcc           |
------------------------------+-------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)


Comment:

 Ok, that's fine.

 I see in your log:

 {{{
 :info:build checking for clock_gettime... no
 :info:build checking for strtoull... yes
 :info:build checking for clock_gettime in -lrt... yes
 }}}

 My understanding is that `clock_gettime` is not available on OS X, so it's
 strange that it was found on your system, in a library called librt, which
 also does not exist on OS X.

 My guess is that you have installed a copy of librt.a or librt.so or
 librt.dylib either in /usr/lib or in /usr/local/lib, and that removing
 that library, and cleaning libgcc and trying again, would fix the problem.

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


More information about the macports-tickets mailing list