[distcc] How to pass on Sun W.S. " LM_LICENSE_FILE" variable to secondary distcc host ?

Yang Tj-ATY010 ATY010 at motorola.com
Wed Apr 21 19:14:59 GMT 2004


Hi, there


Sun Workshop C compiler use floating licence environment.
once "LM_LICENSE_FILE=port at flexlmserver" variable got
set in .profile the cc was able to called to compile
c codes.

Giving the successful test result of distcc-1.12.1+gcc-3.3.2 on 
one pair of Sun V240s(ilad2141 and ilad2140), 
I moved on to try distcc-2.12.1+ Sun WorkShop 6 update 2 cc compiler
Sun cc combination. 

I tried adding  "--verbose" to have more clue, but still
don't know how can I pass on license variable.

Things that I have tried.

1. gmake  -j8  CC="distcc cc" LM_LICENSE_FILE="1726 at flexlmserver"
   Do I need to modified the makefile of zlib-1.1.4 ?

2. put LM_LICENSE_FILE="1726 at flexlmserver" in both root and
   distcc users' .profile. 

Following error messsage is from compiling  zlib-1.1.4.

root at ilad2141>
<snip>
distcc cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DPROTOTYPES=1 -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_DLFCN_H=1 -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -I. -I. -mr -Qn -xstrconst -xO2 -xtarget=generic -xarch=v8 -c uncompr.c  -KPIC -DPIC -o uncompr.o

License Error : Cannot find license file (/usr/local/flexlm/licenses/license.dat)
        for Sun WorkShop Compiler C SPARC

        The product has not been installed properly.
        There are no license files in following path :

                None

Cannot find license file
 The license files (or server network addresses) attempted are
 listed below.  Use LM_LICENSE_FILE to use a different license file,
 or contact your software provider for a license file.
Feature:workshop.c.sparc
Filename:/usr/local/flexlm/licenses/license.dat
License path:/usr/local/flexlm/licenses/license.dat
FLEXlm error:-1,359.  System Error: 2    No such file or directory
cc: acomp failed for /tmp/distccd_a534c50a.i
distcc[9056] ERROR: compile on ilad2140 failed with exit code 2
<snip>
root at ilad2141>

Thanks for your time

tj



More information about the distcc mailing list