Operating System - Linux
1753873 Members
7667 Online
108809 Solutions
New Discussion юеВ

Re: exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

 
Semih BATTAL
New Member

exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

Hi,
I wish to run executables from an HP9000/855S PA-RISC ( HP-UX A.B7.00 ) on our new HP rx2620 Itanium server ( HP-UX 11.23 ).

For example, I copy a compiled C program to the rx2620, execute it and I get "exec(2): invalid alignment in a.out". Is there any way that I can make the C compiler on our old PA-RISC machine produce executables that can be run on Itanium using Aries ?

Thanks in advance.

Semih BATTAL
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

Shalom Semih,

I'm not sure, but I'd probably just recompile from the source on the rp2620 system.

Surely the newer system has a c compiler installed.

What's the OS on the PA-RISC box. Sounds pretty old. I don't see how a box that was built and installed while Itanium was a dream can do this task.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Semih BATTAL
New Member

Re: exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

Hi Steven,
Thank you for your reply.
I wish it was simple as compiling it on the new machine...
I have to compile Pro*C programs using Oracle 7.2 which has all its libraries in PA-RISC code. As you know, Aries mode of Itanium permits PA-RISC code execution/emulation but linking PA-RISC code on Itanium is not possible.
I have tried copying executables from a rp3440 ( PA-RISC ) and they work without glitch on our new box.
Our old 9000/855S has HP-UX 7 on it ( ~1989 ).
Thanks again for your reply.
Don Morris_1
Honored Contributor

Re: exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

Recompile on PA-RISC newer than HP-UX 7. 7 worked with 2k aligned binaries and IPF does *not* support those. [You'd have to make a very compelling case to get this patched, might I add...]
Sandman!
Honored Contributor

Re: exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

Semih,

If you have the source code of those C programs then I don't see why not? that's if I'm understanding you correctly.

cheers!
Gregory Fruth
Esteemed Contributor

Re: exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

Aries only supports HPUX 9.x through 11.22:

http://www.docs.hp.com/en/B2355-60105/Aries.5.html

> The version of Aries at this release
> supports PA-RISC HP-UX applications that
> run on HP-UX 11i Version 1.6 and below.
> Aries does not support applications
> compiled on HP-UX version 8.x or earlier.
> However such applications run as expected
> if they run on a contemporary version of
> HP-UX (for example, HP-UX 11i Version 1.6
> and earlier).

However, the second part of the statement
above suggests that if your 7.x app runs
OK on 11.22 it ought to run under Aries on 11.23.
Semih BATTAL
New Member

Re: exec(2): invalid alignment in a.out PA-RISC/Itanium/Aries Issue

Thanks for all the valuable replies...

Hi Don,
I do not have access to a "newer than 7.7 HP-UX box". What do you mean by "2k aligned binaries" ? Is there a C compiler switch concerning "alignment" ? If there is, it would be worth a try.

Hi Sandman,
I have already recompiled my "pure" C sources on our new box. Unfortunately most of my C programs reference Oracle PA-RISC libraries and I do not have the source code for them...

Hi Gregory,
The link you sent most certainly contains hints about my problem but I must first read the whole document carefuly...
I stii have 3 old HP 9000 series servers, 855S, 835 and an 822. It would be great if HP could provide HP-UX 9 for one of these boxes. If I understood your message correctly, it would definitely work then...