Linux NFS development
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: NFS list <linux-nfs@vger.kernel.org>
Subject: Re: location of headers under /usr/include/tirpc
Date: Fri, 15 Feb 2008 12:46:22 -0500	[thread overview]
Message-ID: <47B5CFEE.2020502@RedHat.com> (raw)
In-Reply-To: <5761C623-763A-4B2C-8536-96B1989C162F@oracle.com>



Chuck Lever wrote:
> Hi Steve-
> 
> I think libtirpc-devel installs the tirpc headers in the wrong place. 
> The #include directives in the headers themselves expect them to appear
> under /usr/include, not under /usr/include/tirpc, so my builds fail when
> trying to include these headers.
> 
> For example, /usr/include/tirpc/rpc/rpcb_clnt.h does a "#include
> <rpc/rpcb_prot.h>" -- and the build chokes because that header is
> actually in /usr/include/tirpc/rpc/rpcb_prot.h.
> 
> Now, I can probably fix this temporarily by adding "-I
> /usr/include/tirpc" to my build.  However:
> 
> 1.  On Solaris, these all appear under /usr/include, there is no
> /usr/include/tirpc.
> 
> 2.  libtirpc-devel installs a bunch of files that already exist, such as
> /usr/include/rpc/auth.h, in /usr/include/tirpc/rpc/auth.h.
> 
> It would be cleaner to have one place for nfs-utils to look for these
> headers, so I don't want to permanently add "-I /usr/include/tirpc" or
> autoconf magic to find the right path unless we decide
> /usr/include/tirpc is the final location for these files.
> 
> So I think applications in general will expect to find these under
> /usr/include, not under /usr/include/tirpc.
> 
> Comments?
Its not clear what we can do. We just can't replace the file 
under /usr/include with the tirpc since that would break other
RPC applications. 

So what I think needs to happens, is I need to create 
a libtirpc.pc file that will live in /usr/lib/pkgconfig/  so you 
can used things like 
    pkg-config --libs libtirpc and pkg-config --cflags libgssglue

similar to how the librpcsecgss.pc and libgssglue.pc work

steved.


a 
> 
> -- 
> Chuck Lever
> chuck[dot]lever[at]oracle[dot]com

  reply	other threads:[~2008-02-15 17:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14 22:09 location of headers under /usr/include/tirpc Chuck Lever
2008-02-15 17:46 ` Steve Dickson [this message]
     [not found]   ` <47B5CFEE.2020502-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2008-02-15 19:10     ` Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B5CFEE.2020502@RedHat.com \
    --to=steved@redhat.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox