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">http://varnish-cache.org/ticket/711</a> ) <br>
<br>About ticket 649, LINGER crash [ <a href="http://varnish-cache.org/ticket/649">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">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">http://varnish-cache.org/ticket/709</a> and also in <a href="http://varnish-cache.org/ticket/633">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">http://opensolaris.org/jive/thread.jspa?messageID=128240</a></li>
<li><a href="http://www.mail-archive.com/tools-discuss@opensolaris.org/msg02012.html">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">http://www.mail-archive.com/tools-discuss@opensolaris.org/msg02015.html</a></li>
</ul><br>They say to compile with -Kpic parameter, try changing <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///D:%5CUsers%5CJorge%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///D:%5CUsers%5CJorge%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///D:%5CUsers%5CJorge%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><span style="font-size: 11pt; font-family: "Calibri","sans-serif";">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">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;">
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>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">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>