<?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>218946</bug_id>
          
          <creation_ts>2008-04-22 20:31 0000</creation_ts>
          <short_desc>[patch] dev-embedded/picprog-1.8.3 fails with gcc-4.3</short_desc>
          <delta_ts>2008-04-23 07:26:44 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>GCC Porting</component>
          <version>unspecified</version>
          <rep_platform>All</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>198121</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>loki_val@gentoo.org</reporter>
          <assigned_to>dev-embedded@gentoo.org</assigned_to>
          <cc>esigra@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-04-22 20:31:18 0000</bug_when>
            <thetext>g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3   -c -o main.o main.cc
g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3   -c -o picport.o picport.cc
g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3   -c -o hexfile.o hexfile.cc
g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3   -c -o program.o program.cc
program.cc: In member function ‘void program::init(char**)’:
program.cc:60: error: ‘strrchr’ was not declared in this scope
program.cc:64: error: ‘strlen’ was not declared in this scope
program.cc:65: error: ‘strcpy’ was not declared in this scope
program.cc: In function ‘void simple_pager(const char*)’:
program.cc:368: error: ‘strchr’ was not declared in this scope
program.cc: In member function ‘void program::usage(option*, char*)’:
program.cc:404: error: ‘strdup’ was not declared in this scope
program.cc:415: error: ‘strlen’ was not declared in this scope
program.cc:417: error: ‘strchr’ was not declared in this scope
program.cc:457: error: ‘exit’ was not declared in this scope
make: *** [program.o] Error 1
make: *** Waiting for unfinished jobs....


Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-04-22 20:31:48 0000</bug_when>
            <thetext>Created an attachment (id=150653)
picprog-1.8.3-gcc43.patch

Fixes the problem. Snatched from Debian.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2008-04-23 07:26:44 0000</bug_when>
            <thetext>Fixed. Thanks for the debian patch. I used sed instead and slightly modified the patching, but it&apos;s the same idea.

Denis.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>150653</attachid>
            <date>2008-04-22 20:31 0000</date>
            <desc>picprog-1.8.3-gcc43.patch</desc>
            <filename>picprog-1.8.3-gcc43.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBpY3Byb2ctMS44LjN+L3Byb2dyYW0uY2MJMjAwNC0wMy0wMyAxMDoxMToxNS4wMDAwMDAw
MDAgKzAxMDAKKysrIHBpY3Byb2ctMS44LjMvcHJvZ3JhbS5jYwkyMDA3LTA4LTE4IDEwOjU4OjEz
LjU5MjkwNTgyMCArMDIwMApAQCAtMjcsOSArMjcsMTEgQEAKIAogKi8KIAorI2luY2x1ZGUgPGNz
dGRsaWI+CiAjaW5jbHVkZSA8aW9zdHJlYW0+CiAjaW5jbHVkZSA8c3RyaW5nPgogCisjaW5jbHVk
ZSA8c3RyaW5nLmg+CiAjaW5jbHVkZSA8dW5pc3RkLmg+CiAjaW5jbHVkZSA8c3lzZXhpdHMuaD4K
ICNpbmNsdWRlIDxzeXMvaW9jdGwuaD4KCg==
</data>        

          </attachment>
    </bug>

</bugzilla>