make: *** [Makefile:3: all] Error 2












0















Trying to build and install PharmDock



make


But I get this make error and I don't understand what's wrong



make[1]: Entering directory '/home/ahmed/PharmDock/src/pharmdock'
make[1]: 'docking' is up to date.
make[1]: Leaving directory '/home/ahmed/PharmDock/src/pharmdock'
cd clusterconformers && make && cp clusterconformers ../../bin/genLigPharm/
make[1]: Entering directory '/home/ahmed/PharmDock/src/clusterconformers'
/home/ahmed/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ -g3 -O3 -ffast-math -Wall -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -c -o Residue.o Residue.cpp
Residue.cpp: In member function 'void Residue::AssignElements()':
Residue.cpp:55:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
^
Residue.cpp:55:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
^
Residue.cpp:60:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "CA2+")) == 0 ||
^
Residue.cpp:61:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "CA2")) == 0 ||
^
Residue.cpp:62:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "Ca2+")) == 0)
^
Residue.cpp:67:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "CO2+")) == 0)
^
Residue.cpp:72:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "CU2+")) == 0 ||
^
Residue.cpp:73:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "CU")) == 0)
^
Residue.cpp:78:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "ZN2+")) == 0 ||
^
Residue.cpp:79:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "ZN2")) == 0 ||
^
Residue.cpp:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "ZN")) == 0)
^
Residue.cpp:85:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "NA1+")) == 0)
^
Residue.cpp:90:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "FE")) == 0 ||
^
Residue.cpp:91:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "Fe")) == 0 ||
^
Residue.cpp:92:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "FE2+")) == 0 ||
^
Residue.cpp:93:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "Fe2+")) == 0 ||
^
Residue.cpp:94:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "FE3+")) == 0 ||
^
Residue.cpp:95:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "Fe3+")) == 0 ||
^
Residue.cpp:96:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "FE5+")) == 0 ||
^
Residue.cpp:97:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(n=util.strindex(atom[i]->name, "Fe5+")) == 0)
^
Residue.cpp:102:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
^
Residue.cpp:102:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
^
Residue.cpp:107:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "H")) == 0)
^
Residue.cpp:112:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "B")) == 0)
^
Residue.cpp:117:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "C")) == 0)
^
Residue.cpp:122:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "N")) == 0)
^
Residue.cpp:127:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "O")) == 0)
^
Residue.cpp:132:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "F")) == 0)
^
Residue.cpp:137:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "P")) == 0)
^
Residue.cpp:142:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "S")) == 0)
^
Residue.cpp:147:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "I")) == 0)
^
Residue.cpp:152:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "LMC")) == 0)
^
Residue.cpp:157:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "LMA")) == 0)
^
Residue.cpp:162:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "LMD")) == 0)
^
Residue.cpp:167:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else if((n=util.strindex(atom[i]->name, "LMH")) == 0)
^
Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
Residue.cpp:689:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
sprintf(line, '');
^
In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
from Residue.h:7,
from Residue.cpp:1:
/home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
__NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
^
Residue.cpp:689:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
sprintf(line, '');
^
Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
Residue.cpp:1290:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
sprintf(line, '');
^
In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
from Residue.h:7,
from Residue.cpp:1:
/home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
__NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
^
Residue.cpp:1290:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
sprintf(line, '');
^
Residue.cpp:1271:16: warning: unused variable 'j' [-Wunused-variable]
int i, j, s, charged_atom_id=-999;
^
Residue.cpp: In member function 'void Residue::AssignTorsions()':
Residue.cpp:2571:17: warning: unused variable 'ni' [-Wunused-variable]
int ni, nc, flagOneTorsion;
^~
Residue.cpp: In member function 'void Residue::FindSoma()':
Residue.cpp:2860:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if((save_counter[p] == 2 && (atom[save_store[p][0]]->element == eO && atom[save_store[p][1]]->element == eH) || (atom[save_store[p][0]]->element == eH && atom[save_store[p][1]]->element == eO)))
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Residue.cpp:2768:14: warning: unused variable 'pt' [-Wunused-variable]
torsion *pt;
^~
Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresCharged(int, LPE*, int*, LPE*, int*)':
Residue.cpp:3253:16: warning: unused variable 'j' [-Wunused-variable]
int i, j, k, m, flag_assigned;
^
Residue.cpp:3253:22: warning: unused variable 'm' [-Wunused-variable]
int i, j, k, m, flag_assigned;
^
Residue.cpp:3253:25: warning: unused variable 'flag_assigned' [-Wunused-variable]
int i, j, k, m, flag_assigned;
^~~~~~~~~~~~~
Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresHPhob(int, LPE*, int*)':
Residue.cpp:3373:16: warning: unused variable 'nhp' [-Wunused-variable]
int flag, nhp;
^~~
Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresAro(int, LPE*, int*)':
Residue.cpp:3593:16: warning: unused variable 'j' [-Wunused-variable]
int i, j, k, cr, flag;
^
Residue.cpp: In member function 'void Residue::SortTriangles(float, float, float)':
Residue.cpp:4317:12: warning: unused variable 'max_short' [-Wunused-variable]
float max_short = short_interval*100;
^~~~~~~~~
Residue.cpp: In member function 'void Residue::DetermineSizeOfLigand()':
Residue.cpp:4666:11: warning: unused variable 'fact' [-Wunused-variable]
float fact;
^~~~
Residue.cpp:4667:42: warning: unused variable 'min_i' [-Wunused-variable]
int i, j, k, m, cf, ci, jx, jy, jz, min_i;
^~~~~
Residue.cpp:4668:11: warning: unused variable 'min_dist' [-Wunused-variable]
float min_dist, d2;
^~~~~~~~
Residue.cpp:4668:21: warning: unused variable 'd2' [-Wunused-variable]
float min_dist, d2;
^~
Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
Residue.cpp:4956:13: warning: unused variable 'filename_out' [-Wunused-variable]
char filename_out[kString], line[kString];
^~~~~~~~~~~~
Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
Residue.cpp:6185:19: warning: unused variable 'k' [-Wunused-variable]
int i, j, k, ci, lc;
^
Residue.cpp:6186:13: warning: unused variable 'filename_out' [-Wunused-variable]
char filename_out[kString], line[kString];
^~~~~~~~~~~~
Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
Residue.cpp:681:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
system(comm1);
~~~~~~^~~~~~~
Residue.cpp:691:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 254, fi);
~~~~~^~~~~~~~~~~~~~~
Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
Residue.cpp:1282:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
system(comm1);
~~~~~~^~~~~~~
Residue.cpp:1292:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 254, fi);
~~~~~^~~~~~~~~~~~~~~
Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
Residue.cpp:5133:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5142:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5154:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5163:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5175:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5184:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5196:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5205:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5217:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5226:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5238:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5247:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5306:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:5315:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
Residue.cpp:6204:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6213:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6225:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6234:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6246:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6255:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6267:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6276:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6288:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6297:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6309:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6318:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6445:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
Residue.cpp:6454:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(line, kString, fi);
~~~~~^~~~~~~~~~~~~~~~~~~
In file included from Utilities.h:13:0,
from Residue.h:12,
from Residue.cpp:1:
nrutil.h: At global scope:
nrutil.h:38:21: warning: 'iminarg2' defined but not used [-Wunused-variable]
static int iminarg1,iminarg2;
^~~~~~~~
nrutil.h:38:12: warning: 'iminarg1' defined but not used [-Wunused-variable]
static int iminarg1,iminarg2;
^~~~~~~~
nrutil.h:34:21: warning: 'imaxarg2' defined but not used [-Wunused-variable]
static int imaxarg1,imaxarg2;
^~~~~~~~
nrutil.h:34:12: warning: 'imaxarg1' defined but not used [-Wunused-variable]
static int imaxarg1,imaxarg2;
^~~~~~~~
nrutil.h:30:22: warning: 'lminarg2' defined but not used [-Wunused-variable]
static long lminarg1,lminarg2;
^~~~~~~~
nrutil.h:30:13: warning: 'lminarg1' defined but not used [-Wunused-variable]
static long lminarg1,lminarg2;
^~~~~~~~
nrutil.h:26:22: warning: 'lmaxarg2' defined but not used [-Wunused-variable]
static long lmaxarg1,lmaxarg2;
^~~~~~~~
nrutil.h:26:13: warning: 'lmaxarg1' defined but not used [-Wunused-variable]
static long lmaxarg1,lmaxarg2;
^~~~~~~~
nrutil.h:22:22: warning: 'minarg2' defined but not used [-Wunused-variable]
static float minarg1,minarg2;
^~~~~~~
nrutil.h:22:14: warning: 'minarg1' defined but not used [-Wunused-variable]
static float minarg1,minarg2;
^~~~~~~
nrutil.h:18:22: warning: 'maxarg2' defined but not used [-Wunused-variable]
static float maxarg1,maxarg2;
^~~~~~~
nrutil.h:18:14: warning: 'maxarg1' defined but not used [-Wunused-variable]
static float maxarg1,maxarg2;
^~~~~~~
nrutil.h:14:24: warning: 'dminarg2' defined but not used [-Wunused-variable]
static double dminarg1,dminarg2;
^~~~~~~~
nrutil.h:14:15: warning: 'dminarg1' defined but not used [-Wunused-variable]
static double dminarg1,dminarg2;
^~~~~~~~
nrutil.h:10:24: warning: 'dmaxarg2' defined but not used [-Wunused-variable]
static double dmaxarg1,dmaxarg2;
^~~~~~~~
nrutil.h:10:15: warning: 'dmaxarg1' defined but not used [-Wunused-variable]
static double dmaxarg1,dmaxarg2;
^~~~~~~~
nrutil.h:7:15: warning: 'dsqrarg' defined but not used [-Wunused-variable]
static double dsqrarg;
^~~~~~~
In file included from Residue.h:12:0,
from Residue.cpp:1:
Utilities.h:4:14: warning: 'sqrarg' defined but not used [-Wunused-variable]
static float sqrarg;
^~~~~~
make[1]: *** [<builtin>: Residue.o] Error 1
make[1]: Leaving directory '/home/ahmed/PharmDock/src/clusterconformers'
make: *** [Makefile:3: all] Error 2```









share







New contributor




Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    Trying to build and install PharmDock



    make


    But I get this make error and I don't understand what's wrong



    make[1]: Entering directory '/home/ahmed/PharmDock/src/pharmdock'
    make[1]: 'docking' is up to date.
    make[1]: Leaving directory '/home/ahmed/PharmDock/src/pharmdock'
    cd clusterconformers && make && cp clusterconformers ../../bin/genLigPharm/
    make[1]: Entering directory '/home/ahmed/PharmDock/src/clusterconformers'
    /home/ahmed/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ -g3 -O3 -ffast-math -Wall -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -c -o Residue.o Residue.cpp
    Residue.cpp: In member function 'void Residue::AssignElements()':
    Residue.cpp:55:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
    ^
    Residue.cpp:55:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
    ^
    Residue.cpp:60:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "CA2+")) == 0 ||
    ^
    Residue.cpp:61:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "CA2")) == 0 ||
    ^
    Residue.cpp:62:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "Ca2+")) == 0)
    ^
    Residue.cpp:67:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "CO2+")) == 0)
    ^
    Residue.cpp:72:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "CU2+")) == 0 ||
    ^
    Residue.cpp:73:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "CU")) == 0)
    ^
    Residue.cpp:78:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "ZN2+")) == 0 ||
    ^
    Residue.cpp:79:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "ZN2")) == 0 ||
    ^
    Residue.cpp:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "ZN")) == 0)
    ^
    Residue.cpp:85:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "NA1+")) == 0)
    ^
    Residue.cpp:90:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "FE")) == 0 ||
    ^
    Residue.cpp:91:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "Fe")) == 0 ||
    ^
    Residue.cpp:92:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "FE2+")) == 0 ||
    ^
    Residue.cpp:93:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "Fe2+")) == 0 ||
    ^
    Residue.cpp:94:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "FE3+")) == 0 ||
    ^
    Residue.cpp:95:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "Fe3+")) == 0 ||
    ^
    Residue.cpp:96:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "FE5+")) == 0 ||
    ^
    Residue.cpp:97:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    (n=util.strindex(atom[i]->name, "Fe5+")) == 0)
    ^
    Residue.cpp:102:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
    ^
    Residue.cpp:102:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
    ^
    Residue.cpp:107:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "H")) == 0)
    ^
    Residue.cpp:112:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "B")) == 0)
    ^
    Residue.cpp:117:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "C")) == 0)
    ^
    Residue.cpp:122:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "N")) == 0)
    ^
    Residue.cpp:127:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "O")) == 0)
    ^
    Residue.cpp:132:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "F")) == 0)
    ^
    Residue.cpp:137:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "P")) == 0)
    ^
    Residue.cpp:142:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "S")) == 0)
    ^
    Residue.cpp:147:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "I")) == 0)
    ^
    Residue.cpp:152:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "LMC")) == 0)
    ^
    Residue.cpp:157:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "LMA")) == 0)
    ^
    Residue.cpp:162:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "LMD")) == 0)
    ^
    Residue.cpp:167:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    else if((n=util.strindex(atom[i]->name, "LMH")) == 0)
    ^
    Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
    Residue.cpp:689:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    sprintf(line, '');
    ^
    In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
    from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
    from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
    from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
    from Residue.h:7,
    from Residue.cpp:1:
    /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
    __NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
    ^
    Residue.cpp:689:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
    sprintf(line, '');
    ^
    Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
    Residue.cpp:1290:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    sprintf(line, '');
    ^
    In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
    from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
    from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
    from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
    from Residue.h:7,
    from Residue.cpp:1:
    /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
    __NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
    ^
    Residue.cpp:1290:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
    sprintf(line, '');
    ^
    Residue.cpp:1271:16: warning: unused variable 'j' [-Wunused-variable]
    int i, j, s, charged_atom_id=-999;
    ^
    Residue.cpp: In member function 'void Residue::AssignTorsions()':
    Residue.cpp:2571:17: warning: unused variable 'ni' [-Wunused-variable]
    int ni, nc, flagOneTorsion;
    ^~
    Residue.cpp: In member function 'void Residue::FindSoma()':
    Residue.cpp:2860:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if((save_counter[p] == 2 && (atom[save_store[p][0]]->element == eO && atom[save_store[p][1]]->element == eH) || (atom[save_store[p][0]]->element == eH && atom[save_store[p][1]]->element == eO)))
    ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Residue.cpp:2768:14: warning: unused variable 'pt' [-Wunused-variable]
    torsion *pt;
    ^~
    Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresCharged(int, LPE*, int*, LPE*, int*)':
    Residue.cpp:3253:16: warning: unused variable 'j' [-Wunused-variable]
    int i, j, k, m, flag_assigned;
    ^
    Residue.cpp:3253:22: warning: unused variable 'm' [-Wunused-variable]
    int i, j, k, m, flag_assigned;
    ^
    Residue.cpp:3253:25: warning: unused variable 'flag_assigned' [-Wunused-variable]
    int i, j, k, m, flag_assigned;
    ^~~~~~~~~~~~~
    Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresHPhob(int, LPE*, int*)':
    Residue.cpp:3373:16: warning: unused variable 'nhp' [-Wunused-variable]
    int flag, nhp;
    ^~~
    Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresAro(int, LPE*, int*)':
    Residue.cpp:3593:16: warning: unused variable 'j' [-Wunused-variable]
    int i, j, k, cr, flag;
    ^
    Residue.cpp: In member function 'void Residue::SortTriangles(float, float, float)':
    Residue.cpp:4317:12: warning: unused variable 'max_short' [-Wunused-variable]
    float max_short = short_interval*100;
    ^~~~~~~~~
    Residue.cpp: In member function 'void Residue::DetermineSizeOfLigand()':
    Residue.cpp:4666:11: warning: unused variable 'fact' [-Wunused-variable]
    float fact;
    ^~~~
    Residue.cpp:4667:42: warning: unused variable 'min_i' [-Wunused-variable]
    int i, j, k, m, cf, ci, jx, jy, jz, min_i;
    ^~~~~
    Residue.cpp:4668:11: warning: unused variable 'min_dist' [-Wunused-variable]
    float min_dist, d2;
    ^~~~~~~~
    Residue.cpp:4668:21: warning: unused variable 'd2' [-Wunused-variable]
    float min_dist, d2;
    ^~
    Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
    Residue.cpp:4956:13: warning: unused variable 'filename_out' [-Wunused-variable]
    char filename_out[kString], line[kString];
    ^~~~~~~~~~~~
    Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
    Residue.cpp:6185:19: warning: unused variable 'k' [-Wunused-variable]
    int i, j, k, ci, lc;
    ^
    Residue.cpp:6186:13: warning: unused variable 'filename_out' [-Wunused-variable]
    char filename_out[kString], line[kString];
    ^~~~~~~~~~~~
    Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
    Residue.cpp:681:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
    system(comm1);
    ~~~~~~^~~~~~~
    Residue.cpp:691:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, 254, fi);
    ~~~~~^~~~~~~~~~~~~~~
    Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
    Residue.cpp:1282:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
    system(comm1);
    ~~~~~~^~~~~~~
    Residue.cpp:1292:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, 254, fi);
    ~~~~~^~~~~~~~~~~~~~~
    Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
    Residue.cpp:5133:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5142:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5154:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5163:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5175:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5184:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5196:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5205:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5217:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5226:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5238:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5247:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5306:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:5315:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
    Residue.cpp:6204:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6213:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6225:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6234:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6246:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6255:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6267:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6276:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6288:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6297:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6309:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6318:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6445:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    Residue.cpp:6454:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, kString, fi);
    ~~~~~^~~~~~~~~~~~~~~~~~~
    In file included from Utilities.h:13:0,
    from Residue.h:12,
    from Residue.cpp:1:
    nrutil.h: At global scope:
    nrutil.h:38:21: warning: 'iminarg2' defined but not used [-Wunused-variable]
    static int iminarg1,iminarg2;
    ^~~~~~~~
    nrutil.h:38:12: warning: 'iminarg1' defined but not used [-Wunused-variable]
    static int iminarg1,iminarg2;
    ^~~~~~~~
    nrutil.h:34:21: warning: 'imaxarg2' defined but not used [-Wunused-variable]
    static int imaxarg1,imaxarg2;
    ^~~~~~~~
    nrutil.h:34:12: warning: 'imaxarg1' defined but not used [-Wunused-variable]
    static int imaxarg1,imaxarg2;
    ^~~~~~~~
    nrutil.h:30:22: warning: 'lminarg2' defined but not used [-Wunused-variable]
    static long lminarg1,lminarg2;
    ^~~~~~~~
    nrutil.h:30:13: warning: 'lminarg1' defined but not used [-Wunused-variable]
    static long lminarg1,lminarg2;
    ^~~~~~~~
    nrutil.h:26:22: warning: 'lmaxarg2' defined but not used [-Wunused-variable]
    static long lmaxarg1,lmaxarg2;
    ^~~~~~~~
    nrutil.h:26:13: warning: 'lmaxarg1' defined but not used [-Wunused-variable]
    static long lmaxarg1,lmaxarg2;
    ^~~~~~~~
    nrutil.h:22:22: warning: 'minarg2' defined but not used [-Wunused-variable]
    static float minarg1,minarg2;
    ^~~~~~~
    nrutil.h:22:14: warning: 'minarg1' defined but not used [-Wunused-variable]
    static float minarg1,minarg2;
    ^~~~~~~
    nrutil.h:18:22: warning: 'maxarg2' defined but not used [-Wunused-variable]
    static float maxarg1,maxarg2;
    ^~~~~~~
    nrutil.h:18:14: warning: 'maxarg1' defined but not used [-Wunused-variable]
    static float maxarg1,maxarg2;
    ^~~~~~~
    nrutil.h:14:24: warning: 'dminarg2' defined but not used [-Wunused-variable]
    static double dminarg1,dminarg2;
    ^~~~~~~~
    nrutil.h:14:15: warning: 'dminarg1' defined but not used [-Wunused-variable]
    static double dminarg1,dminarg2;
    ^~~~~~~~
    nrutil.h:10:24: warning: 'dmaxarg2' defined but not used [-Wunused-variable]
    static double dmaxarg1,dmaxarg2;
    ^~~~~~~~
    nrutil.h:10:15: warning: 'dmaxarg1' defined but not used [-Wunused-variable]
    static double dmaxarg1,dmaxarg2;
    ^~~~~~~~
    nrutil.h:7:15: warning: 'dsqrarg' defined but not used [-Wunused-variable]
    static double dsqrarg;
    ^~~~~~~
    In file included from Residue.h:12:0,
    from Residue.cpp:1:
    Utilities.h:4:14: warning: 'sqrarg' defined but not used [-Wunused-variable]
    static float sqrarg;
    ^~~~~~
    make[1]: *** [<builtin>: Residue.o] Error 1
    make[1]: Leaving directory '/home/ahmed/PharmDock/src/clusterconformers'
    make: *** [Makefile:3: all] Error 2```









    share







    New contributor




    Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Trying to build and install PharmDock



      make


      But I get this make error and I don't understand what's wrong



      make[1]: Entering directory '/home/ahmed/PharmDock/src/pharmdock'
      make[1]: 'docking' is up to date.
      make[1]: Leaving directory '/home/ahmed/PharmDock/src/pharmdock'
      cd clusterconformers && make && cp clusterconformers ../../bin/genLigPharm/
      make[1]: Entering directory '/home/ahmed/PharmDock/src/clusterconformers'
      /home/ahmed/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ -g3 -O3 -ffast-math -Wall -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -c -o Residue.o Residue.cpp
      Residue.cpp: In member function 'void Residue::AssignElements()':
      Residue.cpp:55:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
      ^
      Residue.cpp:55:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
      ^
      Residue.cpp:60:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "CA2+")) == 0 ||
      ^
      Residue.cpp:61:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "CA2")) == 0 ||
      ^
      Residue.cpp:62:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Ca2+")) == 0)
      ^
      Residue.cpp:67:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "CO2+")) == 0)
      ^
      Residue.cpp:72:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "CU2+")) == 0 ||
      ^
      Residue.cpp:73:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "CU")) == 0)
      ^
      Residue.cpp:78:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "ZN2+")) == 0 ||
      ^
      Residue.cpp:79:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "ZN2")) == 0 ||
      ^
      Residue.cpp:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "ZN")) == 0)
      ^
      Residue.cpp:85:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "NA1+")) == 0)
      ^
      Residue.cpp:90:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "FE")) == 0 ||
      ^
      Residue.cpp:91:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe")) == 0 ||
      ^
      Residue.cpp:92:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "FE2+")) == 0 ||
      ^
      Residue.cpp:93:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe2+")) == 0 ||
      ^
      Residue.cpp:94:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "FE3+")) == 0 ||
      ^
      Residue.cpp:95:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe3+")) == 0 ||
      ^
      Residue.cpp:96:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "FE5+")) == 0 ||
      ^
      Residue.cpp:97:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe5+")) == 0)
      ^
      Residue.cpp:102:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
      ^
      Residue.cpp:102:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
      ^
      Residue.cpp:107:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "H")) == 0)
      ^
      Residue.cpp:112:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "B")) == 0)
      ^
      Residue.cpp:117:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "C")) == 0)
      ^
      Residue.cpp:122:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "N")) == 0)
      ^
      Residue.cpp:127:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "O")) == 0)
      ^
      Residue.cpp:132:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "F")) == 0)
      ^
      Residue.cpp:137:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "P")) == 0)
      ^
      Residue.cpp:142:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "S")) == 0)
      ^
      Residue.cpp:147:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "I")) == 0)
      ^
      Residue.cpp:152:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMC")) == 0)
      ^
      Residue.cpp:157:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMA")) == 0)
      ^
      Residue.cpp:162:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMD")) == 0)
      ^
      Residue.cpp:167:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMH")) == 0)
      ^
      Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
      Residue.cpp:689:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
      sprintf(line, '');
      ^
      In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
      from Residue.h:7,
      from Residue.cpp:1:
      /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
      __NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
      ^
      Residue.cpp:689:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
      sprintf(line, '');
      ^
      Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
      Residue.cpp:1290:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
      sprintf(line, '');
      ^
      In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
      from Residue.h:7,
      from Residue.cpp:1:
      /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
      __NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
      ^
      Residue.cpp:1290:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
      sprintf(line, '');
      ^
      Residue.cpp:1271:16: warning: unused variable 'j' [-Wunused-variable]
      int i, j, s, charged_atom_id=-999;
      ^
      Residue.cpp: In member function 'void Residue::AssignTorsions()':
      Residue.cpp:2571:17: warning: unused variable 'ni' [-Wunused-variable]
      int ni, nc, flagOneTorsion;
      ^~
      Residue.cpp: In member function 'void Residue::FindSoma()':
      Residue.cpp:2860:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if((save_counter[p] == 2 && (atom[save_store[p][0]]->element == eO && atom[save_store[p][1]]->element == eH) || (atom[save_store[p][0]]->element == eH && atom[save_store[p][1]]->element == eO)))
      ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Residue.cpp:2768:14: warning: unused variable 'pt' [-Wunused-variable]
      torsion *pt;
      ^~
      Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresCharged(int, LPE*, int*, LPE*, int*)':
      Residue.cpp:3253:16: warning: unused variable 'j' [-Wunused-variable]
      int i, j, k, m, flag_assigned;
      ^
      Residue.cpp:3253:22: warning: unused variable 'm' [-Wunused-variable]
      int i, j, k, m, flag_assigned;
      ^
      Residue.cpp:3253:25: warning: unused variable 'flag_assigned' [-Wunused-variable]
      int i, j, k, m, flag_assigned;
      ^~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresHPhob(int, LPE*, int*)':
      Residue.cpp:3373:16: warning: unused variable 'nhp' [-Wunused-variable]
      int flag, nhp;
      ^~~
      Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresAro(int, LPE*, int*)':
      Residue.cpp:3593:16: warning: unused variable 'j' [-Wunused-variable]
      int i, j, k, cr, flag;
      ^
      Residue.cpp: In member function 'void Residue::SortTriangles(float, float, float)':
      Residue.cpp:4317:12: warning: unused variable 'max_short' [-Wunused-variable]
      float max_short = short_interval*100;
      ^~~~~~~~~
      Residue.cpp: In member function 'void Residue::DetermineSizeOfLigand()':
      Residue.cpp:4666:11: warning: unused variable 'fact' [-Wunused-variable]
      float fact;
      ^~~~
      Residue.cpp:4667:42: warning: unused variable 'min_i' [-Wunused-variable]
      int i, j, k, m, cf, ci, jx, jy, jz, min_i;
      ^~~~~
      Residue.cpp:4668:11: warning: unused variable 'min_dist' [-Wunused-variable]
      float min_dist, d2;
      ^~~~~~~~
      Residue.cpp:4668:21: warning: unused variable 'd2' [-Wunused-variable]
      float min_dist, d2;
      ^~
      Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
      Residue.cpp:4956:13: warning: unused variable 'filename_out' [-Wunused-variable]
      char filename_out[kString], line[kString];
      ^~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
      Residue.cpp:6185:19: warning: unused variable 'k' [-Wunused-variable]
      int i, j, k, ci, lc;
      ^
      Residue.cpp:6186:13: warning: unused variable 'filename_out' [-Wunused-variable]
      char filename_out[kString], line[kString];
      ^~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
      Residue.cpp:681:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
      system(comm1);
      ~~~~~~^~~~~~~
      Residue.cpp:691:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, 254, fi);
      ~~~~~^~~~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
      Residue.cpp:1282:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
      system(comm1);
      ~~~~~~^~~~~~~
      Residue.cpp:1292:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, 254, fi);
      ~~~~~^~~~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
      Residue.cpp:5133:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5142:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5154:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5163:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5175:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5184:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5196:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5205:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5217:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5226:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5238:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5247:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5306:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5315:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
      Residue.cpp:6204:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6213:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6225:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6234:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6246:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6255:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6267:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6276:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6288:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6297:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6309:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6318:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6445:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6454:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      In file included from Utilities.h:13:0,
      from Residue.h:12,
      from Residue.cpp:1:
      nrutil.h: At global scope:
      nrutil.h:38:21: warning: 'iminarg2' defined but not used [-Wunused-variable]
      static int iminarg1,iminarg2;
      ^~~~~~~~
      nrutil.h:38:12: warning: 'iminarg1' defined but not used [-Wunused-variable]
      static int iminarg1,iminarg2;
      ^~~~~~~~
      nrutil.h:34:21: warning: 'imaxarg2' defined but not used [-Wunused-variable]
      static int imaxarg1,imaxarg2;
      ^~~~~~~~
      nrutil.h:34:12: warning: 'imaxarg1' defined but not used [-Wunused-variable]
      static int imaxarg1,imaxarg2;
      ^~~~~~~~
      nrutil.h:30:22: warning: 'lminarg2' defined but not used [-Wunused-variable]
      static long lminarg1,lminarg2;
      ^~~~~~~~
      nrutil.h:30:13: warning: 'lminarg1' defined but not used [-Wunused-variable]
      static long lminarg1,lminarg2;
      ^~~~~~~~
      nrutil.h:26:22: warning: 'lmaxarg2' defined but not used [-Wunused-variable]
      static long lmaxarg1,lmaxarg2;
      ^~~~~~~~
      nrutil.h:26:13: warning: 'lmaxarg1' defined but not used [-Wunused-variable]
      static long lmaxarg1,lmaxarg2;
      ^~~~~~~~
      nrutil.h:22:22: warning: 'minarg2' defined but not used [-Wunused-variable]
      static float minarg1,minarg2;
      ^~~~~~~
      nrutil.h:22:14: warning: 'minarg1' defined but not used [-Wunused-variable]
      static float minarg1,minarg2;
      ^~~~~~~
      nrutil.h:18:22: warning: 'maxarg2' defined but not used [-Wunused-variable]
      static float maxarg1,maxarg2;
      ^~~~~~~
      nrutil.h:18:14: warning: 'maxarg1' defined but not used [-Wunused-variable]
      static float maxarg1,maxarg2;
      ^~~~~~~
      nrutil.h:14:24: warning: 'dminarg2' defined but not used [-Wunused-variable]
      static double dminarg1,dminarg2;
      ^~~~~~~~
      nrutil.h:14:15: warning: 'dminarg1' defined but not used [-Wunused-variable]
      static double dminarg1,dminarg2;
      ^~~~~~~~
      nrutil.h:10:24: warning: 'dmaxarg2' defined but not used [-Wunused-variable]
      static double dmaxarg1,dmaxarg2;
      ^~~~~~~~
      nrutil.h:10:15: warning: 'dmaxarg1' defined but not used [-Wunused-variable]
      static double dmaxarg1,dmaxarg2;
      ^~~~~~~~
      nrutil.h:7:15: warning: 'dsqrarg' defined but not used [-Wunused-variable]
      static double dsqrarg;
      ^~~~~~~
      In file included from Residue.h:12:0,
      from Residue.cpp:1:
      Utilities.h:4:14: warning: 'sqrarg' defined but not used [-Wunused-variable]
      static float sqrarg;
      ^~~~~~
      make[1]: *** [<builtin>: Residue.o] Error 1
      make[1]: Leaving directory '/home/ahmed/PharmDock/src/clusterconformers'
      make: *** [Makefile:3: all] Error 2```









      share







      New contributor




      Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Trying to build and install PharmDock



      make


      But I get this make error and I don't understand what's wrong



      make[1]: Entering directory '/home/ahmed/PharmDock/src/pharmdock'
      make[1]: 'docking' is up to date.
      make[1]: Leaving directory '/home/ahmed/PharmDock/src/pharmdock'
      cd clusterconformers && make && cp clusterconformers ../../bin/genLigPharm/
      make[1]: Entering directory '/home/ahmed/PharmDock/src/clusterconformers'
      /home/ahmed/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ -g3 -O3 -ffast-math -Wall -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -c -o Residue.o Residue.cpp
      Residue.cpp: In member function 'void Residue::AssignElements()':
      Residue.cpp:55:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
      ^
      Residue.cpp:55:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      if((n=util.strindex(atom[i]->name, "Cl")) == 0 || (n=util.strindex(atom[i]->name, "CL")) == 0)
      ^
      Residue.cpp:60:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "CA2+")) == 0 ||
      ^
      Residue.cpp:61:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "CA2")) == 0 ||
      ^
      Residue.cpp:62:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Ca2+")) == 0)
      ^
      Residue.cpp:67:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "CO2+")) == 0)
      ^
      Residue.cpp:72:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "CU2+")) == 0 ||
      ^
      Residue.cpp:73:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "CU")) == 0)
      ^
      Residue.cpp:78:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "ZN2+")) == 0 ||
      ^
      Residue.cpp:79:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "ZN2")) == 0 ||
      ^
      Residue.cpp:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "ZN")) == 0)
      ^
      Residue.cpp:85:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "NA1+")) == 0)
      ^
      Residue.cpp:90:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "FE")) == 0 ||
      ^
      Residue.cpp:91:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe")) == 0 ||
      ^
      Residue.cpp:92:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "FE2+")) == 0 ||
      ^
      Residue.cpp:93:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe2+")) == 0 ||
      ^
      Residue.cpp:94:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "FE3+")) == 0 ||
      ^
      Residue.cpp:95:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe3+")) == 0 ||
      ^
      Residue.cpp:96:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "FE5+")) == 0 ||
      ^
      Residue.cpp:97:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      (n=util.strindex(atom[i]->name, "Fe5+")) == 0)
      ^
      Residue.cpp:102:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
      ^
      Residue.cpp:102:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "Br")) == 0 || (n=util.strindex(atom[i]->name, "BR")) == 0)
      ^
      Residue.cpp:107:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "H")) == 0)
      ^
      Residue.cpp:112:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "B")) == 0)
      ^
      Residue.cpp:117:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "C")) == 0)
      ^
      Residue.cpp:122:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "N")) == 0)
      ^
      Residue.cpp:127:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "O")) == 0)
      ^
      Residue.cpp:132:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "F")) == 0)
      ^
      Residue.cpp:137:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "P")) == 0)
      ^
      Residue.cpp:142:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "S")) == 0)
      ^
      Residue.cpp:147:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "I")) == 0)
      ^
      Residue.cpp:152:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMC")) == 0)
      ^
      Residue.cpp:157:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMA")) == 0)
      ^
      Residue.cpp:162:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMD")) == 0)
      ^
      Residue.cpp:167:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
      else if((n=util.strindex(atom[i]->name, "LMH")) == 0)
      ^
      Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
      Residue.cpp:689:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
      sprintf(line, '');
      ^
      In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
      from Residue.h:7,
      from Residue.cpp:1:
      /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
      __NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
      ^
      Residue.cpp:689:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
      sprintf(line, '');
      ^
      Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
      Residue.cpp:1290:28: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
      sprintf(line, '');
      ^
      In file included from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533,
      from /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/string:38,
      from Residue.h:7,
      from Residue.cpp:1:
      /home/ahmed/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/bits/stdio2.h:32:1: note: initializing argument 2 of 'int sprintf(char*, const char*, ...)'
      __NTH (sprintf (char *__restrict __s, __const char *__restrict __fmt, ...))
      ^
      Residue.cpp:1290:28: warning: null argument where non-null required (argument 2) [-Wnonnull]
      sprintf(line, '');
      ^
      Residue.cpp:1271:16: warning: unused variable 'j' [-Wunused-variable]
      int i, j, s, charged_atom_id=-999;
      ^
      Residue.cpp: In member function 'void Residue::AssignTorsions()':
      Residue.cpp:2571:17: warning: unused variable 'ni' [-Wunused-variable]
      int ni, nc, flagOneTorsion;
      ^~
      Residue.cpp: In member function 'void Residue::FindSoma()':
      Residue.cpp:2860:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if((save_counter[p] == 2 && (atom[save_store[p][0]]->element == eO && atom[save_store[p][1]]->element == eH) || (atom[save_store[p][0]]->element == eH && atom[save_store[p][1]]->element == eO)))
      ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Residue.cpp:2768:14: warning: unused variable 'pt' [-Wunused-variable]
      torsion *pt;
      ^~
      Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresCharged(int, LPE*, int*, LPE*, int*)':
      Residue.cpp:3253:16: warning: unused variable 'j' [-Wunused-variable]
      int i, j, k, m, flag_assigned;
      ^
      Residue.cpp:3253:22: warning: unused variable 'm' [-Wunused-variable]
      int i, j, k, m, flag_assigned;
      ^
      Residue.cpp:3253:25: warning: unused variable 'flag_assigned' [-Wunused-variable]
      int i, j, k, m, flag_assigned;
      ^~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresHPhob(int, LPE*, int*)':
      Residue.cpp:3373:16: warning: unused variable 'nhp' [-Wunused-variable]
      int flag, nhp;
      ^~~
      Residue.cpp: In member function 'void Residue::AssignLigandPharmacophoresAro(int, LPE*, int*)':
      Residue.cpp:3593:16: warning: unused variable 'j' [-Wunused-variable]
      int i, j, k, cr, flag;
      ^
      Residue.cpp: In member function 'void Residue::SortTriangles(float, float, float)':
      Residue.cpp:4317:12: warning: unused variable 'max_short' [-Wunused-variable]
      float max_short = short_interval*100;
      ^~~~~~~~~
      Residue.cpp: In member function 'void Residue::DetermineSizeOfLigand()':
      Residue.cpp:4666:11: warning: unused variable 'fact' [-Wunused-variable]
      float fact;
      ^~~~
      Residue.cpp:4667:42: warning: unused variable 'min_i' [-Wunused-variable]
      int i, j, k, m, cf, ci, jx, jy, jz, min_i;
      ^~~~~
      Residue.cpp:4668:11: warning: unused variable 'min_dist' [-Wunused-variable]
      float min_dist, d2;
      ^~~~~~~~
      Residue.cpp:4668:21: warning: unused variable 'd2' [-Wunused-variable]
      float min_dist, d2;
      ^~
      Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
      Residue.cpp:4956:13: warning: unused variable 'filename_out' [-Wunused-variable]
      char filename_out[kString], line[kString];
      ^~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
      Residue.cpp:6185:19: warning: unused variable 'k' [-Wunused-variable]
      int i, j, k, ci, lc;
      ^
      Residue.cpp:6186:13: warning: unused variable 'filename_out' [-Wunused-variable]
      char filename_out[kString], line[kString];
      ^~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::AssignRingsPython(char*)':
      Residue.cpp:681:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
      system(comm1);
      ~~~~~~^~~~~~~
      Residue.cpp:691:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, 254, fi);
      ~~~~~^~~~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::AssignFormalChargedGroups(char*)':
      Residue.cpp:1282:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
      system(comm1);
      ~~~~~~^~~~~~~
      Residue.cpp:1292:13: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, 254, fi);
      ~~~~~^~~~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::WriteMol2(int, char*, char*)':
      Residue.cpp:5133:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5142:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5154:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5163:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5175:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5184:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5196:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5205:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5217:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5226:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5238:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5247:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5306:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:5315:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp: In member function 'void Residue::WriteNewMol2(int, char*, char*)':
      Residue.cpp:6204:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6213:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6225:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6234:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6246:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6255:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6267:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6276:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6288:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6297:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6309:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6318:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6445:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      Residue.cpp:6454:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
      fgets(line, kString, fi);
      ~~~~~^~~~~~~~~~~~~~~~~~~
      In file included from Utilities.h:13:0,
      from Residue.h:12,
      from Residue.cpp:1:
      nrutil.h: At global scope:
      nrutil.h:38:21: warning: 'iminarg2' defined but not used [-Wunused-variable]
      static int iminarg1,iminarg2;
      ^~~~~~~~
      nrutil.h:38:12: warning: 'iminarg1' defined but not used [-Wunused-variable]
      static int iminarg1,iminarg2;
      ^~~~~~~~
      nrutil.h:34:21: warning: 'imaxarg2' defined but not used [-Wunused-variable]
      static int imaxarg1,imaxarg2;
      ^~~~~~~~
      nrutil.h:34:12: warning: 'imaxarg1' defined but not used [-Wunused-variable]
      static int imaxarg1,imaxarg2;
      ^~~~~~~~
      nrutil.h:30:22: warning: 'lminarg2' defined but not used [-Wunused-variable]
      static long lminarg1,lminarg2;
      ^~~~~~~~
      nrutil.h:30:13: warning: 'lminarg1' defined but not used [-Wunused-variable]
      static long lminarg1,lminarg2;
      ^~~~~~~~
      nrutil.h:26:22: warning: 'lmaxarg2' defined but not used [-Wunused-variable]
      static long lmaxarg1,lmaxarg2;
      ^~~~~~~~
      nrutil.h:26:13: warning: 'lmaxarg1' defined but not used [-Wunused-variable]
      static long lmaxarg1,lmaxarg2;
      ^~~~~~~~
      nrutil.h:22:22: warning: 'minarg2' defined but not used [-Wunused-variable]
      static float minarg1,minarg2;
      ^~~~~~~
      nrutil.h:22:14: warning: 'minarg1' defined but not used [-Wunused-variable]
      static float minarg1,minarg2;
      ^~~~~~~
      nrutil.h:18:22: warning: 'maxarg2' defined but not used [-Wunused-variable]
      static float maxarg1,maxarg2;
      ^~~~~~~
      nrutil.h:18:14: warning: 'maxarg1' defined but not used [-Wunused-variable]
      static float maxarg1,maxarg2;
      ^~~~~~~
      nrutil.h:14:24: warning: 'dminarg2' defined but not used [-Wunused-variable]
      static double dminarg1,dminarg2;
      ^~~~~~~~
      nrutil.h:14:15: warning: 'dminarg1' defined but not used [-Wunused-variable]
      static double dminarg1,dminarg2;
      ^~~~~~~~
      nrutil.h:10:24: warning: 'dmaxarg2' defined but not used [-Wunused-variable]
      static double dmaxarg1,dmaxarg2;
      ^~~~~~~~
      nrutil.h:10:15: warning: 'dmaxarg1' defined but not used [-Wunused-variable]
      static double dmaxarg1,dmaxarg2;
      ^~~~~~~~
      nrutil.h:7:15: warning: 'dsqrarg' defined but not used [-Wunused-variable]
      static double dsqrarg;
      ^~~~~~~
      In file included from Residue.h:12:0,
      from Residue.cpp:1:
      Utilities.h:4:14: warning: 'sqrarg' defined but not used [-Wunused-variable]
      static float sqrarg;
      ^~~~~~
      make[1]: *** [<builtin>: Residue.o] Error 1
      make[1]: Leaving directory '/home/ahmed/PharmDock/src/clusterconformers'
      make: *** [Makefile:3: all] Error 2```







      compiling make gnu-make





      share







      New contributor




      Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 9 mins ago









      Ahmed SamirAhmed Samir

      1




      1




      New contributor




      Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ahmed Samir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Ahmed Samir is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497359%2fmake-makefile3-all-error-2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Ahmed Samir is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Ahmed Samir is a new contributor. Be nice, and check out our Code of Conduct.













          Ahmed Samir is a new contributor. Be nice, and check out our Code of Conduct.












          Ahmed Samir is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497359%2fmake-makefile3-all-error-2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          CARDNET

          Boot-repair Failure: Unable to locate package grub-common:i386

          濃尾地震