As an aside, I saw this exact same behavior using 4516, 2.1.2 with the linger patch, and trunk.<br><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 1:47 PM, Jacques <span dir="ltr"><<a href="mailto:whshub@gmail.com">whshub@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">So the fpic solved my problem with getting the -1 warning.  However, I'm getting nothing but 503 responses from varnish.<div>
<br></div><div>I've updated to using this for configure:</div><div><div>VCC_CC="cc -fpic -shared -G -m64 -o %o %s" \</div>
<div>CC=/usr/bin/gcc \</div><div>CFLAGS="-O3 -pthreads -m64 -fomit-frame-pointer"\</div><div class="im"><div>LDFLAGS="-lumem -pthreads" \</div><div>./configure --prefix=/opt/extra</div><div><br></div>
</div><div>The updated VCC_CC line means I don't have to pass it every time I start varnish.</div>
<div><br></div><div>The simplest run:</div><div>/opt/extra/sbin/varnishd -F -a:80 -b <a href="http://87.238.47.204:80" target="_blank">87.238.47.204:80</a></div><div><br></div><div>I always get 503s.  When I check the vmlog, I see backend server not available.  To further test, I upped the timeout values in a basic vcl just in case that was the problem.  No change.</div>

<div><br></div><div>My question is, how can I figure out why I'm getting backend server not available?  If I add a probe, I still see no outbound requests and backends start at healthy and then become sick shortly after (where they stay).</div>

<div><br></div><div>Running tcpdump, I see no communication with the backend server during any of this.</div><div><br></div><div>Where is my error?</div><div><br></div><div>Thanks,<br><font color="#888888">Jacques</font></div>
<div><div></div><div class="h5"><div><br></div><br><div class="gmail_quote">
On Wed, Jul 7, 2010 at 2:31 AM, Jorge Díaz <span dir="ltr"><<a href="mailto:jdzstz@gmail.com" target="_blank">jdzstz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello Jacques,<br><br>I have installed Varnish 2.1.2 in Solaris 10 (not OpenSolaris) and I also had some issues at the begining with GCC compiler, the VCL compilation and some varnish tools.<br><br>With GCC 3.4.3 I had lot of problems compiling and I upgraded to GCC 3.4.6  (see <a href="http://varnish-cache.org/ticket/711" target="_blank">http://varnish-cache.org/ticket/711</a> )  <br>


<br>About ticket 649, LINGER crash  [ <a href="http://varnish-cache.org/ticket/649" target="_blank">http://varnish-cache.org/ticket/649</a> ]  I was able to detect that is a issue of Solaris itself and can be fixed modifing some "asserts" in sources ( <b>S</b><strong>olaris setsockopt returns sometimes EINVAL</strong> ) the fixes are in <a href="http://varnish-cache.org/changeset/4868" target="_blank">http://varnish-cache.org/changeset/4868</a> and I think in future version 2.1.3<br>


<br>I also had some problems with varnishncsa logging (we have to keep a track of all request). Varnishncsa coredumped because a duplicated ReqEnd the solution is in <a href="http://varnish-cache.org/ticket/709" target="_blank">http://varnish-cache.org/ticket/709</a>  and also in <a href="http://varnish-cache.org/ticket/633" target="_blank">http://varnish-cache.org/ticket/633</a><br>


<br>About your problem " <font size="4" face="Calibri"><span style="font-size:15px">ld.so.1: 
varnishd: fatal: relocation error: R_AMD64_PC32: </span></font>"  in google I have found this:<br><br><ul><li><a href="http://opensolaris.org/jive/thread.jspa?messageID=128240" target="_blank">http://opensolaris.org/jive/thread.jspa?messageID=128240</a></li>


<li><a href="http://www.mail-archive.com/tools-discuss@opensolaris.org/msg02012.html" target="_blank">http://www.mail-archive.com/tools-discuss@opensolaris.org/msg02012.html</a></li><li><a href="http://www.mail-archive.com/tools-discuss@opensolaris.org/msg02015.html" target="_blank">http://www.mail-archive.com/tools-discuss@opensolaris.org/msg02015.html</a></li>


</ul><br>They say to compile with -Kpic parameter, try changing <span style="font-size:11pt">cc_command</span><br><br>After changing GCC, and applying solutions of ticket 649, 709, 711 and 633, Varnish is working OK in production. I think version 2.1.3 will fix all problems.<br>


<br><br>Jorge<br><br><br><div class="gmail_quote">2010/7/7 Jacques <span dir="ltr"><<a href="mailto:whshub@gmail.com" target="_blank">whshub@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div><div></div><div>
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" target="_blank">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 style="font-family:Calibri;font-size:15px">SUNWpcre & </span><span style="font-family:Calibri;font-size:15px">SUNWlibm.</span></div>



<div><span style="font-family:Calibri;font-size:15px"><br></span></div><div><span style="font-family:Calibri;font-size:15px">Once installed, I can configure & build correctly with: </span></div>
<div><span style="font-family:Calibri;font-size:15px">----</span></div><div><span style="font-family:Calibri;font-size:15px"><p style="margin:0in;font-family:Calibri;font-size:11pt">
VCC_CC="cc
-Kpic -G -m64 -o %o %s" CC=/usr/bin/gcc CFLAGS="-O3
-L/opt/extra/lib/amd64 \<br>
<span>  </span>-pthreads -m64
-fomit-frame-pointer" LDFLAGS="-lumem -pthreads" ./configure
--prefix=/opt/extra</p>

<p style="margin:0in;font-family:Calibri;font-size:11pt">make && make
install</p></span></div><div><span style="font-family:Calibri;font-size:15px">----</span></div><div><span style="font-family:Calibri;font-size:15px"><br>I start by running:</span></div>
<div><font size="4" face="Calibri"><span style="font-size:15px">#  </span></font><span style="font-family:Calibri;font-size:15px">/opt/extra/sbin/varnishd -d </span><span style="font-family:Calibri;font-size:15px">-a:80 -b <a href="http://87.238.47.204:80" target="_blank">87.238.47.204:80</a></span></div>



<div><font size="4" face="Calibri"><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" target="_blank">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 size="4" face="Calibri"><span style="font-size:15px">Not unexpected, I run:</span></font></div>
<div><font size="4" face="Calibri"><span style="font-size:15px"># /opt/extra/sbin/varnishd -d </span></font><span style="font-family:Calibri;font-size:15px">-a:80 -b <a href="http://87.238.47.204:80" target="_blank">87.238.47.204:80</a> </span><span style="font-family:Calibri;font-size:15px">-p cc_command='gcc -G -m64 -o %o %s'</span></div>



<div><font size="4" face="Calibri"><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" target="_blank">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 style="font-family:Calibri;font-size:15px">So I install the sunstudioexpress compiler:</span></div><div><font size="4" face="Calibri"><span style="font-size:15px"># pkg install sunstudioexpress</span></font></div>



<div><span style="font-family:Calibri;font-size:15px"># /opt/extra/sbin/varnishd -d  -a:80 -b <a href="http://87.238.47.204:80" target="_blank">87.238.47.204:80</a> </span><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" target="_blank">/opt/SunStudioExpress/bin/cc</a> -c -Kpic -m64 -o %o %s"</span></div>



<div><span style="font-family:Calibri;font-size:15px"><br></span></div><div><span style="font-family:Calibri;font-size:15px">>"./vcl.ORk8t3RP.c", line 356: warning: initializer will be sign-extended: -1</span></div>



<div><font size="4" face="Calibri"><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 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 size="4" face="Calibri"><span style="font-size:15px">I saw that the warning was mentioned in a closed bug: <a href="http://varnish-cache.org/ticket/649" target="_blank">http://varnish-cache.org/ticket/649</a></span></font></div>



<div><font size="4" face="Calibri"><span style="font-size:15px"><br></span></font></div><div><font size="4" face="Calibri"><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 size="4" face="Calibri"><span style="font-size:15px"><br></span></font></div><div><font size="4" face="Calibri"><span style="font-size:15px">I've reviewed the following resources and haven't solved my problem:</span></font></div>



<div><font size="4" face="Calibri"><span style="font-size:15px"><div><a href="http://blogs.everycity.co.uk/alasdair/2009/05/64bit-varnish-on-solaris/" target="_blank">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/" target="_blank">http://letsgetdugg.com/2009/12/04/varnish-on-solaris/</a></div><div><a href="http://src.opensolaris.org/source/xref/webstack/varnish/" target="_blank">http://src.opensolaris.org/source/xref/webstack/varnish/</a></div>



</span></font></div><div><font size="4" face="Calibri"><span style="font-size:15px"><br></span></font></div><div><font size="4" face="Calibri"><span style="font-size:15px">Thanks for any help,</span></font></div>
<div><span style="font-family:Calibri;font-size:15px">Jacques</span></div><div><font size="4" face="Calibri"><span style="font-size:15px"><br>
</span></font></div><div><font size="4" face="Calibri"><span style="font-size:15px">Compiler Info:</span></font></div><div><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 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 size="4" face="Calibri"><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 size="4" face="Calibri"><span style="font-size:15px"><br></span></font></div>
<br></div></div>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br></blockquote></div><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br>