Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rpcgen cannot find any C Preprocessor

44 views
Skip to first unread message

Praveen

unread,
Nov 30, 2007, 2:00:04 AM11/30/07
to
Hi All ,
I am writing a sample rpc program say msg.x. When I do
rpcgen msg.x I get an
error saying rpcgen cannot find C preprocessor.I have cpp
binary in /usr/bin/cpp-2.95.
Kindly suggest the solution.

Regards,
Praveen Kumar

Ulrich Eckhardt

unread,
Nov 30, 2007, 2:36:45 PM11/30/07
to
Praveen wrote:
> I am writing a sample rpc program say msg.x. When I do
> rpcgen msg.x I get an error saying rpcgen cannot find
> C preprocessor.I have cpp binary in /usr/bin/cpp-2.95.

cpp-2.95? If that is the GCC preprocessor, it is ancient, current version is
4.something, and you should upgrade. Otherwise, I expect that it is looking
for 'cpp', so a simple symlink should do the job. If that doesn't help,
read the instructions, read the code or maybe use 'strace' to find out
where it's looking for the preprocessor.

BTW: please fix your newsclient, your posting was slightly messed up and I
had to reformat the text to fix it.

cheers

Uli

0 new messages