Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621868 - >=net-vpn/tinc-1.1_pre14-r3 - ld: top.o: undefined reference to symbol 'wtimeout' =-= /lib64/ error adding symbols: DSO missing from command line
Summary: >=net-vpn/tinc-1.1_pre14-r3 - ld: top.o: undefined reference to symbol 'wtime...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
Keywords: PATCH
Depends on:
Blocks: tinfo
  Show dependency tree
Reported: 2017-06-16 07:01 UTC by Samantha McVey
Modified: 2018-02-25 21:00 UTC (History)
5 users (show)

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

Build log (tinc-fail.txt,25.72 KB, text/plain)
2017-06-16 07:01 UTC, Samantha McVey
Patch to fix build (file_621868.txt,388 bytes, patch)
2017-06-16 07:02 UTC, Samantha McVey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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/ 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,
         [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 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 gentoo-dev 2018-02-25 20:58:39 UTC
commit cbef68ea60721674d19cfc8c7571640c501768cc
Author: Jeroen Roovers <>
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