Polygraph compilation error with gcc 4.8.2

Dale Markowitz <[email protected]> Mon, 7 Jul 2014 16:04:57 -0400
Newsgroups gmane.comp.web.web-polygraph.user
Message-ID <CAHO67ygx-_u36xbRLFk3FW979bRP_8zOd7VkBfuC_9aw5foJOA@mail.gmail.com>
--===============1215208395==
Content-Type: multipart/alternative; boundary=047d7ba97eb24096d804fd9ffd52

--047d7ba97eb24096d804fd9ffd52
Content-Type: text/plain; charset=ISO-8859-1

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

--047d7ba97eb24096d804fd9ffd52
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All,&nbsp;
<div>&nbsp; &nbsp;I&#39;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 -fpermiss=
ive -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 &lsquo;virtual void StatPhase::noteXa=
ctEvent(BcastChannel*, const Xaction*)&rsquo;:</div><div>StatPhase.cc:416:2=
9: error: redeclaration of &lsquo;CompoundXactInfo&amp; compound&rsquo;</di=
v><div>&nbsp; &nbsp; static CompoundXactInfo &amp;compound =3D *CompoundXac=
tInfo::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: &=
lsquo;const CompoundXactInfo* const compound&rsquo; previously declared her=
e</div><div>&nbsp; &nbsp;if (const CompoundXactInfo* const compound =3D 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>m=
ake[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&#39;m not sure. Any=
 thoughts?&nbsp;</div>
<div><br></div><div>Thanks!</div><div>&nbsp; &nbsp;Dale</div></div>

--047d7ba97eb24096d804fd9ffd52--

--===============1215208395==
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

--===============1215208395==--