Created On: 19 August 2011
Problem:
When compiling a program after an upgrade the error "Bad magic number for shared library" is obtained. Everything seems to be in order. For instance, the system is 64-bit, the cobmode setting is 64-bit, and the library being referenced is 64-bit. The database is an Oracle database and it is also 64-bit.
Resolution:
In this case check the procob executable (it may be on a client system) to see which format (32-bit or 64-bit) it is. To find this on a UNIX or Linux system, execute:
file procob
The file format will be returned telling you if the procob executable is 64-bit (explicitly stated) or 32-bit (won't explicitly state 64-bit). If you are using 64-bit and the procob executable is not 64-bit, obtain the 64-bit procob executable (Oracle may have to be contacted for that).
file procob
The file format will be returned telling you if the procob executable is 64-bit (explicitly stated) or 32-bit (won't explicitly state 64-bit). If you are using 64-bit and the procob executable is not 64-bit, obtain the 64-bit procob executable (Oracle may have to be contacted for that).
Incident #2523812
Old KB# 34342



