Summary: | sys-apps/lshw-02.12.01b gcc 4.3 fixes | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergey Dryabzhinsky <sergey.dryabzhinsky> |
Component: | [OLD] GCC Porting | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | coldwind, jkt |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 198121 | ||
Attachments: | Upstream fixes for build with gcc-4.3 |
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
Fixed by upstrem here: http://ezix.org/project/ticket/345 Created attachment 146684 [details, diff]
Upstream fixes for build with gcc-4.3
Fix missing heades
added to gcc-porting overlay. |
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