Project

General

Profile

Encountered issues » History » Version 4

Pablo Alingery, 10/06/2016 15:02

1 1 Herve Ballans
{{toc}}
2 1 Herve Ballans
3 1 Herve Ballans
h1. Encountered issues
4 1 Herve Ballans
5 2 Herve Ballans
h2. Modification du fichier /usr/local/netdrms_current/configure (Not Applied in NetDrms_8.10 and NetDrms_8.11 )
6 1 Herve Ballans
7 1 Herve Ballans
<pre>
8 1 Herve Ballans
# The system configuration for configure script
9 1 Herve Ballans
set PERLBIN = "/usr/bin/perl"
10 1 Herve Ballans
set PYBIN = "/usr/bin/python"
11 1 Herve Ballans
</pre>
12 1 Herve Ballans
13 2 Herve Ballans
h2. Compilation problem due to uncorrect variable types (Not Applied in NetDrms_8.11)
14 1 Herve Ballans
15 1 Herve Ballans
Art (art.amezcua@stanford.edu) purpose us a workaround and send us 2 files with correct declaration :
16 1 Herve Ballans
17 1 Herve Ballans
SUMLIB_RmDo.pgc (diff with original file : [[diff_SUMLIB_RmDo.pgc]])
18 1 Herve Ballans
SUMLIB_RmDoX.pgc (diff with original file : [[diff_SUMLIB_RmDoX.pgc]])
19 1 Herve Ballans
20 1 Herve Ballans
In dir  base/sums/libs/pg rename former file into *.orig and replace by SUMLIB_RmDo.pgc et SUMLIB_RmDoX.pgc
21 1 Herve Ballans
22 1 Herve Ballans
<pre>
23 1 Herve Ballans
# wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDo.pgc
24 1 Herve Ballans
# wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDoX.pgc
25 1 Herve Ballans
</pre>
26 1 Herve Ballans
27 2 Herve Ballans
h2. Modification du fichier /usr/local/netdrms_current/build/jsoc_machine.csh (Same issue in NetDrms 8.11 )
28 1 Herve Ballans
29 1 Herve Ballans
ligne 28 :
30 1 Herve Ballans
31 1 Herve Ballans
<pre>
32 1 Herve Ballans
  case "x86_64":
33 1 Herve Ballans
      echo linux_x86_64
34 1 Herve Ballans
      breaksw
35 1 Herve Ballans
</pre>
36 1 Herve Ballans
37 1 Herve Ballans
Overwriting the existing files in the right place (base/sums/libs/pg) & modif in jsoc_machine.csh 
38 1 Herve Ballans
=> the command 'make' works well.
39 1 Herve Ballans
40 1 Herve Ballans
But there is still problem with 'make sums'
41 1 Herve Ballans
42 2 Herve Ballans
h2. Workaround to solve make sums problem
43 1 Herve Ballans
44 1 Herve Ballans
Modify [[sum_rpc.h]] in order to match the type of some variables
45 1 Herve Ballans
46 2 Herve Ballans
h2. Copier /usr/local/netdrms_2.4_release/base/drms/apps/serverdefs.h dans /usr/local/netdrms_current/base/drms/apps (not applied in NetDrms_8.10 and NetDrms8.11)
47 1 Herve Ballans
48 2 Herve Ballans
h2. Modification du fichier /usr/local/netdrms_current/configure (not applied in NetDrms_8.10 and NetDrms8.11 )
49 1 Herve Ballans
50 1 Herve Ballans
au lieu de $? en csh on va mettre plutot $status
51 1 Herve Ballans
52 1 Herve Ballans
ligne 110 :
53 1 Herve Ballans
54 1 Herve Ballans
<pre>
55 1 Herve Ballans
  if ($status==0) 
56 1 Herve Ballans
</pre>
57 1 Herve Ballans
58 1 Herve Ballans
et ligne 123 :
59 1 Herve Ballans
60 1 Herve Ballans
<pre>
61 1 Herve Ballans
  if ($status==0) 
62 1 Herve Ballans
</pre>
63 1 Herve Ballans
64 1 Herve Ballans
65 1 Herve Ballans
66 1 Herve Ballans
%{color:red}------------------------------------------------------------------------------------------------------------------%
67 1 Herve Ballans
68 2 Herve Ballans
h2. #H4ck 2 Malade #PabloR0cks# (Not Applied in NetDrm_8.10)
69 1 Herve Ballans
70 1 Herve Ballans
Modification du fichier /usr/include/stdint.h
71 1 Herve Ballans
72 1 Herve Ballans
ligne 55 : long int remplacé par long long int
73 1 Herve Ballans
74 1 Herve Ballans
<pre>
75 1 Herve Ballans
#if __WORDSIZE == 64
76 1 Herve Ballans
typedef unsigned long int       uint64_t; --> ici long long int
77 1 Herve Ballans
#else
78 1 Herve Ballans
__extension__
79 1 Herve Ballans
typedef unsigned long long int  uint64_t;
80 1 Herve Ballans
#endif
81 1 Herve Ballans
</pre>
82 1 Herve Ballans
83 1 Herve Ballans
"Allo Linus ?!?.."
84 2 Herve Ballans
85 2 Herve Ballans
h2. make sums KO  (Not applied in NetDrms_8.10)
86 2 Herve Ballans
87 2 Herve Ballans
Solution found : Take old lib libcrypto instead libssl
88 2 Herve Ballans
89 2 Herve Ballans
dans le fichier base/sums/apps/Rules.mk ligne 51 
90 2 Herve Ballans
replace -lssl by -lcrypto LD flag
91 3 Herve Ballans
92 3 Herve Ballans
h2. show_series and delete_series binaries
93 3 Herve Ballans
94 3 Herve Ballans
Remark : these 2 sources are not compiled during installation
95 3 Herve Ballans
Issue : in netdrms_current 8.10 , do :
96 3 Herve Ballans
$ make delete_series
97 3 Herve Ballans
$ make show_series
98 4 Pablo Alingery
99 4 Pablo Alingery
100 4 Pablo Alingery
h2. Database repair (from Art)
101 4 Pablo Alingery
102 4 Pablo Alingery
On ias_sdo
103 4 Pablo Alingery
104 4 Pablo Alingery
<pre>
105 4 Pablo Alingery
delete from admin.ns where name = 'lm_jps';
106 4 Pablo Alingery
delete from admin.ns where name = 'aia_test';
107 4 Pablo Alingery
</pre>