Skip to main content

[Migrated content. Thread originally posted on 05 December 2011]

I have a Remote Project "Program4" in VisualCobol Eclipse that only display a message. I’ve built it and I’ve generated the “Callable Shared Object” "Program4.so".

I have another Remote Project "Program1" that calls Program4. I’ve built it and I’ve generated the executable "Program1".

Finally I’ve executed “Program 1” from the remote machine and it works correctly.

The first problem I’ve found is that if I try to execute “Program4.so”, from the remote machine, directly with cobrun command, I receive the next error
Load error : file ' Program4.so '                                     
error code: 253, pc=0, call=1, seg=0                                           
253    Cannot load file - unsupported format


But, if I rebuild “Program4.so” from the remote machine with the cob command:
cob –z Program4.cbl –U
then “cobrun Program4.so” works correctly.

Finally, If I execute “Program1” again, with the new “Program4.so”, I receive the error:
Load error : file 'Program4.so'                                                                           
error code: 198, pc=0, call=1, seg=0                                           
198     Load failure   


It seems that exists some kind of incompatibility between the Eclipse environment and the command line utilities.. Is it possible? There is some kind of configuration to avoid this problem?


Thank you

[Migrated content. Thread originally posted on 05 December 2011]

I have a Remote Project "Program4" in VisualCobol Eclipse that only display a message. I’ve built it and I’ve generated the “Callable Shared Object” "Program4.so".

I have another Remote Project "Program1" that calls Program4. I’ve built it and I’ve generated the executable "Program1".

Finally I’ve executed “Program 1” from the remote machine and it works correctly.

The first problem I’ve found is that if I try to execute “Program4.so”, from the remote machine, directly with cobrun command, I receive the next error
Load error : file ' Program4.so '                                     
error code: 253, pc=0, call=1, seg=0                                           
253    Cannot load file - unsupported format


But, if I rebuild “Program4.so” from the remote machine with the cob command:
cob –z Program4.cbl –U
then “cobrun Program4.so” works correctly.

Finally, If I execute “Program1” again, with the new “Program4.so”, I receive the error:
Load error : file 'Program4.so'                                                                           
error code: 198, pc=0, call=1, seg=0                                           
198     Load failure   


It seems that exists some kind of incompatibility between the Eclipse environment and the command line utilities.. Is it possible? There is some kind of configuration to avoid this problem?


Thank you
Hi, I suspect that you may be trying to run a 32bit shared object with a 64 bit runtime. By default Eclipse build configurations build 32 bit, however, cobrun is 64 bit by default. If you build the object in Eclipse and then use cobrun32 does it work?

To change the default mode, you can set the environment COBMODE to 32.