in reply to How to resolve the "Exec Format Error"

I used to get that type of error when linking object files/libraries that were built from a mixture of compilers, usually gcc vs cc/aCC. I haven't have that sort of problem for a few years now (since HP/UX 11.11). I've stopped using gcc to avoid that situation altogether.

If I remember correctly, I was using "ldd" to get the list of shared libraies and "file" to identify their types. It's not much, but it should provide a lead or two.

  • Comment on Re: How to resolve the "Exec Format Error"

Replies are listed 'Best First'.
Re^2: How to resolve the "Exec Format Error"
by locked_user kroy@softech.com (Initiate) on Nov 06, 2009 at 22:02 UTC

    This was useful for me. To help people like me, whom are not as familiar with Unix as we should be.

    lld -r <library> - was very useful to determine what is unresolved. file <lib|exe> - helped me find that there was a mismatch with my shar +ed lib and the perl executible. chatr <library> - can help find library dependancies and library searc +h paths.

    I'm still having troubles with some unresolved externals, but I think I am on the right path.

    Thanks for your help.