WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: FreeBasic 1.07.1 has problems with ncurses.tcz  (Read 812 times)

Offline julcar

  • Jr. Member
  • **
  • Posts: 76
FreeBasic 1.07.1 has problems with ncurses.tcz
« on: November 05, 2019, 11:41:12 AM »
I downloaded FreeBasic 1.07.1 binaries from here: http://downloads.sourceforge.net/fbc/FreeBASIC-1.07.1-ubuntu-18.04-x86_64.tar.xz?download

FreeBasic seems to be compiled against ncurses5, so it depends on this two packages:
https://packages.debian.org/buster/libtinfo5
https://packages.debian.org/buster/libncurses-dev

both of them I downloaded and converted to extensions, and added as dependences to my previously created FreeBasic extension.

but still needed to load ncurses.tcz and et voilá, fbc binary ran and compiled my tests apps.
until I rebooted and it crashed again with this error: undefined reference to symbol 'ospeed'
seems that ncurses.tcz comes with libtinfo.so.6 wich is incompatible with libtinfo.so.5, a simple workaround was removing ncurses.tcz from the FreeBasic's dep file and instead placing it as onDemand, so after loading FreeBasic I can load ncurses and everything is working...

But I would like a better solution for this, ideas?

Regards.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7968
Re: FreeBasic 1.07.1 has problems with ncurses.tcz
« Reply #1 on: November 05, 2019, 01:18:29 PM »
Hi julcar
... a simple workaround was removing ncurses.tcz from the FreeBasic's dep file and instead placing it as onDemand, so after loading FreeBasic I can load ncurses and everything is working...

But I would like a better solution for this, ideas?
Instead of placing it ondemand, you could place it somewhere after FreeBasic in your onboot.lst.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12281
Re: FreeBasic 1.07.1 has problems with ncurses.tcz
« Reply #2 on: November 05, 2019, 08:42:27 PM »
But I would like a better solution for this, ideas?

The best solution would be to compile natively.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12281
Re: FreeBasic 1.07.1 has problems with ncurses.tcz
« Reply #3 on: November 06, 2019, 12:13:43 AM »
updated freebasic posted

Offline julcar

  • Jr. Member
  • **
  • Posts: 76
Re: FreeBasic 1.07.1 has problems with ncurses.tcz
« Reply #4 on: November 06, 2019, 12:28:44 AM »
updated freebasic posted

It was for x86 only or x86_64 too?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12281
Re: FreeBasic 1.07.1 has problems with ncurses.tcz
« Reply #5 on: November 06, 2019, 12:31:44 AM »
x86 only at the moment - a freebasic extension existed in the 4.x repo

Offline julcar

  • Jr. Member
  • **
  • Posts: 76
Re: FreeBasic 1.07.1 has problems with ncurses.tcz
« Reply #6 on: November 06, 2019, 12:37:55 AM »
ok ok, we in the x86_64 side will be expectant  :D

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12281
Re: FreeBasic 1.07.1 has problems with ncurses.tcz
« Reply #7 on: November 06, 2019, 01:27:50 AM »
posted