Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Constant compile error with different programs
Date: Mon, 24 Feb 2020 18:05:32
Message-Id: 20200224180513.oxtk72w43nzhr5jl@matica
In Reply to: [gentoo-user] Constant compile error with different programs by tuxic@posteo.de
1 On 2020-02-24 18:09, tuxic@××××××.de wrote:
2
3 > gcc -L../object -o gopher manager.o gopher.o globals.o ourutils.o cso.o subprocs.o html2.o CURcurses.o gopherrc.o download.o pager.o form.o upload.o ../object/libgopher.a -lcurses -lcurses -lm
4 > /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CURcurses.o: undefined reference to symbol 'nodelay'
5 > /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
6 > collect2: error: ld returned 1 exit status
7 > make[1]: *** [Makefile:152: gopher] Error 1
8 >
9 > It seems something wrong with my *curses* installation, which is
10 > missing symbols which are identified while linking.
11 >
12 > Is there any chance to compile such programs successfully?
13 > What could be the reason for this?
14
15 This is a bug in the upstream build system. They should use `pkg-config
16 --libs ncurses` to construct the link command line, which would result
17 in the correct "-lncurses -ltinfo", but instead they just hardcode
18 "-lncurses".
19
20 Try passing LDFLAGS=-ltinfo or LDLIBS=-ltinfo to make or configure.
21
22 --
23 Ian

Replies