Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpsee_config.mk dependency generated incorrectly in depend.mk #78

Open
GoogleCodeExporter opened this issue Aug 23, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

I've run into this sort of problem several times. gpsee_config.h is thought to 
be in some other directory by depend.mk sometimes and upon make install can't 
be found there. "rm depend.mk ; make depend.mk" remedies that problem, but i'd 
like to figure out why i keep running into it and how to fix it.


hdon@hdon[1]~/cvs/surelynx/src/gpsee$ make install
 * Installing JavaScript module components
cp -f modules/binary/binary.js modules/fs-base/fs-base.js modules/gffi/gffi.js 
modules/net/net.js modules/shellalike/shellalike.js modules/util/util.js 
modules/xhr/xhr.js surelynx_modules/surelog/surelog.js 
/var/surelynx/libexec/gpsee
make: *** No rule to make target 
`/var/surelynx/include/apr_surelynx/gpsee_config.h', needed by 
`gpsee_precompiler.o'.  Stop.
hdon@hdon[1]~/cvs/surelynx/src/gpsee$ ls gpsee_config.h
gpsee_config.h
hdon@hdon[1]~/cvs/surelynx/src/gpsee$ make depend.mk
make: `depend.mk' is up to date.
hdon@hdon[1]~/cvs/surelynx/src/gpsee$ rm depend.mk
hdon@hdon[1]~/cvs/surelynx/src/gpsee$ make depend.mk
 * Building dependencies for: gpsee.c gpsee_bytethings.c gpsee_compile.c gpsee_context_private.c gpsee_datastores.c gpsee_flock.c gpsee_gccallbacks.c gpsee_hookable_io.c gpsee_lock.c gpsee_modules.c gpsee_monitors.c gpsee_p2open.c gpsee_precompiler.c gpsee_realms.c gpsee_surelynx.c gpsee_util.c gpsee_xdrfile.c gsr.c minimal.c
make: `depend.mk' is up to date.

Original issue reported on code.google.com by donny.vi...@gmail.com on 23 Jul 2010 at 8:40

@GoogleCodeExporter
Copy link
Author

Does this also happen with non-SureLynx builds?

I know (approximately) what this is, though.

What happens is that when you build GPSEE, makedepend runs.  (makedepend is gcc 
-M in GPSEE build, but it basically works the same as the traditional 
makedepend).

Okay, so makedepend runs, and automatically generates your dependencies.  
Rather than dump them at the end of the makefile as is tradition (ugh), I put 
them in depend.mk.

Then, some how, your /var/surelynx/include/apr_surelynx directory vanishes but 
your depend.mk file did not get blown away.

*clue* - were you building on my zone?  I blew away my includes on Friday as a 
debug step while working on ./configure.

There's an interesting point in this discovery, though, it means that the 
dependency generator thinks $(INCLUDES)/gpsee_config.h has a higher precedence 
than $(GPSEE_SRC)/gpsee_config.h.  That's probably a subtle problem we should 
look at.

Original comment by wes%page...@gtempaccount.com on 26 Jul 2010 at 12:43

@GoogleCodeExporter
Copy link
Author

I'm not sure I can answer anything about this bug with any confidence, but I am 
going to keep my eyes open and try not to let this go forgotten.

Original comment by donny.vi...@gmail.com on 26 Jul 2010 at 2:32

@GoogleCodeExporter
Copy link
Author

Original comment by wes@page.ca on 5 Sep 2012 at 3:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant