Bug 218946 - [patch] dev-embedded/picprog-1.8.3 fails with gcc-4.3
Bug#: 218946 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dev-embedded@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: [patch] dev-embedded/picprog-1.8.3 fails with gcc-4.3
Keywords:  
Status Whiteboard: 
Opened: 2008-04-22 20:31 0000
Description:   Opened: 2008-04-22 20:31 0000
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

------- Comment #1 From Peter Alfredsen 2008-04-22 20:31:48 0000 -------
Created an attachment (id=150653) [details]
picprog-1.8.3-gcc43.patch

Fixes the problem. Snatched from Debian.

------- Comment #2 From Denis Dupeyron 2008-04-23 07:26:44 0000 -------
Fixed. Thanks for the debian patch. I used sed instead and slightly modified
the patching, but it's the same idea.

Denis.