b2bua icon indicating copy to clipboard operation
b2bua copied to clipboard

No clock_gettime on macs

Open shayneoAtNorwood opened this issue 8 years ago • 2 comments

Tested on two separate osx machines (Both yosemite), attempts to run b2bua produce the following error;-

$ b2bua_simple -f
('192.168.0.102', 5060)
Traceback (most recent call last):
  File "/usr/local/bin/b2bua_simple", line 9, in <module>
    load_entry_point('sippy==1.1.dev0', 'console_scripts', 'b2bua_simple')()
  File "build/bdist.macosx-10.11-x86_64/egg/sippy/b2bua_simple.py", line 146, in main_func
  File "build/bdist.macosx-10.11-x86_64/egg/sippy/SipTransactionManager.py", line 236, in __init__
  File "build/bdist.macosx-10.11-x86_64/egg/sippy/SipTransactionManager.py", line 124, in __init__
  File "build/bdist.macosx-10.11-x86_64/egg/sippy/Udp_server.py", line 38, in <module>
  File "build/bdist.macosx-10.11-x86_64/egg/sippy/Time/MonoTime.py", line 29, in <module>
  File "build/bdist.macosx-10.11-x86_64/egg/sippy/Time/clock_dtime.py", line 68, in <module>
  File "build/bdist.macosx-10.11-x86_64/egg/sippy/Time/clock_dtime.py", line 66, in find_symbol
Exception: Bah, clock_gettime cannot be found in libs ('c', 'rt') in the paths ('/usr/lib', '/lib')

Looking arround it appears clock_gettime does not exist on the mac, although there are other monotonic hight precision counters around, I'm not sure personally of how to fix it in a portable manner.

shayneoAtNorwood avatar Jun 27 '16 05:06 shayneoAtNorwood

Ah well..

shayneoAtNorwood avatar Sep 02 '16 08:09 shayneoAtNorwood

Hi there, did you get past this point?

sergani avatar Feb 24 '19 23:02 sergani