2003-03-28 13:29:24

by Justin Piszcz

[permalink] [raw]
Subject: nfs-utils 1.0.3 compile error w/gcc-3.2.2

-rw-r--r-- 1 war wheel 2.7k Mar 28 08:24 log.bz2

The error is contained in the attachment.


Attachments:
log.bz2 (2.74 kB)

2003-03-28 14:57:57

by Alex Thiel

[permalink] [raw]
Subject: Re: nfs-utils 1.0.3 compile error w/gcc-3.2.2

On Friday 28 March 2003 14:29, Justin Piszcz wrote:
> -rw-r--r-- 1 war wheel 2.7k Mar 28 08:24 log.bz2
>
> The error is contained in the attachment.

Did you notice this in your log:

Making all in export
rm -f mount.h mount_clnt.c mount_xdr.c
../../bin/rpcgen -h -o mount.h mount.x
cannot find any C preprocessor (cpp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Make sure cpp is in your search path.

Alex



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-03-28 15:13:47

by Justin Piszcz

[permalink] [raw]
Subject: Re: nfs-utils 1.0.3 compile error w/gcc-3.2.2

CPP is in my path, is it hardcoded or something?


war@war:~$ which cpp
/vapp/bin/cpp
war@war:~$ cpp --version
cpp (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

war@war:~$ echo $PATH
/vapp/bin:/vapp/sbin:/appc/netscape-4.8:/appc/realplayer-8.0:/appc/j2re-1.4.1/bin:/appc/jdk-1.4.1/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
war@war:~$



Alex Thiel wrote:

>On Friday 28 March 2003 14:29, Justin Piszcz wrote:
>
>
>>-rw-r--r-- 1 war wheel 2.7k Mar 28 08:24 log.bz2
>>
>>The error is contained in the attachment.
>>
>>
>
>Did you notice this in your log:
>
>Making all in export
>rm -f mount.h mount_clnt.c mount_xdr.c
>../../bin/rpcgen -h -o mount.h mount.x
>cannot find any C preprocessor (cpp)
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>Make sure cpp is in your search path.
>
> Alex
>
>
>
>
>




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-03-28 19:58:56

by Alex Thiel

[permalink] [raw]
Subject: Re: nfs-utils 1.0.3 compile error w/gcc-3.2.2

Taking a quick glance at tools/rpcgen/rpc_main.c, I notice that by default
rpcgen expects cpp in one of these two locations:

#define SVR4_CPP "/usr/ccs/lib/cpp"
#define SUNOS_CPP "/lib/cpp"

However, rpcgen --help reveals this:
./rpcgen --help
[snip]
-Y path directory name to find C preprocessor (cpp)

Hope that helps,

Alex


On Friday 28 March 2003 16:13, Justin Piszcz wrote:
> CPP is in my path, is it hardcoded or something?
>
>
> war@war:~$ which cpp
> /vapp/bin/cpp
> war@war:~$ cpp --version
> cpp (GCC) 3.2.2
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> war@war:~$ echo $PATH
> /vapp/bin:/vapp/sbin:/appc/netscape-4.8:/appc/realplayer-8.0:/appc/j2re-1.4
>.1/bin:/appc/jdk-1.4.1/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr
>/local/bin:/usr/local/sbin war@war:~$
>
> Alex Thiel wrote:
> >On Friday 28 March 2003 14:29, Justin Piszcz wrote:
> >>-rw-r--r-- 1 war wheel 2.7k Mar 28 08:24 log.bz2
> >>
> >>The error is contained in the attachment.
> >
> >Did you notice this in your log:
> >
> >Making all in export
> >rm -f mount.h mount_clnt.c mount_xdr.c
> >../../bin/rpcgen -h -o mount.h mount.x
> >cannot find any C preprocessor (cpp)
> >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> >Make sure cpp is in your search path.
> >
> > Alex
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs