Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Error encountered during installation



> 2024/12/24 20:14, Samson Leong <samson32081@xxxxxxxxx> wrote:
> 
> 	• But when it comes to make, I encounter this error:
> gcc -L${HOME}/lib  -shared -o curses.so   curses..o    -ldl -lncursesw -lrt -lm  -lc
> /usr/bin/ld: ${HOME}/lib/libncursesw.a(lib_tputs.o): warning: relocation against `ospeed' in read-only section `.text'
> /usr/bin/ld: ${HOME}/lib/libncursesw.a(lib_bkgd.o): relocation R_X86_64_PC32 against symbol `SP' can not be used when making a shared object; recompile with -fPIC

You need the shared library libncursesw.so instead of the static library
libncursesw.a.

When you configure ncurses, please try:

$ ./configure --with-shared --prefix=$HOME --other-options...





Messages sorted by: Reverse Date, Date, Thread, Author