[Varnish] #1022: Mac OS X compilation error
Varnish
varnish-bugs at varnish-cache.org
Mon Sep 19 09:43:02 CEST 2011
#1022: Mac OS X compilation error
-----------------------------+----------------------------------------------
Reporter: 191919 | Type: defect
Status: new | Priority: high
Milestone: Varnish 3.0 dev | Component: build
Version: trunk | Severity: blocker
Keywords: |
-----------------------------+----------------------------------------------
Mac OS X does not implement clock_gettime.[[BR]]
[[BR]]
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include
-I../../lib/libvgz -I../../include -I/usr/local/include
-DVARNISH_STATE_DIR='"/usr/local/var/varnish"'
-DVARNISH_VMOD_DIR='"/usr/local/lib/varnish/vmods"'
-DVARNISH_VCL_DIR='"/usr/local/etc/varnish"' -g -O2 -D_THREAD_SAFE
-Wextra -Wno-missing-field-initializers -Wno-sign-compare -MT varnishd-
cache_pool.o -MD -MP -MF .deps/varnishd-cache_pool.Tpo -c -o varnishd-
cache_pool.o `test -f 'cache_pool.c' || echo './'`cache_pool.c[[BR]]
[[BR]]
cache_pool.c: In function 'pool_herder':[[BR]]
cache_pool.c:426: warning: implicit declaration of function
'clock_gettime'[[BR]]
cache_pool.c:426: error: 'CLOCK_MONOTONIC' undeclared (first use in this
function)[[BR]]
cache_pool.c:426: error: (Each undeclared identifier is reported only
once[[BR]]
cache_pool.c:426: error: for each function it appears in.)[[BR]]
cache_pool.c: In function 'pool_mkpool':[[BR]]
cache_pool.c:503: warning: implicit declaration of function
'pthread_condattr_setclock'[[BR]]
cache_pool.c:503: error: 'CLOCK_MONOTONIC' undeclared (first use in this
function)[[BR]]
cache_pool.c: At top level:[[BR]]
cache_pool.c:557: fatal error: opening dependency file .deps/varnishd-
cache_pool.Tpo: Permission denied[[BR]]
compilation terminated.[[BR]]
make[3]: *** [varnishd-cache_pool.o] Error 1[[BR]]
make[2]: *** [all-recursive] Error 1[[BR]]
make[1]: *** [all-recursive] Error 1[[BR]]
make: *** [all] Error 2[[BR]]
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1022>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list