<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>240470</bug_id>
          
          <creation_ts>2008-10-08 09:14 0000</creation_ts>
          <short_desc>dev-libs/boost-1.35.0-r2 uses sync_fetch_and_add on all architectures but it only implemented for x86</short_desc>
          <delta_ts>2009-05-13 19:22:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Development</component>
          <version>unspecified</version>
          <rep_platform>Sparc</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>229427</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>erm67@yahoo.it</reporter>
          <assigned_to>dev-zero@gentoo.org</assigned_to>
          <cc>cpp@gentoo.org</cc>
    
    <cc>jer@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>erm67@yahoo.it</who>
            <bug_when>2008-10-08 09:14:36 0000</bug_when>
            <thetext>boost/detail/atomic_count_sync.hpp uses sync_fetch_and_add on all architecture while it is only defined foe x86

Reproducible: Always

Steps to Reproduce:
1.emerge gnash under gentoo sparc, linking fails because sync_fetch_and_add is not defined.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>erm67@yahoo.it</who>
            <bug_when>2008-10-08 09:16:04 0000</bug_when>
            <thetext>Created an attachment (id=167588)
10_all_1.35.0-arm_hppa_sparc-sync_fetch_and_add.patch

This patch fixes the problem and gnash compiles correctly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>erm67@yahoo.it</who>
            <bug_when>2008-10-08 12:11:36 0000</bug_when>
            <thetext>The bug is already fixed almost in the same way in the svn version of boost.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-10-08 12:57:19 0000</bug_when>
            <thetext>Looks like bug #230529 which points to [1].

[1] http://svn.boost.org/trac/boost/changeset/44440</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>erm67@yahoo.it</who>
            <bug_when>2008-10-09 20:51:27 0000</bug_when>
            <thetext>I tested gnash compiled with this patch on a ultra2 enterprise sparc 2 CPU 296Mhz and works well on most flash films. No chrashes. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sheepshit@hotmail.fr</who>
            <bug_when>2008-11-04 16:31:06 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Created an attachment (id=167588) [edit]
&gt; 10_all_1.35.0-arm_hppa_sparc-sync_fetch_and_add.patch
&gt; 
&gt; This patch fixes the problem and gnash compiles correctly
&gt; 

I have the same bug on gnash compile.
So I try the patch on boost but it doesn&apos;t change anything on gnash compile.
Anyone can help me please ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev-zero@gentoo.org</who>
            <bug_when>2009-05-13 19:22:34 0000</bug_when>
            <thetext>Done. Thanks!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>167588</attachid>
            <date>2008-10-08 09:16 0000</date>
            <desc>10_all_1.35.0-arm_hppa_sparc-sync_fetch_and_add.patch</desc>
            <filename>10_all_1.35.0-arm_hppa_sparc-sync_fetch_and_add.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtciAtdSBib29zdC5vbGQvZGV0YWlsL2F0b21pY19jb3VudC5ocHAgYm9vc3QvZGV0YWls
L2F0b21pY19jb3VudC5ocHAKLS0tIGJvb3N0Lm9sZC9kZXRhaWwvYXRvbWljX2NvdW50LmhwcAky
MDA4LTEwLTA3IDE2OjIwOjE4LjAwMDAwMDAwMCArMDIwMAorKysgYm9vc3QvZGV0YWlsL2F0b21p
Y19jb3VudC5ocHAJMjAwOC0xMC0wNyAxNjoyMDo1OC4wMDAwMDAwMDAgKzAyMDAKQEAgLTEwMSw3
ICsxMDEsNyBAQAogCiAjICBpbmNsdWRlIDxib29zdC9kZXRhaWwvYXRvbWljX2NvdW50X3dpbjMy
LmhwcD4KIAotI2VsaWYgZGVmaW5lZCggX19HTlVDX18gKSAmJiAoIF9fR05VQ19fICogMTAwICsg
X19HTlVDX01JTk9SX18gPj0gNDAxICkKKyNlbGlmIGRlZmluZWQoIF9fR05VQ19fICkgJiYgKCBf
X0dOVUNfXyAqIDEwMCArIF9fR05VQ19NSU5PUl9fID49IDQwMSApICAmJiAhZGVmaW5lZChfX2Fy
bV9fKSAmJiAhZGVmaW5lZChfX2hwcGEpICYmICFkZWZpbmVkKF9fc3BhcmNfXykKIAogIyAgaW5j
bHVkZSA8Ym9vc3QvZGV0YWlsL2F0b21pY19jb3VudF9zeW5jLmhwcD4KIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>