[Varnish] #113: Problem compiling on mac os x 10.4.9.

Varnish varnish-bugs at projects.linpro.no
Mon Jun 11 16:27:30 CEST 2007


#113: Problem compiling on mac os x 10.4.9.
--------------------+-------------------------------------------------------
 Reporter:  oh      |       Owner:  des  
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  build   |     Version:  1.0.4
 Severity:  normal  |    Keywords:       
--------------------+-------------------------------------------------------
 Following the mac os x installation instructions here:
 http://varnish.projects.linpro.no/wiki/Installation I encountered an error
 while compiling:

 {{{
 /bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
 -I../.. -I../../include   -include config.h -g -O2 -MT libvarnish_la-
 vpf.lo -MD -MP -MF .deps/libvarnish_la-vpf.Tpo -c -o libvarnish_la-vpf.lo
 `test -f 'vpf.c' || echo './'`vpf.c
  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -include config.h -g -O2
 -MT libvarnish_la-vpf.lo -MD -MP -MF .deps/libvarnish_la-vpf.Tpo -c vpf.c
 -fno-common -DPIC -o .libs/libvarnish_la-vpf.o
 vpf.c:53: error: parse error before ‘__dev_t’
 vpf.c:53: warning: no semicolon at end of struct or union
 vpf.c:55: error: parse error before ‘}’ token
 vpf.c: In function ‘vpf_verify’:
 vpf.c:64: error: dereferencing pointer to incomplete type
 vpf.c:69: error: dereferencing pointer to incomplete type
 vpf.c:71: error: dereferencing pointer to incomplete type
 vpf.c:71: error: dereferencing pointer to incomplete type
 vpf.c: In function ‘vpf_open’:
 vpf.c:107: error: dereferencing pointer to incomplete type
 vpf.c:117: error: dereferencing pointer to incomplete type
 vpf.c:117: error: dereferencing pointer to incomplete type
 vpf.c:119: error: dereferencing pointer to incomplete type
 vpf.c:131: error: dereferencing pointer to incomplete type
 vpf.c:135: error: dereferencing pointer to incomplete type
 vpf.c:148: error: dereferencing pointer to incomplete type
 vpf.c:155: error: dereferencing pointer to incomplete type
 vpf.c:156: error: dereferencing pointer to incomplete type
 vpf.c:157: error: dereferencing pointer to incomplete type
 vpf.c: In function ‘vpf_write’:
 vpf.c:179: error: dereferencing pointer to incomplete type
 vpf.c: In function ‘vpf_close’:
 vpf.c:213: error: dereferencing pointer to incomplete type
 vpf.c: In function ‘_vpf_remove’:
 vpf.c:234: error: dereferencing pointer to incomplete type
 vpf.c:236: error: dereferencing pointer to incomplete type
 vpf.c:240: error: dereferencing pointer to incomplete type
 vpf.c:247: error: dereferencing pointer to incomplete type
 make[3]: *** [libvarnish_la-vpf.lo] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2
 }}}

 This also happens when trying to build varnish from trunk (rev: 1508).

 The below patch seems to fix the problem:
 {{{
 Index: lib/libvarnish/vpf.c
 ===================================================================
 --- lib/libvarnish/vpf.c        (revision 1508)
 +++ lib/libvarnish/vpf.c        (working copy)
 @@ -50,7 +50,7 @@
  struct pidfh {
         int     pf_fd;
         char    pf_path[MAXPATHLEN + 1];
 -       __dev_t pf_dev;
 +       dev_t   pf_dev;
         ino_t   pf_ino;
  };
 }}}

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


More information about the varnish-bugs mailing list