Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Arslan S. on May 05, 2010, 05:34:47 AM

Title: libreadline should be linked to libncurses ?
Post by: Arslan S. on May 05, 2010, 05:34:47 AM
Code: [Select]
tc@box:~$ seed

** (seed:7431): CRITICAL **: Line 2 in /usr/local/share/seed/repl.js: ModuleError Error loading native module at /usr/local/lib/seed/libseed_readline.so: /usr/local/lib/libreadline.so.6: undefined symbol: BC

temporary fix
Code: [Select]
tc@box:~$ export LD_PRELOAD=/lib/libncurses.so
tc@box:~$ seed
> print("Hello");
Hello
>

permanent fix is to build readline with
Code: [Select]
make SHLIB_LIBS=-lncurses
this way libreadline is forced to link against libncurses

maybe this is a problem which is specific to seed, but libreadline usually depends on libncurses in other linux distributions

note: seed is not in repo yet, :)
Title: Re: libreadline should be linked to libncurses ?
Post by: danielibarnes on May 05, 2010, 11:30:24 AM
Sounds like a good idea. I'll rebuild and resubmit.