Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251705 - sci-electronics/gnucap-0.35 fails with gcc 4.3.
Summary: sci-electronics/gnucap-0.35 fails with gcc 4.3.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-12-20 05:37 UTC by Arttu Valo
Modified: 2009-02-15 20:36 UTC (History)
1 user (show)

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


Attachments
gnucap-0.35 gcc43 patch (gnucap-0.35-gcc43.patch,678 bytes, text/plain)
2008-12-20 05:39 UTC, Arttu Valo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arttu Valo 2008-12-20 05:37:26 UTC
sci-electronics/gnucap-0.35 fails with gcc43 as follows:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src  -DNDEBUG  -O2 -march=athlon64 -fomit-frame-pointer -pipe -c -o ap_construct.o ap_construct.cc
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src  -DNDEBUG  -O2 -march=athlon64 -fomit-frame-pointer -pipe -c -o ap_convert.o ap_convert.cc
In file included from ap_construct.cc:26:
ap.h: In member function ‘bool CS::match1(const std::string&) const’:
ap.h:105: error: ‘strchr’ was not declared in this scope
ap_construct.cc: In constructor ‘CS::CS(CS_FILE, const std::string&, int)’:
ap_construct.cc:37: error: ‘strcpy’ was not declared in this scope
ap_construct.cc:40: error: ‘strerror’ was not declared in this scope
ap_construct.cc: In constructor ‘CS::CS(const std::string&, int)’:
ap_construct.cc:62: error: ‘strcpy’ was not declared in this scope
ap_construct.cc: In member function ‘CS& CS::operator=(const std::string&)’:
ap_construct.cc:95: error: ‘strcpy’ was not declared in this scope
make[2]: *** [ap_construct.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ap_convert.cc:24:
ap.h: In member function ‘bool CS::match1(const std::string&) const’:
ap.h:105: error: ‘strchr’ was not declared in this scope
make[2]: *** [ap_convert.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-electronics/gnucap-0.35/work/gnucap-0.35/modelgen'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-electronics/gnucap-0.35/work/gnucap-0.35'
make: *** [all] Error 2
 *
 * ERROR: sci-electronics/gnucap-0.35 failed.

I don't know if the science herd wants to keep this old version around or one of the newer snapshots, but I'll attach a patch for this one below.
Comment 1 Arttu Valo 2008-12-20 05:39:51 UTC
Created attachment 175924 [details]
gnucap-0.35 gcc43 patch

Patches gnucap-0.35 for gcc43.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-20 13:21:20 UTC
Reassigning to sci-electronics herd.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2009-02-15 20:36:08 UTC
Applied, thanks.