On Wed, 11 May 1994 [EMAIL PROTECTED] wrote:
> Suppose I write a small program that writes an output file. I compile
> the program and run it. I then edit the program, perhaps changing the
> name of the output file. 'strings -a a.out' verifies that the newly
> linked binary contains the new name. But running the program produces
> an output file with the old name.
>
> Can this be because HP's ln is not closing the output file when it links?
We reported a (somehow) similar problem to Transarc: under HP-UX 9.03 AFS
3.3 a user compiles a Fortran program - the program exits immediately. If
you try to 'xdb' it, the debugger doesn't even give his usual message
about shared library initialisation.
If you 'cp' the program to a different file in the same AFS directory it
runs fine. If you then 'cmp' the two files they are identical!
If you 'touch', 'chmod', or 'chatr' the program nothing changes, but simply
'touch'ing it from a *different* machine causes the problem to vanish.
You might be right with your file-not-closed theory, but it might as well
be an AFS problem. We down-graded to AFS 3.2b and the problem which before
happened every hour or so as not re-appeared for weeks.
I'll take up your suggestion of deleting the file before the compile/link.
That's something I hadn't tried...
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rainer Toebbicke - [EMAIL PROTECTED] -or- [EMAIL PROTECTED] O__
European Laboratory for Particle Physics(CERN) - Geneva, Switzerland > |
Phone: +41 22 767 4911 Fax: +41 22 767 7155 ( )\( )