rpcgen

Hey all,

I have a very weird problem with rpcgen utility: when i run in on simple RPC
project it complains that it cannot find “cpp” utility i.e. AFAIU C/C++
preprocessor.

Platform: QNX 4.25J + Watcom 10.6B + Tcpip 5.00C as sin reports.

— cut proto.x —
struct foo_in {
long arg1;
};
struct foo_out {
long res1;
};
program FOO_PROG {
version FOO_VERS {
foo_out FOOPROC(foo_in) = 1;
} = 1;
} = 0x31230000;
— cut proto.x —

rpcgen proto.x
cannot find any C preprocessor (cpp)

cpp is not mentioned in rpcgen documentation/usage and isn’t bundled with
Watcom C/C++ or TCPIP ToolKit packages. As “strings /usr/ucb/rpcgen” says,
it’s expected that i have /lib/cpp. But i do not.

Any ideas how can i force rpcgen to work ?

Thanks.

// wbr


JSC Novosibirsk Geophysical Equipment Development Center
http://www.megasignal.com

works fine for me.
I don’t even have a /lib directory.
here is my “strings /usr/ucb/rpcgen”
strings /usr/ucb/rpcgen | grep cpp
/lib/cpp
cannot find any C preprocessor (cpp)
/cpp
-Y path directory name to find C preprocessor (cpp)

and I ran “rpcgen” without any options. looks like it searches
your PATH also, for cpp.

btw, my “cpp” is in /usr/X11R6/bin, as part of the XFree86 4.2 from
openqnx.

Good luck!

Ian Zagorskih <ianzag@megasignal.com> wrote:

Hey all,

I have a very weird problem with rpcgen utility: when i run in on simple RPC
project it complains that it cannot find “cpp” utility i.e. AFAIU C/C++
preprocessor.

Platform: QNX 4.25J + Watcom 10.6B + Tcpip 5.00C as sin reports.

— cut proto.x —
struct foo_in {
long arg1;
};
struct foo_out {
long res1;
};
program FOO_PROG {
version FOO_VERS {
foo_out FOOPROC(foo_in) = 1;
} = 1;
} = 0x31230000;
— cut proto.x —

rpcgen proto.x
cannot find any C preprocessor (cpp)

cpp is not mentioned in rpcgen documentation/usage and isn’t bundled with
Watcom C/C++ or TCPIP ToolKit packages. As “strings /usr/ucb/rpcgen” says,
it’s expected that i have /lib/cpp. But i do not.

Any ideas how can i force rpcgen to work ?

Thanks.

// wbr


JSC Novosibirsk Geophysical Equipment Development Center
http://www.megasignal.com

“Frank Liu” <fliu@mail.vipstage.com> wrote in message
news:brkuip$qk1$1@inn.qnx.com

works fine for me.
I don’t even have a /lib directory.
here is my “strings /usr/ucb/rpcgen”
strings /usr/ucb/rpcgen | grep cpp
/lib/cpp
cannot find any C preprocessor (cpp)
/cpp
-Y path directory name to find C preprocessor (cpp)

I do not have this option in “use rpcgen” though when i use it, rpcgen at
least dosn’t complain about invalid arguments.

and I ran “rpcgen” without any options. looks like it searches
your PATH also, for cpp.

I have tried cpp wrapper script from Perl 5.8.2 and stand alone cpp from
OpenWatcom 1.0.1. Both seems to work fine as preprocessors but do not work
with rpcgen :frowning:

btw, my “cpp” is in /usr/X11R6/bin, as part of the XFree86 4.2 from
openqnx.

Good luck!

Thanks, seems like i’m too unlucky :slight_smile:

So the question is still pending:

Which exactly cpp utility rpcgen expects ? What should be the command line
sintaxis of this utility etc. Where should i get it ? Do i really need to
install XFree86 for QNX4 in order to use rpcgen from standard TCPIP 5.x
package ?

// wbr

Ian Zagorskih <ianzag@megasignal.com> wrote:

Which exactly cpp utility rpcgen expects ? What should be the command line
sintaxis of this utility etc. Where should i get it ? Do i really need to
install XFree86 for QNX4 in order to use rpcgen from standard TCPIP 5.x
package ?

I tried the cpp that is included with the commercial X Window 5 from QSS
and it worked too. So if you have purchased X from QNX, you are
in luck :slight_smile: