1821244 Members
2756 Online
109632 Solutions
New Discussion юеВ

Re: Problem with chatr

 
Sonison James
Frequent Advisor

Problem with chatr

Hello,

I had compiled an application using gcc on one machine and ported it onto another which did not have gcc installed on it. Initially the application used to core dump as it was not looking for the gcc libs in the SHLIB_PATH. Using chatr solved the problems on a PA-RISC mchine but on an IPF I got an error:
chatr(error): file is not a valid ELF file

The application was compiled on a 32 bit PA-RISC. Help with resolving this problem will be highly appreciated.

Thanks and regards
Sonison James
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: Problem with chatr

I dont believe you can run 32bit PA-RISC binaries on an IPF machine - the architecture is too different. You must recompile on IPF to 64bit.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sonison James
Frequent Advisor

Re: Problem with chatr

Hello Stefan,

The application works on the IPF without recompilation, the only problem is that it is not looking for the gcc libs in my SHLIB_PATH but in /usr/local/lib. Using chatr enabled SHLIB_PATH for the application on a PA-RISC but it gives an error (chatr(error): file is not a valid ELF file) on the IPF.

Thanks and regards
Sonison James
Bhuvaneswari Selvaraj
Valued Contributor

Re: Problem with chatr

PA-RISC binaries can run on IPF platform using an Aries emulator.

But chatr on a IPF machine will recognise only IPF binaries. If you want to do a chatr on the same, take the binary/application to a PA system and do a chatr there. I mean only a PA chatr binary/command can read/recognise a PA RISC binary or application.

The chatr command/binary on a IPF machine can recognise only a IPF binary.

Sonison James
Frequent Advisor

Re: Problem with chatr

Hello Bhuvaneswari,

The fix suggested by you solved my problem.

Thanks and regards
Sonison james
Mike Stroyan
Honored Contributor

Re: Problem with chatr

There is a PA-RISC chatr and other tools in the
11.22 release. You can run them for PA-RISC
programs by setting the SDKROOT environment
variable-

SDKROOT=/usr/ccs/pa chatr a.out