[illumos-Developer] webrev #687: rpcgen should not generate absolute #includes

Gary Mills mills at cc.umanitoba.ca
Thu May 12 10:33:18 PDT 2011


On Thu, May 12, 2011 at 01:12:51PM -0400, Gordon Ross wrote:
> On Thu, May 12, 2011 at 11:49 AM, Gary Mills <mills at cc.umanitoba.ca> wrote:
> >
> > Yes, /usr/include/rpcsvc contains a collection of *.x and
> > corresponding *.h files.  What is the real problem here?  What is
> > really missing in rpcgen?  Does it need a search path for *.x files,
> > for example?
> 
> The problem is that rpcgen gives you no control over how the
> include lines are written.  It's all fine when everything is in one
> directory, like the RPC examples.  With sofware that divides
> things into separate directories like under usr/src/uts, then the
> generated include statements don't work quite how you'd like.
> (rpcgen does not need a search path, but one would like the
> compiler to be able to find your headers when compiling the
> generated code, without hacking your CPPFLAGS...)

Maybe that's exactly what it needs?  You could specify the input file
as `rpcsvc/idmap_prot.h' and the search path as
`/tank/ws/nfslm1/usr/src/uts/common' or as `../../../uts/common'.
Wouldn't that do it?

-- 
-Gary Mills-        -Unix Group-        -Computer and Network Services-



More information about the Developer mailing list