Skip to content

Instantly share code, notes, and snippets.

@rajiteh
Created January 25, 2015 23:43
Show Gist options
  • Save rajiteh/ad98f02b1581525177c9 to your computer and use it in GitHub Desktop.
Save rajiteh/ad98f02b1581525177c9 to your computer and use it in GitHub Desktop.
Fixing "undefined reference to symbol 'acs_map'" / "error adding symbols: DSO missing from command line"

If you get a compiler error while trying to compile a source that has dependencies for libtinfo you might encounter an error similar to below on CentOS 6.

cc  -g -O2   -o ncdu src/browser.o src/delete.o src/dirlist.o \
  src/dir_common.o src/dir_export.o src/dir_import.o src/dir_mem.o \
  src/dir_scan.o src/exclude.o src/help.o src/main.o src/path.o \
  src/util.o  -lncursesw  
/cs/local/bin/ld: src/util.o: undefined reference to symbol 'acs_map'
/lib64/libtinfo.so.5: error adding symbols: DSO missing from command \
  line

There are multiple fixes already out there such as

My solution to the issue was to add the compiler flag -ltinfo. Modify the parameter LIBS in the Makefile to reflect the change.

i.e: LIBS = -llncursew -ltinfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment