I was able to install fpc 2.6.4 from the link provided by TRon.
But it Lazarus 1.4.x will not build from source.
...
make -C ide ide
make[1]: Entering directory '/home/david/Downloads/lazarus-t-fixes-1_4/ide'
/usr/bin/mkdir -p ../units/x86_64-linux/gtk2
../tools/svn2revisioninc .. revision.inc
make[1]: *** [Makefile:4212: revisioninc] Segmentation fault
I might be missing some dependency? gtk2?
You are seeing that segfault during the build phase ? I'm guessing here that its lazbuild that is failing. I wonder if a current lazbuild binary would do a better job ? I doubt there would be much difference between the behaviour of the old and new lazbuild ?
But I do wonder if you are heading in the wrong direction ?
Building a VM of an old distro might be a lot easier, I had an old
U16.04 Mate VM in my archives, I cloned it, installed FPC 3.0.0 from the Ubuntu repo and pulled down the Lazarus Fixes_1.4 source, built in a few minutes, passed the one button window test.
(and the goths would be really excited, it all came up in a dark theme !)
On the other hand, if you are doing anything more than the simplest fix to your app, maybe you would be better bringing it up to a current version of FPC/Lazarus ? Long term, might be the best approach. FPC/Lazarus tries quite hard to be backwardly compatible, some things must break but probably not too many ? Perhaps ....
Davo