You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
I believe I've come across a VPATH Search bug #1915
This issue was originally created at: 2008-02-18 14:58:36.
This issue was reported by: dmcnaul.
dmcnaul said at 2008-02-18 14:58:36
I have a repository in /opt/local/ng1r0/ng1r0.0.a/src
I have edget (or is it ed-gotten?) code in $HOME/ng1r0.tree/ng1r0/src
A c file in developer's directory src/rptgen/rptgen_mai.c includes MML_stream.h found in developer's directory ($HOME) oam/lib/liboam/src, which includes csopintrfc.h found in developer's directory ($HOME) oam/lib/liboam/src, which includes cif.h found in repository directory (opt/local) oam/lib/liboam/src, which includes Sd_names.h in developer's directory ($HOME) oam/lib/liboam/src
scons' searches for the include files works correctly, until it gets to Sd_names.h. Instead of backing up and looking (and finding) the Sd_names.h file in the developer's directory ($HOME), it instead finds the one in the repository (opt/local), because that is where it found cif.h.
Current work around is to edget the file cif.h into the developer's directory ($HOME) and rerun the build. scons now finds the correct version of Sd_names.h.
Dan McNaul
bdbaddog said at 2008-04-08 23:25:05
Dan,
Is Sd_names.h included via:
#include <Sd_names.h>
or
#include "Sd_names.h"
gregnoel said at 2008-04-14 18:48:44
Bug party triage: This is probably working as intended; it mirrors the order of the C and C++ compilers, which evaluate paths relative to the directory in which the file exists, not to the current directory. This is a documented restriction; use the Local() method to make copies of files where this can be a problem. Pass to Bill to verify, then close as INVALID.
gregnoel said at 2010-07-21 16:59:25
Bug party triage. Bump the priority of this issue.
gregnoel said at 2010-11-14 18:41:55
Promote issue so it will be reviewed at next bug party.
Activity