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
Created attachment 527140 [details, diff] cgminer-4.10.0-r1.ebuild.patch Patch for export correct NCURSES_LIBS in ebuild
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).
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)
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(-)