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

Bug 621868

Summary: >=net-vpn/tinc-1.1_pre14-r3 - ld: top.o: undefined reference to symbol 'wtimeout' =-= /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
Product: Gentoo Linux Reporter: Samantha McVey <samantham>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal CC: dlan, esigra, jer, jstein, slawomir.nizio
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: Build log
Patch to fix build

Description Samantha McVey 2017-06-16 07:01:19 UTC
Created attachment 476686 [details]
Build log

1.1_pre14-r3 fails to compile without this patch. My friend also using gentoo says this bug has been around months, and gave me this patch to fix it, which caused it to install flawlessly.

## The error see attached file for full log

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: top.o: undefined reference 
to symbol 'wtimeout'
/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line

## The patch. Will be attached to next message

--- a/m4/curses.m4	2016-10-16 01:58:57.739207738 +0700
+++ b/m4/curses.m4	2016-10-16 01:59:04.610959120 +0700
@@ -32,7 +32,7 @@
     )
 
     AC_CHECK_LIB(ncurses, initscr,
-      [CURSES_LIBS="-lncurses"],
+      [CURSES_LIBS="-lncurses -ltinfo"],
       [AC_CHECK_LIB(curses, initscr,
         [CURSES_LIBS="-lcurses"],
         [AC_MSG_ERROR("curses libraries not found.")]
Comment 1 Samantha McVey 2017-06-16 07:02:20 UTC
Created attachment 476688 [details, diff]
Patch to fix build
Comment 2 Pacho Ramos gentoo-dev 2017-11-27 17:25:31 UTC
this is still unfixed in pre15
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-25 20:50:49 UTC
Comment on attachment 476688 [details, diff]
Patch to fix build

That's not the correct way to do it, as now the package suddenly requires USE=tinfo on sys-libs/ncurses.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-25 20:58:39 UTC
commit cbef68ea60721674d19cfc8c7571640c501768cc
Author: Jeroen Roovers <jer@gentoo.org>
Date:   Sun Feb 25 21:57:48 2018 +0100

    net-vpn/tinc: Fix compiling against sys-libs/ncurses[tinfo] (bug #621868).

    Package-Manager: Portage-2.3.24, Repoman-2.3.6