Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213912 - sys-apps/lshw-02.12.01b gcc 4.3 fixes
Summary: sys-apps/lshw-02.12.01b gcc 4.3 fixes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-03-19 10:35 UTC by Sergey Dryabzhinsky
Modified: 2008-04-20 08:35 UTC (History)
2 users (show)

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


Attachments
Upstream fixes for build with gcc-4.3 (lshw-02.12.01b-gcc43-includes.patch,11.07 KB, patch)
2008-03-20 19:22 UTC, Sergey Dryabzhinsky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Dryabzhinsky 2008-03-19 10:35:23 UTC
Again missing headers...

Reproducible: Always

Steps to Reproduce:
1. Compile and set as default gcc-4.3.0
2. Try to compile lshw

Actual Results:  
>>> Compiling source in /var/tmp/portage/sys-apps/lshw-02.12.01b/work/lshw-B.02.12.01 ...
lshw.cc: In function ‘void usage(const char*)’:
lshw.cc:27: ошибка: нет декларации ‘getenv’ в этой области видимости
lshw.cc: In function ‘void status(const char*)’:
lshw.cc:57: ошибка: нет декларации ‘strlen’ в этой области видимости
lshw.cc: In function ‘int main(int, char**)’:
lshw.cc:87: ошибка: нет декларации ‘exit’ в этой области видимости
lshw.cc:94: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:103: ошибка: нет декларации ‘exit’ в этой области видимости
lshw.cc:106: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:109: ошибка: нет декларации ‘exit’ в этой области видимости
lshw.cc:112: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:119: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:126: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:132: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:138: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:144: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:150: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:156: ошибка: нет декларации ‘strcmp’ в этой области видимости
lshw.cc:165: ошибка: нет декларации ‘memmove’ в этой области видимости
lshw.cc:171: ошибка: нет декларации ‘exit’ в этой области видимости
lshw.cc:178: ошибка: нет декларации ‘exit’ в этой области видимости
make[1]: *** [lshw.o] Ошибка 1
make[1]: *** Ожидание завершения заданий...
hw.cc: In function ‘std::string cleanupId(const std::string&)’:
hw.cc:78: ошибка: нет декларации ‘strchr’ в этой области видимости
hw.cc: In member function ‘std::string hwNode::asXML(unsigned int)’:
hw.cc:1316: ошибка: нет декларации ‘PATH_MAX’ в этой области видимости
hw.cc:1318: ошибка: нет декларации ‘version’ в этой области видимости
hw.cc: In constructor ‘hw::resource::resource()’:
hw.cc:1640: ошибка: нет декларации ‘memset’ в этой области видимости
hw.cc: In member function ‘std::string hw::resource::asString(const std::string&) const’:
hw.cc:1782: ошибка: нет декларации ‘strncpy’ в этой области видимости
make[2]: *** [hw.o] Ошибка 1
make[2]: *** Ожидание завершения заданий...
make[1]: *** [core] Ошибка 2
make: *** [all] Ошибка 2
Comment 1 Sergey Dryabzhinsky 2008-03-19 10:38:23 UTC
Agrh... Sorry for localized crap...

Again:
>>> Compiling source in /var/tmp/portage/sys-apps/lshw-02.12.01b/work/lshw-B.02.12.01 ...
hw.cc: In function 'std::string cleanupId(const std::string&)':
hw.cc:78: error: 'strchr' was not declared in this scope
hw.cc: In member function 'std::string hwNode::asXML(unsigned int)':
hw.cc:1316: error: 'PATH_MAX' was not declared in this scope
hw.cc:1318: error: 'version' was not declared in this scope
hw.cc: In constructor 'hw::resource::resource()':
hw.cc:1640: error: 'memset' was not declared in this scope
hw.cc: In member function 'std::string hw::resource::asString(const std::string&) const':
hw.cc:1782: error: 'strncpy' was not declared in this scope
make[2]: *** [hw.o] Error 1
make[2]: *** Waiting for unfinished jobs....
print.cc: In function 'void init_wsize()':
print.cc:39: error: 'getenv' was not declared in this scope
print.cc:41: error: 'atoi' was not declared in this scope
print.cc:48: error: 'getenv' was not declared in this scope
print.cc:50: error: 'atoi' was not declared in this scope
print.cc: In function 'void printincolumns(std::vector<hwpath, std::allocator<hwpath> >&, const char**)':
print.cc:608: error: 'strlen' was not declared in this scope
lshw.cc: In function 'void usage(const char*)':
lshw.cc:27: error: 'getenv' was not declared in this scopemake[2]: *** [print.o] Error 1
make[1]: *** [core] Error 2
make[1]: *** Waiting for unfinished jobs....

lshw.cc: In function 'void status(const char*)':
lshw.cc:57: error: 'strlen' was not declared in this scope
lshw.cc: In function 'int main(int, char**)':
lshw.cc:87: error: 'exit' was not declared in this scope
lshw.cc:94: error: 'strcmp' was not declared in this scope
lshw.cc:103: error: 'exit' was not declared in this scope
lshw.cc:106: error: 'strcmp' was not declared in this scope
lshw.cc:109: error: 'exit' was not declared in this scope
lshw.cc:112: error: 'strcmp' was not declared in this scope
lshw.cc:119: error: 'strcmp' was not declared in this scope
lshw.cc:126: error: 'strcmp' was not declared in this scope
lshw.cc:132: error: 'strcmp' was not declared in this scope
lshw.cc:138: error: 'strcmp' was not declared in this scope
lshw.cc:144: error: 'strcmp' was not declared in this scope
lshw.cc:150: error: 'strcmp' was not declared in this scope
lshw.cc:156: error: 'strcmp' was not declared in this scope
lshw.cc:165: error: 'memmove' was not declared in this scope
lshw.cc:171: error: 'exit' was not declared in this scope
lshw.cc:178: error: 'exit' was not declared in this scope
make[1]: *** [lshw.o] Error 1
make: *** [all] Error 2
Comment 2 Sergey Dryabzhinsky 2008-03-19 10:41:29 UTC
Fixed by upstrem here: http://ezix.org/project/ticket/345
Comment 3 Sergey Dryabzhinsky 2008-03-20 19:22:11 UTC
Created attachment 146684 [details, diff]
Upstream fixes for build with gcc-4.3

Fix missing heades
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2008-03-30 02:41:09 UTC
added to gcc-porting overlay.