[distcc] Re: Patch for Sun's Workshop 6

Ramanan Radhakrishnan radharamananr at yahoo.com
Wed Jan 21 22:29:38 GMT 2004


Hi,

I am trying to use distcc on a network of Solaris 2.7 workstations and I
also ran into this problem. I modified the src just like you did but I still
have problems compiling certain C++ files - specifically those that include
STL headers.

Has anyone figured out how to prevent the re-inclusion of the headers?

P. Christeas wrote:
> Hi all and thanks for the great project
> I have CC: Sun WorkShop 6 update 1 C++ 5.2, which works with distcc.
> However, that compiler doesn't like '.ii' input files. 
> I simply created the following patch, which works for me but could break some 
> others. Can you find a test or add a '--with-sun-cc' option to control that?
> 
> please CC. me
> 
> 
> ------------------------------------------------------------------------
> 
> diff -bBur distcc-2.11.2-new/src/filename.c distcc-2.11.2/src/filename.c
> --- distcc-2.11.2-new/src/filename.c	2003-10-23 11:47:43.000000000 +0300
> +++ distcc-2.11.2/src/filename.c	2003-07-22 10:32:36.000000000 +0300
> @@ -144,11 +144,7 @@
>                 || !strcmp(e, "cpp") || !strcmp(e, "cxx")
>                 || !strcmp(e, "cp") || !strcmp(e, "c++")
>                 || !strcmp(e, "C") || !strcmp(e, "ii")) {
> -#if 1
> -				return ".i"; //Sun's CC doesn't know '.ii'
> -#else
>  				return ".ii";
> -#endif
>      } else if(!strcmp(e,"mi") || !strcmp(e, "m")) {
>          return ".mi";
>      } else if(!strcmp(e,"mii") || !strcmp(e,"mm")
> 
> 
> ------------------------------------------------------------------------
> 
> __ 
> distcc mailing list            http://distcc.samba.org/
> To unsubscribe or change options: 
> http://lists.samba.org/mailman/listinfo/distcc





More information about the distcc mailing list