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

Bug 693378

Summary: =net-fs/samba-4.10.7 - ld: source3/utils/regedit.c.38.o: undefined reference to symbol 'LINES'
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED INVALID    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: net-fs:samba-4.10.7:20190902-185804.log.xz

Description Jeroen Roovers (RETIRED) gentoo-dev 2019-09-03 05:45:17 UTC
Created attachment 588864 [details]
net-fs:samba-4.10.7:20190902-185804.log.xz

/usr/lib/gcc/hppa2.0-unknown-linux-gnu/8.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: source3/utils/regedit.c.38.o: undefined reference to symbol 'LINES'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/8.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /lib/libtinfo.so.6: error adding symbols: DSO missing from command l
ine
collect2: error: ld returned 1 exit status

In file included from ../../lib/replace/system/filesys.h:126,
                 from ../../source3/utils/net_idmap_check.c:28:
/usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp]
 #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
  ^~~~~~~

Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.10.7/work/samba-4.10.7-.hppa/bin/default'
Build failed


[ebuild   R    ] sys-libs/ncurses-6.1_p20190609:0/6::gentoo  USE="cxx gpm (split-usr) threads (tinfo) unicode (-ada) -debug -doc -minimal -profile -static-libs -test -trace" 0 KiB
[ebuild     U  ] net-fs/samba-4.10.7::gentoo [4.10.6::gentoo] USE="acl client cups fam json pam syslog system-mitkrb5 winbind -addc -addns -ads (-ceph) -cluster -debug (-dmapi) -gnutls -gpg -iprint -ldap -profiling-data -python -quota (-selinux) (-system-heimdal) (-systemd) -test -zeroconf" PYTHON_SINGLE_TARGET="python3_5 -python3_6 (-python3_7)" PYTHON_TARGETS="python3_5 python3_6 (-python3_7)" 0 KiB
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-09-03 06:25:25 UTC
This looks good:

Checking for library ncurses                                                                    : yes
Checking for tgetent                                                                            : not found
Checking for library curses                                                                     : yes
Checking for tgetent                                                                            : not found
Checking for library termcap                                                                    : no
Checking for tgetent                                                                            : not found
Checking for library terminfo                                                                   : no
Checking for tgetent                                                                            : not found
Checking for library termlib                                                                    : no
Checking for tgetent                                                                            : not found
Checking for library tinfo                                                                      : yes
Checking for tgetent                                                                            : ok

But then source3/wscript_configure_system_ncurses looks for ncurses5-config *first*:

Looking for ncurses features
Checking for program 'ncurses5-config'                                                          : /usr/bin/ncurses5-config
Checking for ''                                                                                 : yes
Checking for header ncurses.h                                                                   : yes
Checking for header menu.h                                                                      : yes
Checking for header panel.h                                                                     : yes
Checking for header form.h                                                                      : yes
Checking for initscr                                                                            : ok
Checking for library menu                                                                       : yes
Checking for set_menu_items                                                                     : ok
Checking for item_count                                                                         : ok
Checking for library panel                                                                      : yes
Checking for new_panel                                                                          : ok
Checking for show_panel                                                                         : ok
Checking for library form                                                                       : yes
Checking for new_field                                                                          : ok
Checking for new_form                                                                           : ok
building regedit

And apparently I have ncurses5-config:

karsten ~ # ncurses5-config --libs
-L/usr/lib -lncurses
karsten ~ # ncurses6-config --libs
-lncurses -ltinfo -ldl

But nothing owns those:

karsten ~ # ls -l `which ncurses5-config`
-rwxr-xr-x 1 root root 5228 Mar 18  2016 /usr/bin/ncurses5-config
karsten ~ # ls -l `which ncursesw5-config`
-rwxr-xr-x 1 root root 5236 Mar 18  2016 /usr/bin/ncursesw5-config