• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 12105
  • Last Modified:

What does "The module has an invalid magic number" mean?

What does "The module has an invalid magic number" mean?
I get this error when I try to run my binary.

0509-036 Cannot load program testssl because
 of the following errors:
        0509-150   Dependent module /space/3743/libxmlsec1-openssl.so could not be loaded.
        0509-103   The module has an invalid magic number.

2 Solutions
A magic number is a value stored in the first few bytes of a file to identify the content. The "file" command reads these bytes and compares them to a table of known values.

It is possible that the module has been copied from a different architecture machine or that some error occurred in the createion of the file.
This usually means that libxmlsec1-openssl.so was compiled on system with newer libc, i.e. newer release or maintenance level of AIX.
Easiest is to recompile using lowest common system. Be aware that 32bit modules sometimes are suboptimal for 64bit procesors, especially RS-64 ones.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now