Issue 102337 - dependencies updated too late
Summary: dependencies updated too late
Status: CONFIRMED
Alias: None
Product: Build Tools
Classification: Code
Component: solenv (show other issues)
Version: DEV300m49
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 16:13 UTC by Stephan Bergmann
Modified: 2013-01-29 21:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Stephan Bergmann 2009-05-28 16:13:23 UTC
In some module where .cxx files are compiled and a shared library is built from
them, do the following:

1  Create a fresh (internal) header foo.hxx that contains a fresh function
declaration "void foo();" (but no definition).
2  In one of the .cxx files, add "#include "foo.hxx" and a call to foo().
3  Build the module, which will fail when linking the shared library, due to the
missing definition of foo().  (And because of the linking failure, the
dependency from the .cxx file to foo.hxx is not updated, because that step would
come afterwards, as Ause says.)
4  Fix foo.hxx to also include an (inline) definition of foo, by changing it to
"void foo {}".
5  Build again:  Linking will fail again as the .cxx will not be recompiled due
to the missing dependency.