<div dir="ltr">Hi, <br><div class="gmail_quote"><div dir="ltr"><font size="2">I compiled varnish-2.0.1 under SunStudio 12 on Solaris 10u5 in 64bit. <br></font><font size="2"><br>1. LDFLAGS=-m64 CFLAGS=-m64 ./configure --prefix=/opt/varnish-2.0.1<br>

2. make && make install<br><br></font><font size="2">When I try to run varnishd I get this error:<br></font><font size="3"><font size="2">mgt_run_cc(): failed to load compiled VCL program:                                                                     <br>

  ld.so.1: varnishd: fatal: ./<a href="http://vcl.ORk8t3RP.so" target="_blank">vcl.ORk8t3RP.so</a>: wrong ELF class: ELFCLASS32                                             <br>VCL compilation failed.<br><br>I modified the config.h file after ./configure process :<br>

<br>from:<br><br>/* C compiler command line for VCL code */<br>#define VCC_CC "cc -Kpic -G -o %o %s"<br><br>to:<br></font><br></font><font size="3"><font size="2">/* C compiler command line for VCL code */<br>
#define VCC_CC "cc -m64 -Kpic -G -o %o %s"<br><br>After this, varnishd starts without any errors.<br><br><br></font></font></div>
</div><br></div>