If you look in $GREDIR/lib, you will see libgre.42m, LoaderStyleSheet.42m etc that are the names you are seeing in the error message.
What the error message is saying is that it these .42m have been compiled with a different version of fglcomp than what is being used by fglrun to run the program. The difference test only applies to the first two digits of the version number e.g. , having 3.20.05 vs 3.20.06 is OK, whilst 3.10.06 vs 3.20.06 is NOT ok (the only exception to this is maybe if you participated in the EAP).
So most likely scenario is that you are running with fglrun having a 3.20 version but are still accidentally pointing at a 3.10 version of GRE. Hence Sebs advice to check FGLLDPATH. Directory names will vary based on your install, but does FGLLDPATH include /opt/fourjs/gre/3.10... when it should include /opt/fourjs/gre/3.20..., Another scenario is that you have correctly set FGLLDPATH=/opt/fourjs/gre/3.20... but you still have FGLDIR pointing to /opt/fourjs/fgl/3.10. You said Makefile so double-check them and the environment. If you were using Studio I'd say make sure the 3.10 Genero Report Writer Environment set is unchecked, and the 3.20 Genero Report Writer Environment set is checked.
To find what version a particular .42m has been compiled with, you can run use fglrun -b
fglrun -b libgre.42m
3.20.07 /home/gst-comp/gre-src/nobackup/NIGHTLY/dist/tmp/install/src/api/libgre.4gl 2
fglrun -b libgre.42m
3.10.13 /home/gst-comp/gre-src/nobackup/NIGHTLY/dist/tmp/install/src/api/libgre.4gl 27
The first value is the FGL version that was used to compile and produce the .42m. The second value is the name of the source directory it was compiled from, which is hopefully the directory name from our build machine. If the directory name is something you recognise i.e the sources could have been on your machine, if you look in GREDIR/src, there is a script compile which allows you to rebuild the GREDIR libraries. That is a third scenario which can lead to your issue, that is someone has recompiled these libraries using that compile script, and done so using the wrong fglcomp version.
Reuben