Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 218946

Summary: [patch] dev-embedded/picprog-1.8.3 fails with gcc-4.3
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Embedded Team (OBSOLETE) <dev-embedded+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: picprog-1.8.3-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-22 20:31:18 UTC
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 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-22 20:31:48 UTC
Created attachment 150653 [details, diff]
picprog-1.8.3-gcc43.patch

Fixes the problem. Snatched from Debian.
Comment 2 Denis Dupeyron (RETIRED) gentoo-dev 2008-04-23 07:26:44 UTC
Fixed. Thanks for the debian patch. I used sed instead and slightly modified the patching, but it's the same idea.

Denis.