T.R | Title | User | Personal Name | Date | Lines |
---|
1383.1 | Re: genpath not working? | AOSG::FILTER | Automatic Posting Software - mail to flume::puck | Thu Apr 06 1995 20:29 | 66 |
| Date Of Receipt: 6-APR-1995 17:34:56.30
From: SMURF::WASTED::jmf "Joshua M. Friedman OSF/UNIX SDE"
To: longo@DEC:.zko.wasted
CC: odehelp@DEC:.zko.wasted
Subj: Re: genpath not working?
Mark, is still not working? What happens in your sandbox if you
just try to run, as a command, either of:
genpath -I.
or:
genpath -I. -I../include
If genpath isn't in your path call it out of the backingtree's
tools hostbin. What do you see from:
sbinfo SOURCEDIR
Finally, I just remembered a bug in genpath that it's a ksh script but
doesn't use -p in the #!/bin/ksh line, so it will source your .kshrc or
similar file if you have ENV set (I think that's the ksh variable name).
If this is your case, try doing "unset ENV" and then try it.
-josh
-----------
To: [email protected]
Cc: [email protected]
Subject: genpath not working?
Date: Wed, 05 Apr 95 12:31:13 -0400
From: "Mark Longo" <[email protected]>
My ODE build is suddenly not finding include files in my sandbox. The
include file of interest is specified in my makefile with the line:
INCFLAGS = -I. -I../include
where the include file I need is in the ../include directory relative to
my sanbox source files. I am certain this was working recently as I have used
the include entry in my Makefile this way for months w/o trouble. For some
reason the build is getting the include file needed from the backing tree, a
mistake. The build/compile line is:
submon[18] build
relative path: ./usr/sbin/cmon/submon.
cd ../../../../../obj/alpha/usr/sbin/cmon/submon
/usr/sde/osf1/build/clustwav3os.nightly/tools/alpha_OSF1/alpha/acc/cc -st
d0 -EL -c -DBSD44 -DMSG -DNLS -D__WCHAR_T_LEN=4 -Wf,-wchar32 -DMACH -DCMU
-DOSF -Dalpha -D__alpha__ -D__alpha -Dunix -D__unix__ -D_SHARED_LIBRA
RIES -O2 -Olimit 5000 -g -DMCHECK -I `genpath -I.` `genpath -I. -I
../include ` -I/usr/staff/longo/sb/cluster/export/alpha/usr/include -I/us
r/sde/osf1/build/clustwav3os.nightly/export/alpha/usr/include ../../../../
../../src/usr/sbin/cmon/submon/postDevErr.c
As you see, the `genpath -I. -I../include ` should work in this case,
but it does not.
Can you please help?
Mark
=======================================================================
Mark Longo Digital Equipment Corp.
[email protected] Nashua, NH
87 8300 020
|
1383.2 | Re: genpath not working? | AOSG::FILTER | Automatic Posting Software - mail to flume::puck | Tue Apr 18 1995 14:47 | 65 |
| Date Of Receipt: 7-APR-1995 10:30:38.74
From: SMURF::US2RMC::"[email protected]" "Mark Longo"
To: Joshua M. Friedman OSF/UNIX SDE <[email protected]>
CC: [email protected]
Subj: Re: genpath not working?
Josh,
> Mark, is still not working?
I've worked around my problem by running "build" in my sanbox include
file, which puts a copy of the include I need into the exports/alpha/usr/include
are, which resulted in my build finding the sandbox include file. Still, I
would have expected the build to find the include file in the source tree of my
sandbox via the "-I../include" option. I'm almost completely sure this used to
work...
> What happens in your sandbox if you
> just try to run, as a command, either of:
> genpath -I.
> or:
> genpath -I. -I../include
From my source directory
/usr/staff/longo/sb/cluster/src/usr/sbin/cmon/submon when I run "genpath -I.
-I../include" I get:
submon[44] genpath -I. -I../include
-I. -I/usr/staff/longo/sb/cluster/src/usr/sbin/cmon/submon -I/usr/sde/osf1/
build/clustwav3os.nightly/src/usr/sbin/cmon/submon -I../include -I/usr/staf
f/longo/sb/cluster/src/usr/sbin/cmon/include -I/usr/sde/osf1/build/clustwav
3os.nightly/src/usr/sbin/cmon/include
As you see, the include paths are getting set properly, though it's
interesting that the relative paths are each immediately followed by an absolute
path version of themselves. Dunno why this doesn't work.
> Finally, I just remembered a bug in genpath that it's a ksh script but
> doesn't use -p in the #!/bin/ksh line, so it will source your .kshrc or
> similar file if you have ENV set (I think that's the ksh variable name).
> If this is your case, try doing "unset ENV" and then try it.
I have no ~/.kshrc.
In any case, as long as I remember to "build" the ../include directory
after every include file edit, I'll be OK. Too bad we don't have depends for
that...
Mark
=======================================================================
Mark Longo Digital Equipment Corp.
[email protected] Nashua, NH
80 8400 030
% Received: from swanky.zk3.dec.com by us2rmc.zko.dec.com (5.65/rmc-22feb94) id AA02794; Fri, 7 Apr 95 10:28:27 -040
from localhost by swanky.zk3.dec.com; (5.65/1.1.8.2/29Mar95-1254PM) id AA08276; Fri, 7 Apr 1995 10:29:23 -040
% Message-Id: <[email protected]>
% To: Joshua M. Friedman OSF/UNIX SDE <[email protected]>
% Cc: [email protected]
% Subject: Re: genpath not working?
% In-Reply-To: Your message of "Thu, 06 Apr 95 17:33:31 EDT." <[email protected]>
% Date: Fri, 07 Apr 95 10:29:23 -0400
% From: "Mark Longo" <[email protected]>
% X-Mts: smtp
|
1383.3 | Re: genpath not working? | AOSG::FILTER | Automatic Posting Software - mail to flume::puck | Tue Apr 18 1995 16:45 | 12 |
| Date Of Receipt: 10-APR-1995 15:41:41.84
From: SMURF::FLUME::jmf "Joshua M. Friedman OSF/UNIX SDE"
To: [email protected]
CC: odehelp@DEC:.zko.flume
Subj: Re: genpath not working?
Glad you're working, but there's a mystery here. Could there be a permission
problem reading in the clustwav3os.nightly files? Make sure you're in
group staff==10.
-josh
|
1383.4 | Re: genpath not working? | AOSG::FILTER | Automatic Posting Software - mail to flume::puck | Tue Apr 18 1995 16:47 | 49 |
| Date Of Receipt: 10-APR-1995 16:05:34.18
From: SMURF::US2RMC::"[email protected]" "Mark Longo"
To: Joshua M. Friedman OSF/UNIX SDE <[email protected]>
CC: [email protected], [email protected]
Subj: Re: genpath not working?
Josh,
The problem has mysteriously vanished.
to recap:
My build wasn't finding an include file in my sandbox (../include) in
spite of my having a "-I../include" directive in the Makefile. I'm almost
completely certain this had previously worked. I also verified 'genpath' was in
my path and working properly.
So I worked around the problem by cd'ing to the ../include file and
typing "build" in order to put the needed include file into my sandbox
/export/alpha/usr/include area, which enabled me to continue my work. What I
still didn't understand was why the "-I../include" directive wasn't finding the
header file in ../include.
Following the mail you just sent I checked that my group membership was
staff=10, which it was, and that I have read (and write) permission on the
../include file, which I do. I decided to reproduce the problem and so removed
the include file in question from my export tree and once again tried to build.
This time it worked fine: the ../include file was found!
Oh, well, I can't seem to reporoduce it now. If I see it again I'll let
you know...
Mark
=======================================================================
Mark Longo Digital Equipment Corp.
[email protected] Nashua, NH
80 8400 030
% Received: from swanky.zk3.dec.com by us2rmc.zko.dec.com (5.65/rmc-22feb94) id AA09032; Mon, 10 Apr 95 16:03:17 -040
from localhost by swanky.zk3.dec.com; (5.65/1.1.8.2/29Mar95-1254PM) id AA01239; Mon, 10 Apr 1995 16:04:09 -040
% Message-Id: <[email protected]>
% To: Joshua M. Friedman OSF/UNIX SDE <[email protected]>
% Cc: [email protected], [email protected]
% Subject: Re: genpath not working?
% In-Reply-To: Your message of "Mon, 10 Apr 95 15:40:22 EDT." <[email protected]>
% Date: Mon, 10 Apr 95 16:04:09 -0400
% From: "Mark Longo" <[email protected]>
% X-Mts: smtp
|