[Varnish] #239: Varnish runtime VCL compile hack on solaris 10/opensolaris

Varnish varnish-bugs at projects.linpro.no
Sat May 10 01:07:07 CEST 2008


#239: Varnish runtime VCL compile hack on solaris 10/opensolaris
----------------------+-----------------------------------------------------
 Reporter:  victori   |       Owner:  phk  
     Type:  defect    |      Status:  new  
 Priority:  high      |   Milestone:       
Component:  varnishd  |     Version:  trunk
 Severity:  blocker   |    Keywords:       
----------------------+-----------------------------------------------------
 I am not a C programmer so I just created this hack to fix the vcl runtime
 compile issue.


 mgt_cc_cmd defaults to "exec cc -fpic -shared -Wl,-x -o %o %s"  on solaris

 -Wl,-x flags are invalid, and even if removed it produces an invalid
 linker file.

 My fix was to change the runtime arguments to "exec cc -shared -fpic -c %o
 %s";

 Which seems to work, varnish starts up and runs.

         printf("\nOriginal cmd: %s\n",mgt_cc_cmd);
         char *foo = "exec cc -shared -fpic -c %o %s";
         printf("\nUsing cmd: %s\n",foo);

         for (p = foo, pct = 0; *p; ++p) {.....

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


More information about the varnish-bugs mailing list