Summary: | sys-power/powertop-2.4 - ld: powertop-display.o: undefined reference to symbol 'cbreak' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrea Arteaga (RETIRED) <spiros> |
Component: | [OLD] Core system | Assignee: | Rick Farina (Zero_Chaos) <zerochaos> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex_y_xu, jer |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 457530 | ||
Attachments: |
build.log
powertop-2.4-tinfo.patch |
Description
Andrea Arteaga (RETIRED)
2013-09-26 22:49:31 UTC
Created attachment 359560 [details]
build.log
I had no issues compiling it. As a side note, -fomit-frame-pointer is enabled by default on amd64 at levels -O, -O2, -O3, -Os. May I see the output of "emerge -vp ncurses" please? Also it may help for you to just rebuild ncurses as it looks like the problem is somewhere around there. Alex: thanks for the side note :-) I'm sorry, it's my problem with ncurses, as Rick said, not a bug. Anyway "emerge -pv ncurses" gives: [ebuild R ] sys-libs/ncurses-5.9-r3:5 USE="cxx gpm tinfo unicode -ada -debug -doc -minimal -profile -static-libs -trace" ABI_X86="(64) -32 (-x32)" (In reply to Andrea Arteaga from comment #4) > I'm sorry, it's my problem with ncurses, as Rick said, not a bug. Anyway > "emerge -pv ncurses" gives: > > [ebuild R ] sys-libs/ncurses-5.9-r3:5 USE="cxx gpm tinfo unicode -ada > -debug -doc -minimal -profile -static-libs -trace" ABI_X86="(64) -32 (-x32)" So was there a use flag change or something in here? An incompatible ncurses version? Or was it just something broken locally which needed a rebuild? (In reply to Rick Farina (Zero_Chaos) from comment #5) > (In reply to Andrea Arteaga from comment #4) > > [ebuild R ] sys-libs/ncurses-5.9-r3:5 USE="cxx gpm tinfo unicode -ada > > -debug -doc -minimal -profile -static-libs -trace" ABI_X86="(64) -32 (-x32)" > > So was there a use flag change or something in here? An incompatible ncurses > version? Or was it just something broken locally which needed a rebuild? Er, see the bug that this one blocks. When built with USE-tinfo, ncurses installs a separate library with terminal information. The proper fix is to use ncurses' pkg-config file to determine what to link against. (In reply to Jeroen Roovers from comment #6) > [...] USE-tinfo USE=tinfo I'm setting this back to confirmed then since I'll have to see how it was solved in other places and fix it. Just confirming that rebuilding ncurses (with tinfo) does NOT solve the problem. I cannot build ncursses with -tinfo, as it is required by dev-util/nvidia-cuda-toolkit-5.5.22, that I need. Created attachment 359742 [details, diff]
powertop-2.4-tinfo.patch
(In reply to Jeroen Roovers from comment #10) > Created attachment 359742 [details, diff] [details, diff] > powertop-2.4-tinfo.patch Works for the 9999 ebuild as well. (In reply to Jeroen Roovers from comment #10) > Created attachment 359742 [details, diff] [details, diff] > powertop-2.4-tinfo.patch Thanks a lot for the patch Jeroen, I've added it to the ebuild. One remaining concern is that when people toggle ncurses[tinfo] it would appear to break things like powertop: !!! existing preserved libs: >>> package: sys-libs/ncurses-5.9-r2 * - /lib64/libtinfo.so.5 * - /lib64/libtinfo.so.5.9 * used by /usr/sbin/powertop (sys-power/powertop-2.4) Is it completely crazy of me to add a USE=tinfo to powertop and change the ncurses dep to ncurses[tinfo=]? (In reply to Rick Farina (Zero_Chaos) from comment #12) > (In reply to Jeroen Roovers from comment #10) > > Created attachment 359742 [details, diff] [details, diff] [details, diff] > > powertop-2.4-tinfo.patch > > Thanks a lot for the patch Jeroen, I've added it to the ebuild. The patch changes configure.ac, and yet you don't run eautoreconf? > One remaining concern is that when people toggle ncurses[tinfo] it would > appear to break things like powertop: > > !!! existing preserved libs: > >>> package: sys-libs/ncurses-5.9-r2 > * - /lib64/libtinfo.so.5 > * - /lib64/libtinfo.so.5.9 > * used by /usr/sbin/powertop (sys-power/powertop-2.4) So they should run `emerge @preserved-rebuild'. > Is it completely crazy of me to add a USE=tinfo to powertop and change the > ncurses dep to ncurses[tinfo=]? Yes. (In reply to Jeroen Roovers from comment #13) > (In reply to Rick Farina (Zero_Chaos) from comment #12) > > (In reply to Jeroen Roovers from comment #10) > > > Created attachment 359742 [details, diff] [details, diff] [details, diff] [details, diff] > > > powertop-2.4-tinfo.patch > > > > Thanks a lot for the patch Jeroen, I've added it to the ebuild. > > The patch changes configure.ac, and yet you don't run eautoreconf? Yeah, it was the middle of the night and my son was screaming, I read eautoreconf and completely ignored the conditional, and the fact that I never inherited autotools... Thanks, fixed. + 03 Oct 2013; Rick Farina <zerochaos@gentoo.org> powertop-2.4.ebuild, + powertop-9999.ebuild: + proper fix for bug #486124, thanks again to Jer for pointing out obvious + failure |