[Varnish] #1022: Mac OS X compilation error

Varnish varnish-bugs at varnish-cache.org
Mon Sep 19 12:08:03 CEST 2011


#1022: Mac OS X compilation error
------------------------------+---------------------------------------------
  Reporter:  191919           |        Type:  defect 
    Status:  reopened         |    Priority:  high   
 Milestone:  Varnish 3.0 dev  |   Component:  build  
   Version:  trunk            |    Severity:  blocker
Resolution:                   |    Keywords:         
------------------------------+---------------------------------------------
Changes (by 191919):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Mac OS X doesn't have clock_gettime, not just CLOCK_MONOTONIC.[[BR]]
 [[BR]]

 {{{
 cache_pool.c: In function 'pool_herder':
 cache_pool.c:430: warning: implicit declaration of function
 'clock_gettime'
 cache_pool.c:430: error: 'CLOCK_REALTIME' undeclared (first use in this
 function)
 cache_pool.c:430: error: (Each undeclared identifier is reported only once
 cache_pool.c:430: error: for each function it appears in.)
 cache_pool.c: In function 'pool_mkpool':
 cache_pool.c:508: warning: implicit declaration of function
 'pthread_condattr_setclock'
 cache_pool.c:508: error: 'CLOCK_REALTIME' undeclared (first use in this
 function)
 cache_pool.c: At top level:
 cache_pool.c:563: fatal error: opening dependency file .deps/varnishd-
 cache_pool.Tpo: Permission denied
 compilation terminated.
 make[3]: *** [varnishd-cache_pool.o] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1022#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list