1833342 Members
3100 Online
110051 Solutions
New Discussion

pstat_getlwp()

 
Thu Nguyen_2
Advisor

pstat_getlwp()

My application has pstat_getlwp(). When I compile it on HP11i, then the executable fails to run on HP 11.0. Is that something expected??? How can I make it work???
Please help - Thanks
2 REPLIES 2
Rajeev  Shukla
Honored Contributor

Re: pstat_getlwp()

Hi,
For good performance and better results you always need to compile when you change the HP-UX version. And specially when you move down wards.
Recompile the application on 11.00 to make it working.

Rajeev
doug hosking
Esteemed Contributor

Re: pstat_getlwp()

HP-UX compatibility rules never guarantee that you can run an application compiled on one release on an older release.

In the case of pstat_getlwp(), the addition of things like processor sets changed the definition of struct lwp_status between the two releases. HP-UX 11.00 could not know how to fill in the new fields (lwp_fss and later) since they were not defined in that release.

As previously suggested, the right way to do this is to compile on the older release. In the vast majority of cases the binary will then run on both the older and newer releases.