[Varnish] #305: 2.0 beta1 cannot be built on MacOSX

Varnish varnish-bugs at projects.linpro.no
Mon Sep 1 17:44:26 CEST 2008


#305: 2.0 beta1 cannot be built on MacOSX
---------------------+------------------------------------------------------
 Reporter:  191919   |       Owner:  des                      
     Type:  defect   |      Status:  new                      
 Priority:  normal   |   Milestone:  Varnish 2.0 code complete
Component:  build    |     Version:  trunk                    
 Severity:  blocker  |    Keywords:                           
---------------------+------------------------------------------------------
 $ ./configure
 ...
 $ make
 ...
 gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include
 -DVARNISH_STATE_DIR='"/usr/local/var/varnish"' -g -O2 -MT varnishd-
 cache_vrt_acl.o -MD -MP -MF .deps/varnishd-cache_vrt_acl.Tpo -c -o
 varnishd-cache_vrt_acl.o `test -f 'cache_vrt_acl.c' || echo
 './'`cache_vrt_acl.c
 In file included from cache.h:52,
                  from cache_vrt_acl.c:39:
 heritage.h:74: error: syntax error before 'uid_t'
 heritage.h:74: warning: no semicolon at end of struct or union
 heritage.h:181: error: syntax error before '}' token
 make[3]: *** [varnishd-cache_vrt_acl.o] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

 A proposed patch:

 --- heritage.h.orig     2008-09-01 23:42:49.000000000 +0800
 +++ heritage.h  2008-09-01 23:37:08.000000000 +0800
 @@ -32,7 +32,7 @@
   */

  #include <pthread.h>
 -
 +#include <unistd.h>
  #include "vqueue.h"

  struct listen_sock {

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/305>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list