- Table of contents
- Encountered issues
- Modification du fichier /usr/local/netdrms_current/configure (Not Applied in NetDrms_8.10 and NetDrms_8.11 )
- Compilation problem due to uncorrect variable types (Not Applied in NetDrms_8.11)
- Modification du fichier /usr/local/netdrms_current/build/jsoc_machine.csh (Same issue in NetDrms 8.11 )
- Workaround to solve make sums problem
- 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)
- Modification du fichier /usr/local/netdrms_current/configure (not applied in NetDrms_8.10 and NetDrms8.11 )
- #H4ck 2 Malade #PabloR0cks# (Not Applied in NetDrm_8.10)
- make sums KO (Not applied in NetDrms_8.10)
- show_series and delete_series binaries
- Database repair (from Art)
Encountered issues¶
Modification du fichier /usr/local/netdrms_current/configure (Not Applied in NetDrms_8.10 and NetDrms_8.11 )¶
# The system configuration for configure script set PERLBIN = "/usr/bin/perl" set PYBIN = "/usr/bin/python"
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
# wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDo.pgc # wget http://jsoc.stanford.edu/~arta/SUMLIB_RmDoX.pgc
Modification du fichier /usr/local/netdrms_current/build/jsoc_machine.csh (Same issue in NetDrms 8.11 )¶
ligne 28 :
case "x86_64": echo linux_x86_64 breaksw
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'
Workaround to solve make sums problem¶
Modify sum_rpc.h in order to match the type of some variables
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)¶
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 :
if ($status==0)
et ligne 123 :
if ($status==0)
#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
#if __WORDSIZE == 64 typedef unsigned long int uint64_t; --> ici long long int #else __extension__ typedef unsigned long long int uint64_t; #endif
"Allo Linus ?!?.."
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
show_series and delete_series binaries¶
Remark : these 2 sources are not compiled during installation
Issue : in netdrms_current 8.10 , do :
$ make delete_series
$ make show_series
Database repair (from Art)¶
On ias_sdo
delete from admin.ns where name = 'lm_jps'; delete from admin.ns where name = 'aia_test'; delete from hmi.drms_series where seriesname='hmi.sharp_720s_nrt'