Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218946 - [patch] dev-embedded/picprog-1.8.3 fails with gcc-4.3
Summary: [patch] dev-embedded/picprog-1.8.3 fails with gcc-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-04-22 20:31 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-04-23 07:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
picprog-1.8.3-gcc43.patch (picprog-1.8.3-gcc43.patch,310 bytes, patch)
2008-04-22 20:31 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.