💾 Archived View for bbs.geminispace.org › s › Lagrange › 19042 captured on 2024-08-19 at 00:53:00. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2024-08-31)

-=-=-=-=-=-=-

@skyjake I'm getting linker issues when I run buildtui.sh on Devuan Linux immediately after [100%] Linking C Shared library libsealcurses.so has been output. libncursesw.a(lib_set_term.o) warning relocation against `COLORS` in read-only section `.text` and libncursesw.a(lib_addch.o) relocation R_X86_64_PC32 against symbol `TABSIZE` cannot be used when making a shared object; recompile with -fPIC. I don't suppose you could guide me to a fix? Not raised in issues as unsure if its a me or Environment issue rather than source issue. Note: no changes made to any source or script.

Posted in: s/Lagrange

🐐 drh3xx

Aug 09 · 9 days ago

2 Comments ↓

🕹️ skyjake [mod...] · Aug 10 at 04:51:

It sounds like the problem is that the static Curses cannot be linked into a shared library target on your platform. The fix would have to be in the SEALCurses CMakeLists.txt, I think, so it would use the Curses shared library instead.

However, the TUI build script has become obsolete in the 'dev' branch, so I'm not sure if there's much that can be done in practice. I recommend giving the 'dev' branch a try instead. It has an ENABLE_TUI CMake config variable for making the TUI build instead of a separate script. It also has an ENABLE_STATIC option for making a fully statically-linked build, although that shouldn't be needed here I think.

(Note that SEALCurses is a Git submodule in 'dev'.)

🐐 drh3xx [OP] · Aug 10 at 07:13:

@skyjake thanks for the reply. I'll attempt to build from the 'dev' branch tonight :)