Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: julcar on November 05, 2019, 11:41:12 AM

Title: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: julcar 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.
Title: Re: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: Rich 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.
Title: Re: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: Juanito 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.
Title: Re: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: Juanito on November 06, 2019, 12:13:43 AM
updated freebasic posted
Title: Re: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: julcar on November 06, 2019, 12:28:44 AM
updated freebasic posted

It was for x86 only or x86_64 too?
Title: Re: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: Juanito on November 06, 2019, 12:31:44 AM
x86 only at the moment - a freebasic extension existed in the 4.x repo
Title: Re: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: julcar on November 06, 2019, 12:37:55 AM
ok ok, we in the x86_64 side will be expectant  :D
Title: Re: FreeBasic 1.07.1 has problems with ncurses.tcz
Post by: Juanito on November 06, 2019, 01:27:50 AM
posted