Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

How to resolve the "Exec Format Error"

by kroy@softech.com (Initiate)
on Nov 06, 2009 at 00:37 UTC ( #805367=perlquestion: print w/ replies, xml ) Need Help??
kroy@softech.com has asked for the wisdom of the Perl Monks concerning the following question:

We are using perlxs with C++ code and we are trying to support the Itanium platform. This code works on Solaris, Windows, and non-Itanium HP-UX. In the past we have had problems with HP-UX and the "Exec Format Error", to resolve this we used the '+A' link option to embed the funcions from the standard libraries in our shared library. With Itanium the aCC compiler is no longer supporting the '+A' link option.

My understanding of the "Exec Format Error" is that either our shared library isn't resolving something or it is conflicting something in our perl installation. Unfortunately I cannot determine what it is or how to resolve it. I tried building our shared library as closely as we can to the our perl installation. As well as setting the LD_LIBRARY_PATH to where our shared libraries exist.

How do I resolve this or get more information on what is failing.

Thanks for you time,

Kevin Roy

Comment on How to resolve the "Exec Format Error"
Re: How to resolve the "Exec Format Error"
by Anonymous Monk on Nov 06, 2009 at 01:25 UTC
    contact your vendor
Re: How to resolve the "Exec Format Error"
by Anonymous Monk on Nov 06, 2009 at 13:00 UTC
    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.

      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.

Re: How to resolve the "Exec Format Error"
by Old_Gray_Bear (Bishop) on Nov 06, 2009 at 15:10 UTC
    It looks like there is (or was) a USENet group for HPUX questions -- comp.sys.hp.hpux.

    There were a couple of posts approximating your problem in late 2008/early 2009. The consensus answer seemed to be "Make sure you have the most current patch level installed and cross your fingers". I realize that this is not much help, sigh.

    Probably your best bet is to throw this at your HP Sales Engineer and let them talk to the HP Developers who have a real opinion on compilers and such.

    ----
    I Go Back to Sleep, Now.

    OGB

      Thanks everyone for your help. I'll check out these ideas and update the post with the result.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://805367]
Approved by AnomalousMonk
Front-paged by redgreen
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2014-09-30 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (375 votes), past polls