On Thu, 2017-10-26 at 21:18 +0200, Stephen Berman wrote:
> On Thu, 26 Oct 2017 20:57:32 +0200 "Armin K." <[email protected]>
> wrote:
> 
> > On Thu, 2017-10-26 at 20:46 +0200, Stephen Berman wrote:
> > > I wanted to install autofs, so following the instructions in BLFS
> > > 8.1, I
> > > installed the required dependency rpcsvc-proto, ran configure and
> > > make,
> > > and this is the result:
> > > 
> > > configure: creating ./config.status
> > > config.status: creating Makefile.conf
> > > config.status: creating include/config.h
> > > set -e; for i in lib daemon modules man samples; do make -C $i
> > > all;
> > > done 
> > > make[1]: Entering directory '/sources/autofs-5.1.3/lib'
> > > gcc -O2 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include
> > > -fPIC
> > > -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc\"
> > > -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -c cache.c
> > > In file included from ../include/automount.h:32:0,
> > >                  from cache.c:25:
> > > ../include/rpc_subs.h:19:10: fatal error: rpc/rpc.h: No such file
> > > or
> > > directory
> > >  #include <rpc/rpc.h>
> > >           ^~~~~~~~~~~
> > > compilation terminated.
> > > make[1]: *** [../Makefile.rules:66: cache.o] Error 1
> > > make[1]: Leaving directory '/sources/autofs-5.1.3/lib'
> > > make: *** [Makefile:14: daemon] Error 2
> > > 
> > > It appears to require rpc.h, which is no longer included in
> > > glibc.
> > > What do I have to do to build autofs?
> > > 
> > > Steve Berman
> > 
> > Try installing libtirpc and pass CFLAGS="-I/usr/include/tirpc" to
> > the
> > configure script invocation. If the link process fails, you may
> > also
> > need to pass LDFLAGS="-ltirpc".
> 
> I installed libtirpc and tried with just CFLAGS and with both CFLAGS
> and
> LDFLAGS, but the build failed the same as before:
> 
> ../include/rpc_subs.h:19:10: fatal error: rpc/rpc.h: No such file or
> directory
> 
> Any other ideas?
> 
> Steve Berman

From a quick look at the package, there's --with-libtirpc configure
parameter, which causes package to compile properly.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to