[Varnish] #333: VCL compilation commandline doesn't take account LDFLAGS

Varnish varnish-bugs at projects.linpro.no
Fri Sep 26 10:19:58 CEST 2008


#333: VCL compilation commandline doesn't take account LDFLAGS
----------------------+-----------------------------------------------------
 Reporter:  191919    |       Owner:  phk                      
     Type:  defect    |      Status:  new                      
 Priority:  normal    |   Milestone:  Varnish 2.0 code complete
Component:  varnishd  |     Version:  trunk                    
 Severity:  normal    |    Keywords:                           
----------------------+-----------------------------------------------------
 In MacOSX, I build varnish with:

 ./configure CFLAGS='-m64 -fast' LDFLAGS='-m64 -fast'

 but when I run varnished:

 /usr/local/sbin# ./varnishd -a :80 -f /etc/vcl.conf -s file,/cache1,10M
 storage_file: filename: /cache1 size 10 MB.
 mgt_run_cc(): failed to load compiled VCL program:
   dlopen(./vcl.1P9zoqAU.so, 6): no suitable image found.  Did find:
         ./vcl.1P9zoqAU.so: mach-o, but wrong architecture
 VCL compilation failed

 I modified config.h to add the LDFLAGS:

 /* C compiler command line for VCL code */
 #define VCC_CC "exec cc -fast -m64 -dynamiclib
 -Wl,-undefined,dynamic_lookup -o %o %s"

 then re-compile, this time varnishd started ok:

 /usr/local/sbin# ./varnishd -a :80 -f /etc/vcl.conf -s file,/cache1,10M
 storage_file: filename: /cache1 size 10 MB.
 Using old SHMFILE

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


More information about the varnish-bugs mailing list