Encountered issues » History » Version 2
Version 1 (Herve Ballans, 08/06/2016 15:45) → Version 2/6 (Herve Ballans, 08/06/2016 15:47)
{{toc}}
h1. Encountered issues
h2. h3. Modification du fichier /usr/local/netdrms_current/configure (Not Applied in NetDrms_8.10 and NetDrms_8.11 )
<pre>
# The system configuration for configure script
set PERLBIN = "/usr/bin/perl"
set PYBIN = "/usr/bin/python"
</pre>
h2. h3. Compilation problem due to uncorrect variable types (Not Applied in NetDrms_8.11)
Art (art.amezcua@stanford.edu) purpose us a workaround and send us 2 files with correct declaration :
SUMLIB_RmDo.pgc (diff with original file : [[diff_SUMLIB_RmDo.pgc]])
SUMLIB_RmDoX.pgc (diff with original file : [[diff_SUMLIB_RmDoX.pgc]])
In dir base/sums/libs/pg rename former file into *.orig and replace by SUMLIB_RmDo.pgc et SUMLIB_RmDoX.pgc
<pre>
# wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDo.pgc
# wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDoX.pgc
</pre>
h2. h3. Modification du fichier /usr/local/netdrms_current/build/jsoc_machine.csh (Same issue in NetDrms 8.11 )
ligne 28 :
<pre>
case "x86_64":
echo linux_x86_64
breaksw
</pre>
Overwriting the existing files in the right place (base/sums/libs/pg) & modif in jsoc_machine.csh
=> the command 'make' works well.
But there is still problem with 'make sums'
h2. h3. Workaround to solve make sums problem
Modify [[sum_rpc.h]] in order to match the type of some variables
h2. h3. 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)
h2. h3. Modification du fichier /usr/local/netdrms_current/configure (not applied in NetDrms_8.10 and NetDrms8.11 )
au lieu de $? en csh on va mettre plutot $status
ligne 110 :
<pre>
if ($status==0)
</pre>
et ligne 123 :
<pre>
if ($status==0)
</pre>
%{color:red}------------------------------------------------------------------------------------------------------------------%
h2. h3. #H4ck 2 Malade #PabloR0cks# (Not Applied in NetDrm_8.10)
Modification du fichier /usr/include/stdint.h
ligne 55 : long int remplacé par long long int
<pre>
#if __WORDSIZE == 64
typedef unsigned long int uint64_t; --> ici long long int
#else
__extension__
typedef unsigned long long int uint64_t;
#endif
</pre>
"Allo Linus ?!?.."
h2. make sums KO (Not applied in NetDrms_8.10)
Solution found : Take old lib libcrypto instead libssl
dans le fichier base/sums/apps/Rules.mk ligne 51
replace -lssl by -lcrypto LD flag
h1. Encountered issues
h2. h3. Modification du fichier /usr/local/netdrms_current/configure (Not Applied in NetDrms_8.10 and NetDrms_8.11 )
<pre>
# The system configuration for configure script
set PERLBIN = "/usr/bin/perl"
set PYBIN = "/usr/bin/python"
</pre>
h2. h3. Compilation problem due to uncorrect variable types (Not Applied in NetDrms_8.11)
Art (art.amezcua@stanford.edu) purpose us a workaround and send us 2 files with correct declaration :
SUMLIB_RmDo.pgc (diff with original file : [[diff_SUMLIB_RmDo.pgc]])
SUMLIB_RmDoX.pgc (diff with original file : [[diff_SUMLIB_RmDoX.pgc]])
In dir base/sums/libs/pg rename former file into *.orig and replace by SUMLIB_RmDo.pgc et SUMLIB_RmDoX.pgc
<pre>
# wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDo.pgc
# wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDoX.pgc
</pre>
h2. h3. Modification du fichier /usr/local/netdrms_current/build/jsoc_machine.csh (Same issue in NetDrms 8.11 )
ligne 28 :
<pre>
case "x86_64":
echo linux_x86_64
breaksw
</pre>
Overwriting the existing files in the right place (base/sums/libs/pg) & modif in jsoc_machine.csh
=> the command 'make' works well.
But there is still problem with 'make sums'
h2. h3. Workaround to solve make sums problem
Modify [[sum_rpc.h]] in order to match the type of some variables
h2. h3. 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)
h2. h3. Modification du fichier /usr/local/netdrms_current/configure (not applied in NetDrms_8.10 and NetDrms8.11 )
au lieu de $? en csh on va mettre plutot $status
ligne 110 :
<pre>
if ($status==0)
</pre>
et ligne 123 :
<pre>
if ($status==0)
</pre>
%{color:red}------------------------------------------------------------------------------------------------------------------%
h2. h3. #H4ck 2 Malade #PabloR0cks# (Not Applied in NetDrm_8.10)
Modification du fichier /usr/include/stdint.h
ligne 55 : long int remplacé par long long int
<pre>
#if __WORDSIZE == 64
typedef unsigned long int uint64_t; --> ici long long int
#else
__extension__
typedef unsigned long long int uint64_t;
#endif
</pre>
"Allo Linus ?!?.."
h2. make sums KO (Not applied in NetDrms_8.10)
Solution found : Take old lib libcrypto instead libssl
dans le fichier base/sums/apps/Rules.mk ligne 51
replace -lssl by -lcrypto LD flag