WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: libreadline should be linked to libncurses ?  (Read 2166 times)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
libreadline should be linked to libncurses ?
« 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, :)

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: libreadline should be linked to libncurses ?
« Reply #1 on: May 05, 2010, 11:30:24 AM »
Sounds like a good idea. I'll rebuild and resubmit.