1 |
On 02/24 10:05, Ian Zimmerman wrote: |
2 |
> On 2020-02-24 18:09, tuxic@××××××.de wrote: |
3 |
> |
4 |
> > 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 |
5 |
> > /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' |
6 |
> > /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 |
7 |
> > collect2: error: ld returned 1 exit status |
8 |
> > make[1]: *** [Makefile:152: gopher] Error 1 |
9 |
> > |
10 |
> > It seems something wrong with my *curses* installation, which is |
11 |
> > missing symbols which are identified while linking. |
12 |
> > |
13 |
> > Is there any chance to compile such programs successfully? |
14 |
> > What could be the reason for this? |
15 |
> |
16 |
> This is a bug in the upstream build system. They should use `pkg-config |
17 |
> --libs ncurses` to construct the link command line, which would result |
18 |
> in the correct "-lncurses -ltinfo", but instead they just hardcode |
19 |
> "-lncurses". |
20 |
> |
21 |
> Try passing LDFLAGS=-ltinfo or LDLIBS=-ltinfo to make or configure. |
22 |
> |
23 |
> -- |
24 |
> Ian |
25 |
> |
26 |
|
27 |
Hi Ian, |
28 |
|
29 |
WORKS! :) |
30 |
Saved my day -0 thanks a lot! ::)) |
31 |
Cheers! |
32 |
Meino |