Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 677820

Summary: net-p2p/ncdc-1.20 : /.../ld: src/ui.o: undefined reference to symbol keypad
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, gentoo
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://code.blicky.net/yorhel/ncdc/pulls/91
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-p2p:ncdc-1.20:20190212-164101.log
temp.tbz2

Description Toralf Förster gentoo-dev 2019-02-12 17:35:25 UTC
x86_64-pc-linux-gnu-gcc -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread    -O2 -pipe -march=native  -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -o ncdc src/bloom.o src/cc.o src/commands.o src/db.o src/dl.o src/dlfile.o src/fl_load.o src/fl_local.o src/fl_save.o src/fl_util.o src/geoip.o src/hub.o src/listen.o src/main.o src/net.o src/proto.o src/search.o src/strutil.o src/tth.o src/ui.o src/ui_colors.o src/ui_listing.o src/ui_logwindow.o src/ui_textinput.o src/uit_conn.o src/uit_dl.o src/uit_fl.o src/uit_hub.o src/uit_main.o src/uit_msg.o src/uit_search.o src/uit_userlist.o src/util.o src/vars.o libdeps.a -lm -lncursesw -lz -lbz2 -lgthread-2.0 -pthread -lglib-2.0  -lgnutls   -lsqlite3   
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/ui.o: undefined reference to symbol 'keypad'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfow.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:624: ncdc] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-developer_20190208-112056

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.10.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO net-p2p/ncdc
[ebuild  N    ] net-p2p/ncdc-1.20  USE="-geoip"
Comment 1 Toralf Förster gentoo-dev 2019-02-12 17:35:28 UTC
Created attachment 565002 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-12 17:35:30 UTC
Created attachment 565004 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-02-12 17:35:33 UTC
Created attachment 565006 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-02-12 17:35:36 UTC
Created attachment 565008 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-02-12 17:35:39 UTC
Created attachment 565010 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-12 17:35:41 UTC
Created attachment 565012 [details]
net-p2p:ncdc-1.20:20190212-164101.log
Comment 7 Toralf Förster gentoo-dev 2019-02-12 17:35:44 UTC
Created attachment 565014 [details]
temp.tbz2
Comment 8 Yorhel 2019-04-07 19:20:39 UTC
This happens when ncurses is compiled with the 'tinfo' use flags. I'm aware of this issue, but am not sure how to fix it. The last time I attempted to have configure conditionally link to -ltinfo I ended up breaking the build for almost every other system out there[1]. Advice welcome.

1. https://g.blicky.net/ncdc.git/commit/?id=f53be2b1e3d27a9f22ebab1aa6b466da5c8de8dd
Comment 9 Larry the Git Cow gentoo-dev 2019-04-08 12:40:23 UTC
The bug has been closed via the following commit(s):

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

commit c00425ee6e741ecb382bf71a10979b1c1a9d68f4
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-04-08 12:39:28 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-04-08 12:39:28 +0000

    net-p2p/ncdc: Bump to version 1.21
    
    Fixed compilation against sys-libs/ncurses[tinfo]
    
    Closes: https://bugs.gentoo.org/677820
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-p2p/ncdc/Manifest                    |  1 +
 net-p2p/ncdc/files/ncdc-1.21-tinfo.patch | 53 +++++++++++++++++++++++++++++
 net-p2p/ncdc/ncdc-1.21.ebuild            | 57 ++++++++++++++++++++++++++++++++
 3 files changed, 111 insertions(+)