Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
laziness, impatience, and hubris
 
PerlMonks

How to resolve the "Exec Format Error"

by kroy@softech.com (Initiate)
 | Log in | Create a new user | The Monastery Gates | Super Search | 
 | Seekers of Perl Wisdom | Meditations | PerlMonks Discussion | 
 | Obfuscation | Reviews | Cool Uses For Perl | Perl News | Q&A | Tutorials | 
 | Poetry | Recent Threads | Newest Nodes | Donate | What's New | 

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
[reply]
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.

[reply]

      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.

[reply]
[d/l]
Re: How to resolve the "Exec Format Error"
by Old_Gray_Bear (Canon) 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

[reply]

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

[reply]

Back to Seekers of Perl Wisdom


Login:
Password
remember me
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
Community Ads
Chatterbox
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users
Others having an uproarious good time at the Monastery: (8)
GrandFather
atcroft
herveus
Eyck
biohisham
gnosti
raisputin
im2
As of 2009-11-21 09:55 GMT
Sections
The Monastery Gates
Seekers of Perl Wisdom
Meditations
PerlMonks Discussion
Categorized Q&A
Tutorials
Obfuscated Code
Perl Poetry
Cool Uses for Perl
Perl News
Information
PerlMonks FAQ
Guide to the Monastery
What's New at PerlMonks
Voting/Experience System
Tutorials
Reviews
Library
Perl FAQs
Other Info Sources
Find Nodes
Nodes You Wrote
Super Search
List Nodes By Users
Newest Nodes
Recently Active Threads
Selected Best Nodes
Best Nodes
Worst Nodes
Saints in our Book
Leftovers
The St. Larry Wall Shrine
Offering Plate
Awards
Craft
Snippets Section
Code Catacombs
Quests
Editor Requests
Buy PerlMonks Gear
PerlMonks Merchandise
Planet Perl
Perlsphere
Use Perl
Perl.com
Perl 5 Wiki
Perl Jobs
Perl Mongers
Perl Directory
Perl documentation
CPAN
Random Node
Voting Booth

Future historians will find that the material characteristic of the current era is...

Aluminium
Plastic
Oil
Water
Carbon dioxide
Copper
Iron
Silicon
Salt
Uranium
Hydrogen
Other

Results (729 votes), past polls