#10 make command didn't make

open
nobody
None
5
2015-02-24
2007-06-19
johndoe32102002
No

OS: Ubuntu 7.04
Latest version of make
ran using sudo make and make without sudo, same error below:

gcc openwebspider-0.7.c -o openwebspider `mysql_config --cflags --libs` -lpthread -ldl -rdynamic -Wall -O2
/bin/sh: mysql_config: not found
openwebspider-0.7.c:68:27: error: mysql/mysql.h: No such file or directory
In file included from functions.h:31,
from openwebspider-0.7.c:79:
options.h:154: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gMysqlDB1’
options.h:155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gMysqlDB2’
In file included from openwebspider-0.7.c:79:
functions.h:149: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
functions.h:150: error: expected ‘)’ before ‘*’ token
functions.h:151: error: expected ‘)’ before ‘*’ token
functions.h:152: error: expected ‘)’ before ‘*’ token
functions.h:258: error: expected ‘)’ before ‘*’ token
functions.h:259: error: expected ‘)’ before ‘*’ token
In file included from openwebspider-0.7.c:86:
sqlfnct.h:29: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
sqlfnct.h: In function ‘sqlConnect’:
sqlfnct.h:32: warning: implicit declaration of function ‘mysql_init’
sqlfnct.h:32: error: ‘rMysql’ undeclared (first use in this function)
sqlfnct.h:32: error: (Each undeclared identifier is reported only once
sqlfnct.h:32: error: for each function it appears in.)
sqlfnct.h:34: warning: implicit declaration of function ‘mysql_options’
sqlfnct.h:34: error: ‘MYSQL_READ_DEFAULT_GROUP’ undeclared (first use in this function)
sqlfnct.h:35: error: ‘MYSQL_OPT_COMPRESS’ undeclared (first use in this function)
sqlfnct.h:37: warning: implicit declaration of function ‘mysql_real_connect’
sqlfnct.h: At top level:
sqlfnct.h:43: error: expected ‘)’ before ‘*’ token
sqlfnct.h:65: error: expected ‘)’ before ‘*’ token
sqlfnct.h:76: error: expected ‘)’ before ‘*’ token
sqlfnct.h:106: error: expected ‘)’ before ‘*’ token
In file included from openwebspider-0.7.c:89:
misc.h: In function ‘InitMysql’:
misc.h:108: error: ‘gMysqlDB1’ undeclared (first use in this function)
misc.h:108: error: too many arguments to function ‘sqlConnect’
misc.h:110: warning: implicit declaration of function ‘mysql_error’
misc.h:110: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
misc.h:112: warning: format ‘%s’ expects type ‘char *’, but argument 9 has type ‘int’
misc.h:117: error: ‘gMysqlDB2’ undeclared (first use in this function)
misc.h:117: error: too many arguments to function ‘sqlConnect’
misc.h:119: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
misc.h:121: warning: format ‘%s’ expects type ‘char *’, but argument 9 has type ‘int’
misc.h:123: warning: implicit declaration of function ‘mysql_close’
misc.h: In function ‘setHostExtras’:
misc.h:188: error: ‘MYSQL_ROW’ undeclared (first use in this function)
misc.h:188: error: expected ‘;’ before ‘row’
misc.h:189: error: ‘MYSQL_RES’ undeclared (first use in this function)
misc.h:189: error: expected ‘;’ before ‘gRes’
misc.h:190: error: ‘tmpRes’ undeclared (first use in this function)
misc.h:192: error: expected expression before ‘)’ token
misc.h:199: warning: implicit declaration of function ‘my_mysql_query_and_store_results’
misc.h:199: error: ‘gMysqlDB1’ undeclared (first use in this function)
misc.h:199: error: ‘gRes’ undeclared (first use in this function)
misc.h:201: error: ‘row’ undeclared (first use in this function)
misc.h:201: warning: implicit declaration of function ‘mysql_fetch_row’
misc.h:238: warning: implicit declaration of function ‘mysql_free_result’
misc.h: In function ‘InitIndexing’:
misc.h:318: warning: implicit declaration of function ‘my_mysql_query’
misc.h:318: error: ‘gMysqlDB1’ undeclared (first use in this function)
misc.h:381: error: ‘gMysqlDB2’ undeclared (first use in this function)
misc.h:435: warning: implicit declaration of function ‘my_mysql_ping’
misc.h: In function ‘DoQuit’:
misc.h:606: error: ‘gMysqlDB1’ undeclared (first use in this function)
misc.h:607: error: ‘gMysqlDB2’ undeclared (first use in this function)
In file included from openwebspider-0.7.c:91:
rank.h: In function ‘GetHostRank’:
rank.h:31: error: ‘MYSQL_RES’ undeclared (first use in this function)
rank.h:31: error: ‘tmpRes’ undeclared (first use in this function)
rank.h:33: error: expected ‘;’ before ‘gRes’
rank.h:34: error: ‘MYSQL_ROW’ undeclared (first use in this function)
rank.h:34: error: expected ‘;’ before ‘row’
rank.h:40: error: expected expression before ‘)’ token
rank.h:46: error: ‘gMysqlDB1’ undeclared (first use in this function)
rank.h:46: error: ‘gRes’ undeclared (first use in this function)
rank.h:48: error: ‘row’ undeclared (first use in this function)
rank.h: In function ‘CalcPageRank’:
rank.h:96: error: ‘gMysqlDB2’ undeclared (first use in this function)
In file included from openwebspider-0.7.c:92:
urlfunct.h: In function ‘ReturnFirstUrl’:
urlfunct.h:36: error: ‘MYSQL_ROW’ undeclared (first use in this function)
urlfunct.h:36: error: expected ‘;’ before ‘row’
urlfunct.h:38: error: ‘MYSQL_RES’ undeclared (first use in this function)
urlfunct.h:38: error: expected ‘;’ before ‘gRes’
urlfunct.h:39: error: ‘tmpRes’ undeclared (first use in this function)
urlfunct.h:47: error: ‘gMysqlDB1’ undeclared (first use in this function)
urlfunct.h:79: error: expected expression before ‘)’ token
urlfunct.h:84: error: ‘gRes’ undeclared (first use in this function)
urlfunct.h:86: warning: implicit declaration of function ‘mysql_affected_rows’
urlfunct.h:99: error: ‘row’ undeclared (first use in this function)
urlfunct.h: In function ‘AddUrl’:
urlfunct.h:159: warning: implicit declaration of function ‘snprintf_mysql_escaped_sql_statement’
urlfunct.h:159: error: ‘gMysqlDB2’ undeclared (first use in this function)
urlfunct.h: In function ‘AddExternalHost’:
urlfunct.h:226: error: ‘gMysqlDB1’ undeclared (first use in this function)
urlfunct.h: In function ‘GetHostId’:
urlfunct.h:738: error: ‘MYSQL_RES’ undeclared (first use in this function)
urlfunct.h:738: error: expected ‘;’ before ‘gRes’
urlfunct.h:739: error: ‘tmpRes’ undeclared (first use in this function)
urlfunct.h:740: error: ‘MYSQL_ROW’ undeclared (first use in this function)
urlfunct.h:740: error: expected ‘;’ before ‘row’
urlfunct.h:743: error: expected expression before ‘)’ token
urlfunct.h:750: error: ‘gMysqlDB2’ undeclared (first use in this function)
urlfunct.h:752: error: ‘gRes’ undeclared (first use in this function)
urlfunct.h:756: error: ‘row’ undeclared (first use in this function)
urlfunct.h: In function ‘pRelationships’:
urlfunct.h:802: error: ‘gMysqlDB1’ undeclared (first use in this function)
In file included from openwebspider-0.7.c:93:
temptable.h: In function ‘CreateTmpTable’:
temptable.h:48: error: ‘MYSQL_RES’ undeclared (first use in this function)
temptable.h:48: error: expected ‘;’ before ‘gRes’
temptable.h:49: error: ‘tmpRes’ undeclared (first use in this function)
temptable.h:52: error: ‘gMysqlDB2’ undeclared (first use in this function)
temptable.h:56: error: expected expression before ‘)’ token
temptable.h:61: error: ‘gRes’ undeclared (first use in this function)
temptable.h:65: warning: format ‘%s’ expects type ‘char *’, but argument 9 has type ‘int’
temptable.h:66: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
temptable.h:70: error: ‘gMysqlDB1’ undeclared (first use in this function)
temptable.h: In function ‘FlushTempTable’:
temptable.h:114: error: ‘gMysqlDB2’ undeclared (first use in this function)
temptable.h: In function ‘DropTempTable’:
temptable.h:136: error: ‘gMysqlDB2’ undeclared (first use in this function)
In file included from openwebspider-0.7.c:97:
server.h: In function ‘HandleRequest’:
server.h:577: warning: implicit declaration of function ‘IndexedSearchXML2Sock’
server.h:577: error: ‘gMysqlDB2’ undeclared (first use in this function)
In file included from openwebspider-0.7.c:98:
search.h: At top level:
search.h:26: error: expected ‘)’ before ‘*’ token
search.h:85: error: expected ‘)’ before ‘*’ token
In file included from openwebspider-0.7.c:100:
indexer.h: In function ‘IndexPage’:
indexer.h:62: warning: implicit declaration of function ‘mysql_real_escape_string’
indexer.h:62: error: ‘gMysqlDB2’ undeclared (first use in this function)
indexer.h:135: error: ‘gMysqlDB1’ undeclared (first use in this function)
indexer.h:185: warning: format ‘%s’ expects type ‘char *’, but argument 9 has type ‘int’
indexer.h:187: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
indexer.h:190: error: too many arguments to function ‘sqlConnect’
indexer.h:195: warning: format ‘%s’ expects type ‘char *’, but argument 9 has type ‘int’
indexer.h:224: warning: format ‘%s’ expects type ‘char *’, but argument 9 has type ‘int’
indexer.h:225: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
indexer.h: In function ‘IsPageIndexed’:
indexer.h:244: error: ‘MYSQL_RES’ undeclared (first use in this function)
indexer.h:244: error: expected ‘;’ before ‘gRes’
indexer.h:245: error: ‘tmpRes’ undeclared (first use in this function)
indexer.h:248: error: expected expression before ‘)’ token
indexer.h:256: error: ‘gMysqlDB2’ undeclared (first use in this function)
indexer.h:256: error: ‘gRes’ undeclared (first use in this function)
indexer.h: In function ‘BuildOwsOwnIndex’:
indexer.h:390: error: ‘MYSQL_RES’ undeclared (first use in this function)
indexer.h:390: error: expected ‘;’ before ‘gRes’
indexer.h:391: error: ‘tmpRes’ undeclared (first use in this function)
indexer.h:392: error: ‘MYSQL_ROW’ undeclared (first use in this function)
indexer.h:392: error: expected ‘;’ before ‘row’
indexer.h:397: error: expected expression before ‘)’ token
indexer.h:408: error: ‘gMysqlDB2’ undeclared (first use in this function)
indexer.h:423: error: ‘gRes’ undeclared (first use in this function)
indexer.h:435: error: ‘row’ undeclared (first use in this function)
indexer.h: In function ‘GetWordId’:
indexer.h:538: error: ‘MYSQL_RES’ undeclared (first use in this function)
indexer.h:538: error: expected ‘;’ before ‘gRes’
indexer.h:539: error: ‘tmpRes’ undeclared (first use in this function)
indexer.h:540: error: ‘MYSQL_ROW’ undeclared (first use in this function)
indexer.h:540: error: expected ‘;’ before ‘row’
indexer.h:543: error: expected expression before ‘)’ token
indexer.h:550: error: ‘gMysqlDB2’ undeclared (first use in this function)
indexer.h:552: error: ‘gRes’ undeclared (first use in this function)
indexer.h:556: error: ‘row’ undeclared (first use in this function)
indexer.h: In function ‘StoreOwsIndex’:
indexer.h:590: error: ‘gMysqlDB2’ undeclared (first use in this function)
indexer.h:638: warning: format ‘%s’ expects type ‘char *’, but argument 9 has type ‘int’
indexer.h:640: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
openwebspider-0.7.c: In function ‘main’:
openwebspider-0.7.c:460: error: ‘MYSQL’ undeclared (first use in this function)
openwebspider-0.7.c:460: error: expected ‘;’ before ‘mysql’
openwebspider-0.7.c:466: error: ‘mysql’ undeclared (first use in this function)
openwebspider-0.7.c:466: error: too many arguments to function ‘sqlConnect’
openwebspider-0.7.c:468: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
openwebspider-0.7.c:474: warning: implicit declaration of function ‘IndexedSearch’
make: *** [openwebspider] Error 1

Discussion