Deloptes <
delo...@gmail.com> wrote:
> Computer Nerd Kev wrote:
>
>>>> If it's a handmade Makefile, you'll just have to find
>>>> where "-lXext -lX11" is specified and add " -ldl" on the
>>>> end.
>>> Thank you! That solved the make errors. But the resulting
>>> executable (gsportx) fails with a segmentation fault. Grrr
>>
>> Ah, well that will probably be a bit more in-depth to fix. The
>> only easy option might be if there's a current package for
>> some other Linux or BSD, the package maintainers might have
>> already made their own patch to get around that problem.
>>
>> Otherwise you could report a bug to the software's author, or
>> try debugging the code yourself.
>>
>> If you can turn off features with command-line arguments to
>> gsportx, maybe see if you can get it to avoid the bit of code
>> causing the seg fault.
>
> From time to time I admire this news group/mailing list.
> OP is trying to compile something that was working in Wheezy for Buster!!!
> Do you know when Wheezy went out of support? Do you know how Debian changed
> meanwhile? I see last update of this code was 2017 and it is written for
> x86.
Well the homepage describes build instructions for the Raspberry
Pi, and unless a program is written in assembly there's no
immediate reason to assume it won't build on ARM even if only
tested on x86 by the developer.
Actually this reminds me (especially the topic name) of my recent
attempts building XFree86 for the Pi Zero running Raspbian Buster.
That software hasn't been updated since before Raspberry Pis even
existed, and although it supposably supported building on ARM, this
turned out to be broken in the last release (or else GCC worked
_very_ differently with certain bits of code back then). After
working through a much longer string of similar problems (first
just trying to build the Makefiles), and even a similar seg fault
problem, I did get it running in the end. I've got a very long log
of all the changes I had to make - being able to compare code with
Xorg offered a good way to cheat, except where subsystems had been
completely rewritten since XFree86.
One hopes that an emulator like this would be a lot easier than
that though. XFree86 ties into a lot of lower-level stuff which is
more architecture-dependent than most other software needs to be.
Plus it's HUGE (the Makefiles still had rules for building on a 486
- I can only assume that those people are still waiting for it to
finish compiling :) ).