error adding symbols: DSO missing from command line
Closed this issue · 1 comments
GeoffreyFrogeye commented
When trying to build vimpc (018118a) on Arch Linux (latest), I get the following error while running make
:
g++ -pthread -g -O2 -D__STRICT_ANSI__ -L/opt/local/lib -o vimpc src/vimpc-algorithm.o src/vimpc-buffers.o src/vimpc-clientstate.o src/vimpc-colours.o src/vimpc-errorcodes.o src/vimpc-events.o src/vimpc-mpdclient.o src/vimpc-output.o src/vimpc-player.o src/vimpc-regex.o src/vimpc-screen.o src/vimpc-settings.o src/vimpc-song.o src/vimpc-vimpc.o src/buffer/vimpc-browse.o src/buffer/vimpc-library.o src/buffer/vimpc-directory.o src/mode/vimpc-command.o src/mode/vimpc-inputmode.o src/mode/vimpc-normal.o src/mode/vimpc-search.o src/window/vimpc-browsewindow.o src/window/vimpc-console.o src/window/vimpc-debug.o src/window/vimpc-directorywindow.o src/window/vimpc-error.o src/window/vimpc-help.o src/window/vimpc-infowindow.o src/window/vimpc-librarywindow.o src/window/vimpc-listwindow.o src/window/vimpc-modewindow.o src/window/vimpc-outputwindow.o src/window/vimpc-pagerwindow.o src/window/vimpc-playlistwindow.o src/window/vimpc-scrollwindow.o src/window/vimpc-selectwindow.o src/window/vimpc-songwindow.o src/window/vimpc-window.o src/window/vimpc-windowselector.o src/vimpc-main.o src/vimpc-lyricsloader.o src/vimpc-lyricsfetcher.o src/window/vimpc-lyricswindow.o -ltag -lpcre -lmpdclient -lcurl -lncursesw
/usr/bin/ld: src/vimpc-screen.o: undefined reference to symbol 'wtimeout'
/usr/lib/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:745: vimpc] Error 1
Running the command outside of make provides the same error, however adding the -ltinfo
flag makes the file compile fine. I got the idea from here.
From here, I don't know wether the problem is that vimpc forgot to declare a dependency or that autoconf forgot to add the correct flag, or Arch has done something (i've tested on two different Arch systems though, so it probably isn't just my system. It worked before though, not sure when it stopped working). I'm posting the issue there though, hoping to have some guidance.
GeoffreyFrogeye commented
Not happening anymore after an upgrade, so it might have been fixed by something else.