FreeBASIC Extended Library fails to INSTALL on Linux

Linux specific questions.
Post Reply
HelMK
Posts: 1
Joined: Jun 26, 2021 12:41

FreeBASIC Extended Library fails to INSTALL on Linux

Post by HelMK »

Distro: Fedora 34
Building works fine. The install script might be broken.
Output:

Code: Select all

[helena@fedora fb-ext-lib-master]$ sudo make install
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
make[1]: Entering directory '/home/helena/Downloads/fb-ext-lib-master/src/modules'

mkdir -p /include/freebasic/ext
cp -r ../../include/freebasic/ext/detail /include/freebasic/ext/
Installing libext-preprocessor
cp -r ../../include/freebasic/ext/preprocessor.bi /include/freebasic/ext
cp -r ../../include/freebasic/ext/preprocessor /include/freebasic/ext
Installing libext-templates
cp -r ../../include/freebasic/ext/templates.bi /include/freebasic/ext
Installing libext-memory
cp -r ../../include/freebasic/ext/memory.bi /include/freebasic/ext
cp -r ../../include/freebasic/ext/memory /include/freebasic/ext
cp -r ../../lib/linux/libext-memory.* /lib/freebasic/linux/
cp: unable to create shared file '/lib/freebasic/linux/': Missing file or directory
make[1]: *** [Makefile:214: install-memory] Error 1
make[1]: Exiting directory '/home/helena/Downloads/fb-ext-lib-master/src/modules'

make: *** [Makefile:62: install] Error 2

Is there any way to fix this issue? If there isn't, where do i put the extended library binaries? I already know that i should put the headers in /usr/local/include/freebasic/ext, but i don't know where to put the binaries.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FreeBASIC Extended Library fails to INSTALL on Linux

Post by MrSwiss »

Hi, welcome around this forum.

The libtinfo.so.5 issue, should be solved first (before anything else) because, it's a FBC install problem.
See other threads, referring to this issue. Search: 'libtinfo5' (sans quotes).

After solving that, see again, whether there are any issues with *ext.lib*.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: FreeBASIC Extended Library fails to INSTALL on Linux

Post by TJF »

Hi Helena!
MrSwiss wrote:... because, it's a FBC install problem.
It's not an FBC install problem. The FBC compiler (or more precise linker) tries to link against the library libtinfo.so.5, but the package manager did not provide the version information. So it's a libtinfo install problem.

Try to purge libtinfo and install it again, perhaps from a different source. And take care of a matching version (depending on your fbc version).

Regards

PS
It doesn't matter where to put the library binaries as long as you pass the full PathName to the linker. (See also environment variable LD_LIBRARY_PATH and command ldconfig.)
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: FreeBASIC Extended Library fails to INSTALL on Linux

Post by robert »

HelMK wrote:Distro: Fedora 34
Building works fine. The install script might be broken.
Output:

Code: Select all

[helena@fedora fb-ext-lib-master]$ sudo make install
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
fbc: /lib64/libtinfo.so.5: no version information available (required by fbc)
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
make[1]: Entering directory '/home/helena/Downloads/fb-ext-lib-master/src/modules'

mkdir -p /include/freebasic/ext
cp -r ../../include/freebasic/ext/detail /include/freebasic/ext/
Installing libext-preprocessor
cp -r ../../include/freebasic/ext/preprocessor.bi /include/freebasic/ext
cp -r ../../include/freebasic/ext/preprocessor /include/freebasic/ext
Installing libext-templates
cp -r ../../include/freebasic/ext/templates.bi /include/freebasic/ext
Installing libext-memory
cp -r ../../include/freebasic/ext/memory.bi /include/freebasic/ext
cp -r ../../include/freebasic/ext/memory /include/freebasic/ext
cp -r ../../lib/linux/libext-memory.* /lib/freebasic/linux/
cp: unable to create shared file '/lib/freebasic/linux/': Missing file or directory
make[1]: *** [Makefile:214: install-memory] Error 1
make[1]: Exiting directory '/home/helena/Downloads/fb-ext-lib-master/src/modules'

make: *** [Makefile:62: install] Error 2

Is there any way to fix this issue? If there isn't, where do i put the extended library binaries? I already know that i should put the headers in /usr/local/include/freebasic/ext, but i don't know where to put the binaries.
Try

sudo dnf install ncurses-compat-libs.x86_64
Post Reply