#1768: autofs-4.1.4/lib/Makefile: rpcgen cannot find cpp
-----------------------------------+----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [email protected]
     Type:  defect                 |       Status:  closed                      
  
 Priority:  high                   |    Milestone:  future                      
  
Component:  BOOK                   |      Version:  6.1                         
  
 Severity:  minor                  |   Resolution:  invalid                     
  
 Keywords:                         |  
-----------------------------------+----------------------------------------
Changes (by [EMAIL PROTECTED]):

  * resolution:  => invalid
  * status:  new => closed

Old description:

> make[1]: Entering directory '/usr/src/autofs/autofs-4.1.4/lib'
> gcc -O3 -fomit-frame-pointer -Wall -I../include -fPIC -D_GNU_SOURCE
> -DHAVE_TCP_WRAPPERS -DNFS3_SUPPORTED -c cache.c
> /usr/bin/rpcgen -h -o mount.h mount.x
> cannot find any C preprocessor (cpp)
> /usr/bin/rpcgen: C preprocessor failed with exit code 1
> make[1]: *** [mount.h] Error 1
> make[1]: Leaving directory '/usr/src/autofs/autofs-4.1.4/lib'
> make: *** [daemon] Error 2
>
> adding this step before running 'make' or './configure' tells rpc to look
> for
> cpp in '/usr/bin':
>
> sed -i 's:^\(RPCGEN = .*\)$/\1 -Y /usr/bin:' lib/Makefile

New description:

 make[1]: Entering directory '/usr/src/autofs/autofs-4.1.4/lib'
 gcc -O3 -fomit-frame-pointer -Wall -I../include -fPIC -D_GNU_SOURCE
 -DHAVE_TCP_WRAPPERS -DNFS3_SUPPORTED -c cache.c
 /usr/bin/rpcgen -h -o mount.h mount.x
 cannot find any C preprocessor (cpp)
 /usr/bin/rpcgen: C preprocessor failed with exit code 1
 make[1]: *** [mount.h] Error 1
 make[1]: Leaving directory '/usr/src/autofs/autofs-4.1.4/lib'
 make: *** [daemon] Error 2

 adding this step before running 'make' or './configure' tells rpc to look
 for
 cpp in '/usr/bin':

 sed -i 's:^\(RPCGEN = .*\)$/\1 -Y /usr/bin:' lib/Makefile

Comment:

 rpcgen is installed as a part of glibc.
 cpp is installed as a part of gcc.

 Reporter's installation is not correct.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/1768>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to