Re: Polygraph compilation error with gcc 4.8.2

Pavel Kazlenka <[email protected]> Tue, 08 Jul 2014 15:25:31 +0300
Newsgroups gmane.comp.web.web-polygraph.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============0233124772==
Content-Type: multipart/alternative;
	boundary="------------020201020403040109010907"

This is a multi-part message in MIME format.
--------------020201020403040109010907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Dale,

You're completely right. Old polygraph versions can not be built by 
modern gcc. IIRC, gcc of version 4.5 is definitely able to build 
polygraph-4.3.2 (and gcc 4.6 probably). This is a known issue. To work 
the one around, you can:

a) find or set up machine/virtual machine with some old gcc version 
(e.g. ubuntu 12.04 LTS or Centos6), build polygraph there and move 
binaries to your main machine;
b) wait until polygraph site will be updated and new polygraph version 
become available for download;


Best wishes,
Pavel

On 07/07/2014 11:04 PM, Dale Markowitz wrote:
> Hi All,
>    I'm trying to install Polygraph 4.3.2 on a Linux box running Fedora 
> 19 with gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC).  The 
> compilation fails with the error:
>
> g++ -DHAVE_CONFIG_H   -I../.. -I../../src -I../.. -I../../src 
> -fpermissive -I/usr/include  -g -O1 -Wall -Wwrite-strings 
> -Woverloaded-virtual -MT StatPhase.o -MD -MP -MF .deps/StatPhase.Tpo 
> -c -o StatPhase.o StatPhase.cc
> StatPhase.cc: In member function 'virtual void 
> StatPhase::noteXactEvent(BcastChannel*, const Xaction*)':
> StatPhase.cc:416:29: error: redeclaration of 'CompoundXactInfo& compound'
>     static CompoundXactInfo &compound = *CompoundXactInfo::Create();
>                              ^
> StatPhase.cc:390:37: error: 'const CompoundXactInfo* const compound' 
> previously declared here
>    if (const CompoundXactInfo* const compound = x->partOf()) {
>                                      ^
> make[3]: *** [StatPhase.o] Error 1
>
> This seems like it might have to do with my version of gcc, but I'm 
> not sure. Any thoughts?
>
> Thanks!
>    Dale
>
>
> _______________________________________________
> Users mailing list
> Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]
> http://www.web-polygraph.org/mailman/listinfo/users


--------------020201020403040109010907
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Dale,<br>
      <br>
      You're completely right. Old polygraph versions can not be built
      by modern gcc. IIRC, gcc of version 4.5 is definitely able to
      build polygraph-4.3.2 (and gcc 4.6 probably). This is a known
      issue. To work the one around, you can:<br>
      <br>
      a) find or set up machine/virtual machine with some old gcc
      version (e.g. ubuntu 12.04 LTS or Centos6), build polygraph there
      and move binaries to your main machine;<br>
      b) wait until polygraph site will be updated and new polygraph
      version become available for download;<br>
      <br>
      <br>
      Best wishes,<br>
      Pavel<br>
      <br>
      On 07/07/2014 11:04 PM, Dale Markowitz wrote:<br>
    </div>
    <blockquote
cite="mid:CAHO67ygx-_u36xbRLFk3FW979bRP_8zOd7VkBfuC_9aw5foJOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"
      type="cite">
      <div dir="ltr">Hi All,&nbsp;
        <div>&nbsp; &nbsp;I'm trying to install Polygraph 4.3.2 on a Linux box
          running Fedora 19 with gcc version 4.8.2 20131212 (Red Hat
          4.8.2-7) (GCC). &nbsp;The compilation fails with the error:</div>
        <div><br>
        </div>
        <div>
          <div>g++ -DHAVE_CONFIG_H &nbsp; -I../.. -I../../src -I../..
            -I../../src -fpermissive -I/usr/include &nbsp;-g -O1 -Wall
            -Wwrite-strings -Woverloaded-virtual -MT StatPhase.o -MD -MP
            -MF .deps/StatPhase.Tpo -c -o StatPhase.o StatPhase.cc</div>
          <div>StatPhase.cc: In member function &#8216;virtual void
            StatPhase::noteXactEvent(BcastChannel*, const Xaction*)&#8217;:</div>
          <div>StatPhase.cc:416:29: error: redeclaration of
            &#8216;CompoundXactInfo&amp; compound&#8217;</div>
          <div>&nbsp; &nbsp; static CompoundXactInfo &amp;compound =
            *CompoundXactInfo::Create();</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div>
          <div>StatPhase.cc:390:37: error: &#8216;const CompoundXactInfo*
            const compound&#8217; previously declared here</div>
          <div>&nbsp; &nbsp;if (const CompoundXactInfo* const compound =
            x-&gt;partOf()) {</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div>
          <div>make[3]: *** [StatPhase.o] Error 1</div>
        </div>
        <div><br>
        </div>
        <div>This seems like it might have to do with my version of gcc,
          but I'm not sure. Any thoughts?&nbsp;</div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <div>&nbsp; &nbsp;Dale</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]">Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]</a>
<a class="moz-txt-link-freetext" href="http://www.web-polygraph.org/mailman/listinfo/users">http://www.web-polygraph.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------020201020403040109010907--

--===============0233124772==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Users mailing list
Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]
http://www.web-polygraph.org/mailman/listinfo/users

--===============0233124772==--