Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652970 - net-misc/cgminer-4.10.0 with sys-libs/ncurses[tinfo] - ld: cgminer-cgminer.o: undefined reference to symbol 'halfdelay'
Summary: net-misc/cgminer-4.10.0 with sys-libs/ncurses[tinfo] - ld: cgminer-cgminer.o:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2018-04-11 13:12 UTC by Marco Genasci
Modified: 2019-03-24 00:20 UTC (History)
2 users (show)

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


Attachments
cgminer-4.10.0-r1.ebuild.patch (cgminer-4.10.0-r1.ebuild.patch,391 bytes, patch)
2018-04-11 13:14 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2018-04-11 13:12:54 UTC
x86_64-pc-linux-gnu-gcc  -march=ivybridge -mmmx -O2 -pipe -lpthread -Wl,-O1 -Wl,--as-needed -o cgminer cgminer-cgminer.o cgminer-util.o cgminer-sha2.o cgminer-api.o cgminer-logging.o cgminer-klist.o cgminer-noncedup.o  cgminer-usbutils.o                        cgminer-driver-bitmain.o     -ldl -lcurl -ljansson -lpthread -lusb-1.0  -lrt -lm lib/libgnu.a ccan/libccan.a  -lncurses -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cgminer-cgminer.o: undefined reference to symbol 'halfdelay'
/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:799: cgminer] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/cgminer-4.10.0/work/cgminer-4.10.0'
make[1]: *** [Makefile:1512: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/cgminer-4.10.0/work/cgminer-4.10.0'
make: *** [Makefile:702: all] Error 2

Reproducible: Always
Comment 1 Marco Genasci 2018-04-11 13:14:23 UTC
Created attachment 527140 [details, diff]
cgminer-4.10.0-r1.ebuild.patch

Patch for export correct NCURSES_LIBS in ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-04-11 13:18:09 UTC
Comment on attachment 527140 [details, diff]
cgminer-4.10.0-r1.ebuild.patch

I don't know where to begin to point out everything wrong with the ebuild (and consequently the patch).
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-04-11 13:24:37 UTC
pkg-config should be called through "tc-getPKG_CONFIG" from toolchain-funcs.eclass

Consider cross compilations...

Something like:



inherit toolchain-funcs

...

export PKG_CONFIG="$(tc-getPKG_CONFIG)"
export NCURSES_LIBS=$(${PKG_CONFIG} --libs ncurses)
Comment 4 Larry the Git Cow gentoo-dev 2019-03-24 00:20:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=151266171d7d362a60034621d89f9809f3690778

commit 151266171d7d362a60034621d89f9809f3690778
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-03-24 00:20:11 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-03-24 00:20:11 +0000

    net-misc/cgminer: Fixed build with sys-libs/ncurses[tinfo]
    
    Closes: https://bugs.gentoo.org/652970
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-misc/cgminer/cgminer-4.10.0.ebuild | 76 ++++++++++++++++++----------------
 1 file changed, 40 insertions(+), 36 deletions(-)