Hello,<div><br></div><div>I'm trying to setup Solaris on OpenSolaris b134.  I'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'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 & </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 & 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="cc
-Kpic -G -m64 -o %o %s" CC=/usr/bin/gcc CFLAGS="-O3
-L/opt/extra/lib/amd64 \<br>
<span style="mso-spacerun:yes">  </span>-pthreads -m64
-fomit-frame-pointer" LDFLAGS="-lumem -pthreads" ./configure
--prefix=/opt/extra</p>

<p style="margin:0in;font-family:Calibri;font-size:11.0pt">make && 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>>Compiled VCL program failed to load:</div><div>>  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>>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='gcc -G -m64 -o %o %s'</span></div>
<div><font class="Apple-style-span" face="Calibri" size="4"><span class="Apple-style-span" style="font-size: 15px;"><div>>Compiled VCL program failed to load:</div><div>>  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>>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="<a href="http://src.opensolaris.org/source/s?path=/opt/SunStudioExpress/bin/cc&project=/webstack">/opt/SunStudioExpress/bin/cc</a> -c -Kpic -m64 -o %o %s"</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; ">>"./vcl.ORk8t3RP.c", 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>>storage_file: filename: ./varnish.BAaWXR size 461096 MB.</div><div>>Using old SHMFILE</div><div>
>Varnish on -sfile,-hcritbit</div><div>>200 193</div><div>>-----------------------------</div><div>>Varnish HTTP accelerator CLI.</div><div>>-----------------------------</div><div>>Type 'help' for command list.</div>
<div>>Type 'quit' to close CLI session.</div><div>>Type 'start' 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've reviewed the following resources and haven'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>