ncmprhnsbl wrote: ↑14 Aug 2023, 12:17
run the SlackBuild, it will download the source and build it for you.
Thanks, but it's not that easy:
Code: Select all
root@porteus:/tmp/spacefm-alpha# ./spacefm-alpha.SlackBuild
...
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/spacefm-alpha':
configure: error: C compiler cannot create executables
See `config.log' for more details
I had to activate 05-devel.xzm to make it this far (06-crippled_sources-6.1.1-64bit.xzm also but this doesn't make any difference)
Looks like it can't find a certain "libbfd-2.36.1-slack15.so":
Code: Select all
root@porteus:/tmp/spacefm-alpha# cat /tmp/SBo/spacefm-alpha/config.log
...
gcc version 11.2.0 (GCC)
configure:3893: $? = 0
configure:3882: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3893: $? = 1
configure:3882: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3893: $? = 1
configure:3882: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:3893: $? = 1
configure:3913: checking whether the C compiler works
configure:3935: gcc -O2 -fPIC conftest.c >&5
as: error while loading shared libraries: libbfd-2.36.1-slack15.so: cannot open shared object file: No such file or directory
configure:3939: $? = 1
configure:3979: result: no
...
I have a slightly different /usr/lib64/libbfd-2.37-slack15.so on my system.
Anyway, thanks for trying to teach me to use SlackBuild, but it looks like an additional pain.
Perhaps, it's a chance to fix something I didn't know was wrong on my system, as my gcc indeed can't compile anything with this BFD. I make a main.c and try to compile it as in
https://en.wikipedia.org/wiki/Binary_Fi ... or_library with the same error:
Code: Select all
root@porteus:/tmp# gcc main.c -lbfd -o output
as: error while loading shared libraries: libbfd-2.36.1-slack15.so: cannot open shared object file: No such file or directory
root@porteus:/tmp# cat main.c
#include "bfd.h"
#include <stdio.h>
int main()
{
bfd* abfd = bfd_openr("a.o",NULL);
printf("%llu\n", bfd_get_size(abfd));
return 0;
}