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

Posted on 2007-10-02
Last Modified: 2013-11-17
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/ could not be loaded.
        0509-103   The module has an invalid magic number.

Question by:jamie_lynn
    LVL 14

    Accepted Solution

    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.
    LVL 61

    Assisted Solution

    This usually means that 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

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Syslinux UEFI USB boot 4 192
    Search for selected keywords and its values in multiple log files 11 49
    ftpcommand 2 45
    Image not there 4 11
    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now