You can compile but can not link
try
c4gl -c prog_name.4gl prog_name.4ge
c4gl -c prog_name.4gl -o prog_name.4ge
see if you get any different errors
Looks like you cannot link in the required C libraries
I dont think that there are any env variables that you have to set
but try setting LD_LIBRARY_PATH might help.
Unfortunately it has been a while since a dealt with these issues and compiled a 4gl program
