Operating System - HP-UX
1834450 Members
2321 Online
110067 Solutions
New Discussion

Re: using chatr command in HP-UX 11V2

 
SOLVED
Go to solution
sathis kumar
Frequent Advisor

using chatr command in HP-UX 11V2


Hello,

We are currently working on migrating our applications from HP-UX 11i to HP-UX 11V2. We are facing some issues when we use 'chatr' command in 11V2. We copied some shared libraries from 11i to 11V2 and tried to use 'chatr'. But we are getting the error "chatr(error): file libxon.sl is not a valid ELF file".

NOTE: We copied the shared library libxon.sl from 11i to 11V2 box.

Could you please let us know why we are unable to view the internal attributes of the shared library file in 11V2 ?

7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: using chatr command in HP-UX 11V2

Shalom,

This is the problem:
e copied the shared library libxon.sl from 11i to 11V2 box.

The 11i v1 box must be pa-risc.

The 11i v2 box is probably itanium.

Even if its pa-risc the libraries are not compatible OS to OS.

You need to find the chatr functionality and isntall it properly for 11i v2(11.23)

Everything is different with libraries and such on itanium. Sometimes the source code is compatible, but not anything binary.

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
Peter Godron
Honored Contributor

Re: using chatr command in HP-UX 11V2

Sathis,
what does the "file" command return when run against libxon.sl ?

Please read:
http://66.34.90.71/ITRCForumsEtiquette/after.html

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
sathis kumar
Frequent Advisor

Re: using chatr command in HP-UX 11V2


Details about our 11i/11V2 :

11i - HP-UX B.11.11 U 9000/800 682359383 unlimited-user license
11V2 - HP-UX B.11.23 U ia64 2181415107 unlimited-user license

details about Chatr ( while using 'man chatr):

Chatr in 11i - chatr_pa(1) PA-RISC Systems Only
Chatr in 11V2 - chatr_ia(1) Itanium(R)-based Systems Only

Is there any way we can make the shared library ( that we copied from 11i) to work properly in 11V2?
sathis kumar
Frequent Advisor

Re: using chatr command in HP-UX 11V2

We used the file command as given below:

-'file libxon.sl'
libxon.sl: PA-RISC1.1 shared library -not stripped

Thanks in advance, Sathis Kumar

Re: using chatr command in HP-UX 11V2

You're trying to use a IA64 chatr command on a PA-RISC library.

I would make the necessary changes to the library using chatr on the PA-RISC box, before you copy it to the IA64 box.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
sathis kumar
Frequent Advisor

Re: using chatr command in HP-UX 11V2

Hello,

Could you please let us know the changes that we have to make on "PA shared library ( 11i) using chatr" so that we can copy and view the atrributes of the shared library on 11V2?

Thanks in advance.

Dennis Handly
Acclaimed Contributor

Re: using chatr command in HP-UX 11V2

To migrate your application from PA to IPF, you must recompile natively to port it to Integrity. Or you must leave everything asis and use aries emulation.

If you really insist on using chatr(1) to look at PA load modules on IPF you do this by:
$ SDKROOT=/usr/ccs/pa chatr ...

>SEP: The 11i v2 box is probably itanium.

Yes, with that error.

>SEP: You need to find the chatr functionality

See above.

>Peter: what does the "file" command return when run against libxon.sl?

PA-RISC, obviously. :-)
+DD32 vs +DD64 is probably not that important yet.

>Could you please let us know the changes that we have to make on "PA shared library (11i) using chatr" so that we can copy and view the atrributes of the shared library on 11V2?

I believe Duncan was saying do your work on PA and not IPF. If you insist, you must do what I said above.