[GH-ISSUE #90] [Bug] Linking error when building nmail on Gentoo #79

Closed
opened 2026-03-03 01:19:37 +03:00 by kerem · 1 comment
Owner

Originally created by @d99kris on GitHub (Sep 19, 2021).
Original GitHub issue: https://github.com/d99kris/nmail/issues/90

Originally assigned to: @d99kris on GitHub.

Steps performed:

sudo emerge -n dev-vcs/git
git clone https://github.com/d99kris/nmail
cd nmail
sudo emerge -n dev-util/cmake net-libs/libetpan dev-libs/openssl sys-libs/ncurses dev-libs/xapian dev-db/sqlite dev-libs/cyrus-sasl sys-apps/file www-client/w3m
mkdir -p build && cd build && cmake .. && make -sj4

Result:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/nmail.dir/src/ui.cpp.o: undefined reference to symbol 'keypad'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfow.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Originally created by @d99kris on GitHub (Sep 19, 2021). Original GitHub issue: https://github.com/d99kris/nmail/issues/90 Originally assigned to: @d99kris on GitHub. Steps performed: ``` sudo emerge -n dev-vcs/git git clone https://github.com/d99kris/nmail cd nmail sudo emerge -n dev-util/cmake net-libs/libetpan dev-libs/openssl sys-libs/ncurses dev-libs/xapian dev-db/sqlite dev-libs/cyrus-sasl sys-apps/file www-client/w3m mkdir -p build && cd build && cmake .. && make -sj4 ``` Result: ``` /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/nmail.dir/src/ui.cpp.o: undefined reference to symbol 'keypad' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfow.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status ```
kerem closed this issue 2026-03-03 01:19:38 +03:00
Author
Owner

@d99kris commented on GitHub (Sep 19, 2021):

This has been fixed in the above commit. Build should be successful using standard commands:

mkdir -p build && cd build && cmake .. && make -s

or just:

./make.sh build
<!-- gh-comment-id:922420943 --> @d99kris commented on GitHub (Sep 19, 2021): This has been fixed in the above commit. Build should be successful using standard commands: ``` mkdir -p build && cd build && cmake .. && make -s ``` or just: ``` ./make.sh build ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nmail#79
No description provided.