Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776799 - app-editors/ne-3.1.1[-tinfo] cm.c:(.text+0xba): undefined reference to `tputs'
Summary: app-editors/ne-3.1.1[-tinfo] cm.c:(.text+0xba): undefined reference to `tputs'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2021-03-17 03:14 UTC by Alessandro Barbieri
Modified: 2021-03-17 03:32 UTC (History)
1 user (show)

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


Attachments
ne-3.1.1:20210317-030523.log (ne-3.1.1:20210317-030523.log,24.86 KB, text/plain)
2021-03-17 03:14 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-17 03:14:05 UTC
with USE=tinfo it builds
so the tinfo use is to be bound to ncurses one with !tinfo? ncurses:=[-tinfo]


support.c: In function ‘set_interactive_mode’:                                                                         
support.c:494:2: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]                                                                                                                     
  494 |  siginterrupt(SIGWINCH, 1);                                                                                                                                                                                                           
      |  ^~~~~~~~~~~~                                                                                                                                                                                                                         
In file included from support.c:25:                                                                                                                                                                                                           
/usr/include/signal.h:311:12: note: declared here                                                                      
  311 | extern int siginterrupt (int __sig, int __interrupt) __THROW                                                   
      |            ^~~~~~~~~~~~                                                                                                                                                                                                               
x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -std=c11 -Wl,-O1 -Wl,--as-needed  actions.o ansi.o autocomp.o buffer.o clips.o cm.o command.o
 display.o edit.o errors.o exec.o ext.o hash.o help.o input.o inputclass.o keys.o menu.o names.o navigation.o ne.o prefs.o regex.o request.o search.o signals.o streams.o support.o syn_hash.o syn_regex.o syn_utf8.o syn_utils.o syntax.o ter
m.o undo.o utf8.o -lm -lncurses -o ne                                                                                                                                                                                                         
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: warning: relocation against `cur_term' in read-only section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.o: in function `calccost':                                                                                                                                 
cm.c:(.text+0xba): undefined reference to `tputs'                                                                                                                                                                                             
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x1b4): undefined reference to `tputs'  
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x21a): undefined reference to `tputs'                      
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.o: in function `cmcostinit':    
cm.c:(.text+0x28e): undefined reference to `tputs'                                                                     
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x2c6): undefined reference to `tputs'  
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.o:cm.c:(.text+0x2fe): more undefined references to `tputs' follow
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.o: in function `cmcostinit':                                                                                                                               
cm.c:(.text+0x447): undefined reference to `tgoto'                                                                     
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x46a): undefined reference to `tputs'                                                                                                            
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x492): undefined reference to `tgoto'   
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x4b5): undefined reference to `tputs'                                                                                                           
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x4dd): undefined reference to `tgoto'   
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x500): undefined reference to `tputs'                                                                                                            
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.o: in function `cmgoto':            
cm.c:(.text+0x697): undefined reference to `tgoto'                                                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x6ae): undefined reference to `tputs'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x6cb): undefined reference to `tputs'                                                                                                            
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x6f9): undefined reference to `tputs'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x71e): undefined reference to `tputs'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cm.c:(.text+0x746): undefined reference to `tputs'      
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: keys.o: in function `read_key_capabilities':         
keys.c:(.text+0x1e0): undefined reference to `cur_term'                                                                                                                                                                                       
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: keys.c:(.text+0x1fc): undefined reference to `cur_term'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: keys.c:(.text+0x218): undefined reference to `cur_term'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: keys.c:(.text+0x234): undefined reference to `cur_term'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: keys.c:(.text+0x250): undefined reference to `cur_term'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: keys.o:keys.c:(.text+0x26c): more undefined references to `cur_term' follow
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: in function `turn_off_standout':                                                                                                                      
term.c:(.text+0x15): undefined reference to `tputs'                                                                                                                                                                                           
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: in function `turn_off_insert': 
term.c:(.text+0x53): undefined reference to `tputs'                                                                                                                                                                                           
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: in function `turn_on_insert':  
term.c:(.text+0x86): undefined reference to `tputs'                                                                                                                                                                                           
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: in function `set_scroll_region':
term.c:(.text+0xb3): undefined reference to `tparm'                                                                    
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.c:(.text+0xd2): undefined reference to `tparm'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.c:(.text+0xe6): undefined reference to `tputs'                                                                                                           
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: in function `standout_if_wanted':
term.c:(.text+0x14a): undefined reference to `tputs'                                                                   
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: in function `do_multi_ins_del': 
term.c:(.text+0x170): undefined reference to `tparm'                                                                                                                                                                                          
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: term.c:(.text+0x1af): undefined reference to `tputs'
Comment 1 Alessandro Barbieri 2021-03-17 03:14:29 UTC
Created attachment 691929 [details]
ne-3.1.1:20210317-030523.log

buildlog
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-17 03:19:45 UTC
FWIW, flipping USE=tinfo on ncurses is dangerous and breaks ABI. You'll need to rebuild consumers with revdep-rebuild or similar because of bug 680496.

Anyway, the fix is to make it detect appropriately.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-17 03:32:11 UTC
The bug has been closed via the following commit(s):

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

commit ccef6e371fb377c5d7af84be65519893eef9edf1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-17 03:26:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-17 03:29:43 +0000

    app-editors/ne: add 3.3.0
    
    Closes: https://bugs.gentoo.org/776799
    Signed-off-by: Sam James <sam@gentoo.org>

 app-editors/ne/Manifest        |  1 +
 app-editors/ne/ne-3.3.0.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

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

commit 5488fb56c417da75dc533d0452e8348c178df5a7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-17 03:29:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-17 03:29:39 +0000

    app-editors/ne: correctly detect ncurses libs in 3.1.1
    
    Closes: https://bugs.gentoo.org/776799
    Signed-off-by: Sam James <sam@gentoo.org>

 app-editors/ne/metadata.xml    |  3 ---
 app-editors/ne/ne-3.1.1.ebuild | 12 +++++-------
 2 files changed, 5 insertions(+), 10 deletions(-)