Funny, I've never seen this message. I made some tests (copy a session and program script, forget to compile, remove program script later), but all I got is "No definition in definition file for sopen(F_OBJ:..., ...)."
Maybe, you can 1. Create Runtime for that session, 2. Maintain the session (tab over all fields!), 3. Compile the program script?