[Nix-dev] rpcgen of glibc can't find cpp ?

Marc Weber marco-oweber at gmx.de
Tue Apr 21 22:50:48 CEST 2009


I'm trying to add autofs to set up automatic mounting mounting of
filesystems.

However It fails compling with this message:

marc at nixos:
/tmp/nix-build-6ifmhynnj08p10xf0javh4sa43c6ab8r-autofs-5.0.4.drv-0/autofs-5.0.4/lib ]$ strace -o /tmp/trace -f
/nix/store/a8922c0h87iilxzzvwn2hmv8x210aqb9-glibc-2.7/bin/rpcgen -h -o
mount.h mount.x
cannot find any C preprocessor (cpp)

strace reveals:

  14385 stat("/lib/cpp", 0x7fff55a89700)  = -1 ENOENT (No such file or directory)
  14385 stat("/usr/ccs/lib/cpp", 0x7fff55a89700) = -1 ENOENT (No such file or directory)

So is the way to go patching glibc so that rpcgen uses cpp from PATH?

Sincerly
Marc Weber



More information about the nix-dev mailing list