<!-- Title: 21:47:25  Thu Jan  5 2006 -->
<!-- Crewchief: gbyu -->
<!-- Op1: &nbsp; -->
<!-- Op2: &nbsp; -->
<!-- Op3: &nbsp; -->
<!-- Op4: &nbsp; -->
<!-- Op5: &nbsp; -->
<!-- Op6: &nbsp; -->
<!-- Notes: -->
<pre>CSL code changes for building in SL.</pre>


<!-- Date: Thu Jan 5 21:54:23 2006 -->
<pre>In setup_csl.csh 
 
a. commnet out  
 
  source ~cdfsoft/cdf2.cshrc 
  setup kai v4_0f 
  setup root v3_05_07c -qKCC_4_0 
 
 and add 
 
  setup root v4_00_08g -qGCC_3_4_3 
 
b. comment out  
 
if ("$SYS_NAME" =~ IRIX64 ) then 
    setenv CDFSOFT2_INCLUDEDIR \ 
        "/cdf/code/cdfoffline/dist/releases/5.2.0/include" 
    setenv CDFSOFT2_LIBDIR \ 
        "/cdf/code/cdfoffline/dist/releases/5.2.0/lib/IRIX6-KCC_4_0" 
    setup smartsockets v5_5 
else 
    setenv CDFSOFT2_INCLUDEDIR \ 
        "/cdf/code/cdfoffline/dist/releases/5.3.1/include" 
    setenv CDFSOFT2_LIBDIR \ 
        "/cdf/code/cdfoffline/dist/releases/5.3.1/lib/Linux2-KCC_4_0" 
    setup smartsockets v6_0 
endif 
 
 and add 
 
setenv CDFSOFT2_INCLUDEDIR \ 
    "/cdf/onln/code/cdfsoft/dist/releases/6.1.2/include" 
setenv CDFSOFT2_LIBDIR \ 
    "/cdf/onln/code/cdfsoft/dist/releases/6.1.2/lib/Linux2_SL-GCC_3_4" 
setup smartsockets v6_0 
 
=========================================================== 
In make/cs_header.gmk 
 
a.  
 
line 185: 
  replace "KCC" with "g++" 
 
line 190: 
  replace "-m486" with "-march=i486" 
 
line 197: 
  remove "--no_exceptions" 
 
b. replace "-ldb-3.3" with "-ldb" 
 
c. replace "+K0 -lint" with "-o0"" 
 
========================================================= 
In src/library/csl_lock.c, include/csl_lock.h 
 
 delete all lines except csl_lock_mutex 
 
========================================================= 
In src/library/csl_report.c 
 
 delete "#include l3_misc_defns.h" 
 delete "#include l3_msgbuf.h" 
 
========================================================= 
In src/library/l3_csl_socket.c 
 
 Replace "__UNIX__" by "__linux__" 
 
========================================================= 
 
In src/library/csl_rsdb.c 
 
Attach LL in the end of definition for Unsigned long long 
 
========================================================= 
 
type definition error in include/cdf_csl_msg_c.h 
 
    Have to fix merlin code: $MERLIN_DIR/src/MLProductDbManager.java 
 
Now definitions in cdf_csl_msg_c.h were fixed by hand and the file will not be deleted by 'gmake clean' 
 
========================================================== 
 
 New libdb.a and db.h are installed. 
 The instruction is following: 
 
  % lftpget ftp://ftp.sleepycat.com/releases/db-3.1.17.tar.gz 
  % tar xzf db-3.1.17.tar.gz 
  % cd db-3.1.17 
  % cd build_unix 
  % ../dist/configure 
  % make 
  % cp libdb.a ... 
  % cp db.h ...</pre>
<!-- Author: Geumbong -->


<!-- Date: Tue Jan 24 20:10:02 2006 -->
<pre> &lt; Bug fix &gt; 
 
The first signiture of error was the message from csl_msgque.c 
 
 Msg: goal 32 bytes, received length 28 bytes 
 
 solution: In csl_msgque.c 
 
 1) In csl_msgque_send(const msgque_t msgque_id, const msgbuf_t msgbuf_id) 
 and csl_msgque_send_nowait() 
 
 replace 'length = (long int) msgsnd(~~~~);' by nbytes = (long int) msgsnd(~~~). 
 
 When printing nbytes, the msgsnd returns 0 and it seemed to cause trouble.  
 
 2) comment out  
 
 length += (int) sizeof(long int); 
 
 It makes length vary.  
 
 3) Following line shows up twice. comments the subtraction part out.  
 
 long int length = msgbuf_id.cur_length - // (int) sizeof(long long int) 
 
 &lt; Permission &gt; 
 
 To make 6 csl processes run, I had to change the permission that group(cdf) can write files in log directories such as csl_conssend, csl_receiver, etc. Current csl, which is running in b0dap83, doesn't require such broad permission. 
  
  
</pre>
<!-- Author: Geumbong -->
<!-- Comment: Tue Feb 28 18;44;52 comment by...Geumbong -->
<pre>This bug fix does not solve csl running in SL. 
We gave up this fix. </pre>
<!-- Date: Thu Feb 2 18:37:24 2006 -->
<pre>*** Current calibration csl running in b0dap83 ***** 
 
 To get safe code from new code area, /cdf/onln, 
 setups in /csh/setup_csl.csh is modified JUST FOR NOW  
as following: 
 
 =============================================== 
#source ~cdfsoft/cdf2.cshrc 
setup gtools 
setup fer 
setup kai v4_0f_a 
#setup java # v1_2_2 (Doesn't compile with v1_2_2 on b0csl02) 
setup root v3_05_07c -qKCC_4_0 
 
setenv CLASSPATH `dropit -p$CLASSPATH "csl/cs-logger"` 
 
setenv CDFSOFT2_INCLUDEDIR \ 
    "/cdf/onln/code/cdfsoft/dist/releases/5.3.4/include" 
setenv CDFSOFT2_LIBDIR \ 
    "/cdf/onln/code/cdfsoft/dist/releases/5.3.4/lib/Linux2-KCC_4_0" 
setup smartsockets v6_0 
 
============================================== 
 
 I'm not going to update this code to cvs.</pre>
<!-- Author: Geumbong -->