Which CUPS version are you using on the system where the build failure
happens?
The problem seems to be the same as I have already observed with HPLIP.
Since CUPS 2.2.0 at some points
#include <cups/ppd.h>
lines need to be added.
Unfortunately, I cannot reproduce your problem on Ubuntu Yakkety (16.10)
which also uses CUPS 2.2.0. So I cannot tell you where to add the lines.
So do the following:
Look in which source file the build stops with "unknown type name
'ppd_file_t'" or similar. Add the line
#include <cups/ppd.h>
to this source file or its corresponding *.h file, usually to the place
where there are other
#include <cups/NAME.h>
lines. Build again and see whether it continues. If it stops in another
file now, repeat the procedure with this file until the build completes.
Post/attach a patch with all additions of #include ... lines, so that I
can add them to the upstream code and make it smoothly building in as
many environments as possible.
Thanks in advance.
Till