[OpenAFS-devel] Re: [OpenAFS] Re: Latest docs on building the OpenAFS source code

Simon Wilkinson sxw@inf.ed.ac.uk
Mon, 25 Oct 2010 07:45:52 +0100


On 25 Oct 2010, at 02:40, Benjamin Kaduk wrote:

>=20
> Insight into why I'm not actually getting any include flags for what =
should be an AFS_LDRULE operation would be greatly appreciated.

It's actually an AFS_CCRULE that you should be invoking.

My suspicion is that this is down to suffix rules. POSIX make should =
have a default .y.c suffix rule, which is used to produce error_table.c. =
Our .c.o rule then uses that to build error_table.o.

However, your make seems to be going directly from .y to .o (going via =
y.tab.c on the way). This suggests to me that it has a .y.o rule, which =
uses its own compiler line, and so doesn't pick up AFS_CCRULE at all.

You may be able to fix this by explicitly defining a y.c rule - although =
I'm not sure if that will 'win' over a default .y.o one.

S.