[MacPorts] #46479: libgcc @4.9.2_1: error: implicit declaration of function 'clock_gettime'
MacPorts
noreply at macports.org
Thu Jan 8 06:56:31 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 |
------------------------------+-------------------
Comment (by Andrew_Rogers@…):
Replying to [comment:5 ryandesign@…]:
> 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.
You are correct! :) I had both librt.so and lbrt.dylib in /usr/lib. I
forgot, but I was using them to get another project to build but I guess I
did not realize the consequences it would have.
Thanks for all the help.
--
Ticket URL: <https://trac.macports.org/ticket/46479#comment:8>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list