2002-04-13 14:39:58

by miah

[permalink] [raw]
Subject: Problems building nfs-utils 0.3.3


Hi all,

I'm not really sure why, but nfs-utils has stopped compiling for us. If we had the time to fully look into this issue we would. I tried the latest cvs version, but that appears to have the same problem too. Attached is our build log, if anybody can shed some light on this, we'd appreciate it.

Thanks
-miah


Attachments:
(No filename) (321.00 B)
build.log (19.27 kB)
Download all attachments

2002-04-15 09:18:50

by James Pearson

[permalink] [raw]
Subject: Re: Problems building nfs-utils 0.3.3

miah wrote:
>
> Hi all,
>
> I'm not really sure why, but nfs-utils has stopped compiling for us. If we had the time to fully look into this issue we would. I tried the latest cvs version, but that appears to have the same problem too. Attached is our build log, if anybody can shed some light on this, we'd appreciate it.
>

Not an expert on this sort of thing, but:

> 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)
> ../../bin/rpcgen -l -o mount_clnt.c mount.x
> cannot find any C preprocessor (cpp)
> ../../bin/rpcgen -c -o mount_xdr.c mount.x
> cannot find any C preprocessor (cpp)

looks like is part of the problem ...

Do you have /lib/cpp (which on my systems is a symbolic link to
/usr/bin/cpp) ?

James Pearson

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2002-04-15 13:59:10

by miah

[permalink] [raw]
Subject: Re: Problems building nfs-utils 0.3.3

I actually patched rpcgen to look for cpp in the proper place (/usr/bin) (I really with the glibc people would get with it..) But for some reason creating a symlink in /lib to /usr/bin/cpp fixes the build. I guess I'll have to double check my rpcgen patch to make sure its working properly.

Thanks for pointing this out, I've been looking at this problem for longer than I had hoped and missed this.

-miah

On Mon, Apr 15, 2002 at 10:18:26AM +0100, James Pearson wrote:
> Not an expert on this sort of thing, but:
>
> > 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)
> > ../../bin/rpcgen -l -o mount_clnt.c mount.x
> > cannot find any C preprocessor (cpp)
> > ../../bin/rpcgen -c -o mount_xdr.c mount.x
> > cannot find any C preprocessor (cpp)
>
> looks like is part of the problem ...
>
> Do you have /lib/cpp (which on my systems is a symbolic link to
> /usr/bin/cpp) ?
>
> James Pearson
>
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2002-04-15 14:11:19

by miah

[permalink] [raw]
Subject: Re: Problems building nfs-utils 0.3.3

Actually, after some checking, my patch is fine. Its nfs-utils that is broke. Exerpt from tools/rpcgen/rcp_main.c:

tatic svc_output();
*/

#define EXTEND 1 /* alias for TRUE */
#define DONT_EXTEND 0 /* alias for FALSE */

#define SVR4_CPP "/usr/ccs/lib/cpp"
#define SUNOS_CPP "/lib/cpp"
static int cppDefined = 0; /* explicit path for C preprocessor */


static char *cmdname;

As we see here, its being defined in what I belive to be a inccorect way. I guess if code is to be "Sun OS compatible" it might need to be defined this way, but im sure a configure option could set this properly. For a Linux system though, if its to be FHS compliant, it shouldn't have a cpp in /lib, and it shouldnt have a /usr/ccs/lib dir.

Obviously the patch for me is simple here. Hope a fix for this gets in CVS.

-miah

On Mon, Apr 15, 2002 at 10:18:26AM +0100, James Pearson wrote:
> Not an expert on this sort of thing, but:
>
> > 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)
> > ../../bin/rpcgen -l -o mount_clnt.c mount.x
> > cannot find any C preprocessor (cpp)
> > ../../bin/rpcgen -c -o mount_xdr.c mount.x
> > cannot find any C preprocessor (cpp)
>
> looks like is part of the problem ...
>
> Do you have /lib/cpp (which on my systems is a symbolic link to
> /usr/bin/cpp) ?
>
> James Pearson
>
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs