Hello,<div><br></div><div>I&#39;m trying to setup Solaris on OpenSolaris b134.  I&#39;m doing a setup in a brand new zone.  I have reviewed the instructions on <a href="http://www.varnish-cache.org/wiki/Installation#OpenSolaris">http://www.varnish-cache.org/wiki/Installation#OpenSolaris</a> and am having problems.</div>
<div><br></div><div>With a brand new zone, I&#39;ve found that in addition to installing the list of packages provided, I also need to install: <span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">SUNWpcre &amp; </span><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">SUNWlibm.</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">Once installed, I can configure &amp; build correctly with: </span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">----</span></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; "><p style="margin:0in;font-family:Calibri;font-size:11.0pt">
VCC_CC=&quot;cc
-Kpic -G -m64 -o %o %s&quot; CC=/usr/bin/gcc CFLAGS=&quot;-O3
-L/opt/extra/lib/amd64 \<br>
<span style="mso-spacerun:yes">  </span>-pthreads -m64
-fomit-frame-pointer&quot; LDFLAGS=&quot;-lumem -pthreads&quot; ./configure
--prefix=/opt/extra</p>

<p style="margin:0in;font-family:Calibri;font-size:11.0pt">make &amp;&amp; make
install</p></span></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">----</span></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; "><br>I start by running:</span></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;">#  </span></font><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">/opt/extra/sbin/varnishd -d </span><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">-a:80 -b <a href="http://87.238.47.204:80">87.238.47.204:80</a></span></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"><div>&gt;Compiled VCL program failed to load:</div><div>&gt;  ld.so.1: varnishd: fatal: relocation error: R_AMD64_PC32: file ./<a href="http://vcl.ORk8t3RP.so">vcl.ORk8t3RP.so</a>: symbol main: value 0x2800dcfbd44 does not fit</div>
<div>&gt;VCL compilation failed</div><div><br></div></span></font></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px; ">Not unexpected, I run:</span></font></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"># /opt/extra/sbin/varnishd -d </span></font><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">-a:80 -b <a href="http://87.238.47.204:80">87.238.47.204:80</a> </span><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">-p cc_command=&#39;gcc -G -m64 -o %o %s&#39;</span></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"><div>&gt;Compiled VCL program failed to load:</div><div>&gt;  ld.so.1: varnishd: fatal: relocation error: R_AMD64_PC32: file ./<a href="http://vcl.ORk8t3RP.so">vcl.ORk8t3RP.so</a>: symbol main: value 0x2800dcdbd44 does not fit</div>
<div>&gt;VCL compilation failed</div><div><br></div></span></font></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">So I install the sunstudioexpress compiler:</span></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px; "># pkg install sunstudioexpress</span></font></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; "># /opt/extra/sbin/varnishd -d  -a:80 -b <a href="http://87.238.47.204:80">87.238.47.204:80</a> </span><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">-p cc_command=&quot;<a href="http://src.opensolaris.org/source/s?path=/opt/SunStudioExpress/bin/cc&amp;project=/webstack">/opt/SunStudioExpress/bin/cc</a> -c -Kpic -m64 -o %o %s&quot;</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">&gt;&quot;./vcl.ORk8t3RP.c&quot;, line 356: warning: initializer will be sign-extended: -1</span></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px; "><div>&gt;storage_file: filename: ./varnish.BAaWXR size 461096 MB.</div><div>&gt;Using old SHMFILE</div><div>
&gt;Varnish on -sfile,-hcritbit</div><div>&gt;200 193</div><div>&gt;-----------------------------</div><div>&gt;Varnish HTTP accelerator CLI.</div><div>&gt;-----------------------------</div><div>&gt;Type &#39;help&#39; for command list.</div>
<div>&gt;Type &#39;quit&#39; to close CLI session.</div><div>&gt;Type &#39;start&#39; to launch worker process.</div><div><br></div></span></font></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">Varnish appears to be running.  However, I  getting 503s when I try to Varnish. </span></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;">I saw that the warning was mentioned in a closed bug: <a href="http://varnish-cache.org/ticket/649">http://varnish-cache.org/ticket/649</a></span></font></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br></span></font></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;">So, can someone giving me some pointers?  I really would like to use just the gcc compiler and not have to load all the SunStudioExpress stuff.  But either way, I just want to make it work.</span></font></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br></span></font></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;">I&#39;ve reviewed the following resources and haven&#39;t solved my problem:</span></font></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"><div><a href="http://blogs.everycity.co.uk/alasdair/2009/05/64bit-varnish-on-solaris/">http://blogs.everycity.co.uk/alasdair/2009/05/64bit-varnish-on-solaris/</a> </div>
<div><a href="http://letsgetdugg.com/2009/12/04/varnish-on-solaris/">http://letsgetdugg.com/2009/12/04/varnish-on-solaris/</a></div><div><a href="http://src.opensolaris.org/source/xref/webstack/varnish/">http://src.opensolaris.org/source/xref/webstack/varnish/</a></div>
</span></font></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px; "><br></span></font></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px; ">Thanks for any help,</span></font></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">Jacques</span></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br>
</span></font></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;">Compiler Info:</span></font></div><div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">[/usr/bin/gcc -v] gcc version 3.4.3 (csl-sol210-3_4-20050802)</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: 15px; ">[/usr/gnu/bin/cc] gcc version 3.4.3 (csl-sol210-3_4-20050802)  [symlinked to gcc]</span></div><div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;">[/opt/SunStudioExpress/bin/cc -V] cc: Sun Ceres C 5.10 SunOS_i386 2009/03/06</span></font></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px; "><br></span></font></div>