It's right. The symlink to cpp at /lib, was:

cpp -> /sources/gcc-4.1.2/gcc-build/usr/bin/cpp

        It's from standard path of LFS. Then, i did:

rm -v /lib/cpp
ln -v /usr/bin/cpp /lib/cpp [Considering here that my cpp program is 
correctly linked in the system libraries]

        Now, compile normal. The expression of sed isn't necessary.

        Thanks to the answer!

Abraão

----- Original Message ----- 
From: "Dan Nicholson" <[EMAIL PROTECTED]>
To: "Abraão Ferreira" <[EMAIL PROTECTED]>; "BLFS Support List" 
<[email protected]>
Sent: Friday, April 11, 2008 10:43 AM
Subject: Re: Problem with autoFS


On Fri, Apr 11, 2008 at 12:35 AM, Abraão Ferreira <[EMAIL PROTECTED]> 
wrote:
>
>
>     I'm trying to install the package autoFS version 4.1.4 and after the
> package version 5.0.3. I'm using kernel version 2.6.22.5, but receive the
> follow message:
>
> /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

I just tested, and I think you must be missing the symlink to cpp at /lib. 
I.e.,

$ ls -l /lib/cpp
lrwxrwxrwx 1 root root 14 Feb 29 22:30 /lib/cpp -> ../usr/bin/cpp

After that, run
$ echo | rpcgen -h
$ echo $?

If you still have errors, check that /usr/bin/cpp actually exists.

>         I tried the suggestion of the websites:
>
> sed -i 's:^\(RPCGEN = .*\)$/\1 -Y /usr/bin:' lib/Makefile
>
>         But it give me another error:
>
> sed: -e expression #1, char 35: unterminated 's' command

You shouldn't need this fix, but the problem is that the delimiter is
the : in this case not a / like you normally do with sed 's/old/new/'.
So, the "/" after the $ needs to be a ":".

--
Dan


-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.11/1368 - Release Date: 9/4/2008 
16:20

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to