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

Re: Error encountered during installation



Hi Takimoto, 

Thank you so much for getting back to me so quickly. 

I ended up trying to reinstall ncurses again, this time adding the "-fPIC" flag to the correct compiler variable, and then Zsh compiles happily and perfectly. 

Thanks again for your help, and have a lovely holiday.

Best wishes,
Samson

On Tue, 24 Dec 2024 at 20:37, Jun. T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:

> 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