The dependencies listed for the libcfsutil.a target are incorrect. The sources for that library are listed in libcfs/libcfs/autoMakefile.am as:
Expanding out the above relative pathnames for the referenced [parser|platform].h files gives the following files:
The problem is these files do not exist. My assumption is, the dependencies it is intending to use are the following files:
Even worse, the [parser|platform].c files do not reference [parser|platform].h directly. These files are included through the directive:
But a dependency on libcfsutil.h is not in the *_SOURCES variable.
I think the right thing to do in this situation would be to fix these path issues using an "absolute" path to the needed files, using a reference to the top of the source tree. For example:
Although, full pathnames are not used throughout the build system for Lustre, thus the inconsistency of using full pathnames here is not ideal.