Operating System - HP-UX
1832650 Members
2919 Online
110043 Solutions
New Discussion

Re: The use of chatr +s enable

 
LINI_1
New Member

The use of chatr +s enable

HI, I'm using HPUX 11.11 and I compile programs on a dev machine ending by chatr +s enable.
When I put the new version of a ( Pro*C ) program on the prod. machine ( same version of OS HPUX 11.11 ) the program operates as the older one.
The date of the program on prod machine is the same that dev. machine but the behavior isn't.
The customer don't what us to compile the program on the prod. machine and I'm asking myself if i have to launch the commande 'chatr +s enable ' on the prod. machine.
Please help me ...
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: The use of chatr +s enable

First of all, looking at the timestamp of a file really tels you nothing about the contents of the file. Use the cksum command to compare two files. Man cksum for details.

The chatr +s enable option allows a program to utilize SHLIB_PATH to locate shared libraries. Different shared libraries could definitely cause different behavior.

I would attack the problem like this:
cksum the executable on both platforms to make certain that are the same. Next, do an ldd (list dynamic dependencies; man ldd for details) command on
the executable and use cksum to compare the listed shared libraries. If the shared libraries are the same then the difference in behavior is probably caused by the difference in some aspect of the data itself.
If it ain't broke, I can fix that.
Jean-Luc Oudart
Honored Contributor

Re: The use of chatr +s enable

If you want to use the shared library 1st,
you should run :
chatr +s enable +b disable

Note : If the shared lib aren't the same , the behaviour won't be the same.

Can you garanty you use a copy of the shared lib in your dev environment ?

Regards,
Jean-Luc
fiat lux
sunil_23
Occasional Contributor

Re: The use of chatr +s enable

Hi,
Why don't you use ld +s option ?