[daip] Remove ACOUNT.o?

Eric Greisen egreisen at cv3.cv.nrao.edu
Thu Nov 14 10:50:11 EST 2002


Andrzej Marecki writes:
 > >  > The very 1st run of MNJ for 31DEC02 version of AIPS at my site resulted in:
 > >  > 
 > >  > UPDREMOVE - Remove     ACOUNT.o
 > >  > UPDREMOVE - from       /aips/31DEC02/SUL/LIBR/APLSUB/SUBLIB
 > >  > UPDREMOVE - Removed ACOUNT.o from 1 (0 debug) libraries
 > >  > 
 > >  > Is that all right??!
 > >  > 
 > >  > I'm asking because not having ACOUNT.o in $LIBR/APLSUB/SUBLIB now, makes
 > >  > it impossible to COMLNK (most of) the AIPS tasks! Should/could I merely
 > >  > re-COMRPL $APLSUB/ACOUNT.FOR to solve this problem?
 > >  > 
 > > 
 > > Everything is fine.  We were testing and did the COMRPL $APLSUB/ACOUNT
 > > right after the remove.  Otherwise, none of your link edits would have
 > > worked.
 > > 
 > > You have read the report more thoroughly than other users!
 > 
 > Well, yes... because I had to. :-) And I had to read everything
 > thoroughly because I was trying to find an error. And finally I found it!
 > I was sitting in the MNJ initialization script in $AIPS_ROOT i.e. the
 > one which is started by cron. The faulty line of that script read:
 > 
 > PATH=$PATH:/opt/bin # originally: PATH=$PATH:/set/me/to/dir/where/cvs/is/found
 > 
 > In my case it resulted in setting PATH to: /usr/bin:/opt/bin. This

   No.  The code above takes $PATH as it finds it and appends
/opt/bin.  If it ended up as /usr/bin:/opt/bin then it started as
/usr/bin ONLY.  Are you running this as a cron job?  If so, when cron
starts it does not execute your login files and so does not get proper
$PATH's and the like.  To run do_daily from cron may require the
addition of code to set paths.  Our solaris MNJ contains

# Get ar and cvs in the path...
PATH=/opt/alpha/SUNWspro/bin:/opt/SUNWspro/bin:/usr/ccs/bin:$PATH; export PATH
LD_LIBRARY_PATH=/opt/alpha/SUNWspro/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
PATH=$PATH:/opt/local/gnu/bin/cvs
export PATH



 > means shell couldn't find ar because in Solaris ar is in /usr/ccs/bin.
 > Now the sequence of mishaps looked like this:
 > 
 > 1. ACOUNT had been removed by UPDREMOVE but scheduled for COMRPL by UPDCOMRPL.
 > 2. COMRPL $APLSUB/ACOUNT had run OK, ACOUNT.o appeared in $LIBR/APLSUB
 > 3. Unavailability of ar caused LIBR (called by COMLNK) to fail to put
 >    ACOUNT.o to $LIBR/APLSUB/SUBLIB
 > 4. Eventually COMLNKs fail with the message:
 > 
 > Undefined                       first referenced
 >  symbol                          in file
 > acount_                          /aips/31DEC02/SUL/LIBR/APLSUB/SUBLIB(GTPARM.o)
 > 
 > Conclusion:
 > 
 > # PATH=$PATH:/set/me/to/dir/where/cvs/is/found
 > 
 > should read:
 > 
 > # PATH=$PATH:/set/me/to/dirs/where/ar_and_cvs/are/found.
 > 
 > In my case it reads now:
 > 
 > PATH=$PATH/usr/ccs/bin:/opt/bin
 > 
 > where: /usr/ccs/bin is the location of ar and /opt/bin point to cvs.
 > 
 > Cheers, Andrzej
 > 

Eric Greisen




More information about the Daip mailing list