Witam,
przy próbie kompilacji demona mam takie coś;
fafik:/var/www/lms/daemon# ./configure Database type... MySQL Library location... /usr/lib Includes location... /usr/include SQL queries debugging... no Events debugging... no Install directory... /usr/local/bin Create Makefile for main program... done Create Makefile for mod_cutoff... done Create Makefile for mod_dhcp... done Create Makefile for mod_dns... done Create Makefile for mod_ethers... done Create Makefile for mod_ggnotify... done Create Makefile for mod_hostfile... done Create Makefile for mod_notify... done Create Makefile for mod_oident... done Create Makefile for mod_payments... done Create Makefile for mod_pinger... done Create Makefile for mod_system... done Create Makefile for mod_tc... done Create Makefile for mod_traffic... done *************************************************************** Configuration finished. Now You can type 'make && make install'
fafik:/var/www/lms/daemon# make cc -I/usr/include -DUSE_MYSQL -Wall -O2 -c -o almsd.o almsd.c In file included from db.h:12, from almsd.h:11, from util.h:11, from almsd.c:34: mysql.h:8:25: mysql/mysql.h: Nie ma takiego pliku ani katalogu mysql.h:9:32: mysql/mysqld_error.h: Nie ma takiego pliku ani katalogu In file included from db.h:12, from almsd.h:11, from util.h:11, from almsd.c:34: mysql.h:11: error: syntax error before "CONN_HANDLE" mysql.h:11: warning: type defaults to `int' in declaration of `CONN_HANDLE' mysql.h:11: warning: data definition has no type or storage class mysql.h:12: error: syntax error before "RESULT_HANDLE" mysql.h:12: warning: type defaults to `int' in declaration of `RESULT_HANDLE' mysql.h:12: warning: data definition has no type or storage class In file included from almsd.h:11, from util.h:11, from almsd.c:34: db.h:56: error: syntax error before "RESULT_HANDLE" db.h:56: warning: no semicolon at end of struct or union db.h:61: error: syntax error before '}' token db.h:62: warning: type defaults to `int' in declaration of `QUERY_HANDLE' db.h:62: warning: data definition has no type or storage class db.h:74: error: syntax error before '*' token db.h:74: warning: type defaults to `int' in declaration of `db_query' db.h:74: warning: data definition has no type or storage class db.h:78: error: syntax error before '*' token db.h:78: warning: type defaults to `int' in declaration of `db_pquery' db.h:78: warning: data definition has no type or storage class db.h:81: error: syntax error before '*' token db.h:100: error: syntax error before '*' token In file included from util.h:11, from almsd.c:34: almsd.h:23: error: syntax error before "QUERY_HANDLE" almsd.h:23: warning: no semicolon at end of struct or union almsd.h:24: warning: type defaults to `int' in declaration of `db_pquery' almsd.h:24: error: `db_pquery' redeclared as different kind of symbol db.h:78: error: previous declaration of `db_pquery' almsd.h:24: warning: data definition has no type or storage class almsd.h:25: error: syntax error before '*' token almsd.h:25: error: `db_free' redeclared as different kind of symbol db.h:81: error: previous declaration of `db_free' almsd.h:26: error: `db_exec' redeclared as different kind of symbol db.h:84: error: previous declaration of `db_exec' almsd.h:27: error: `db_pexec' redeclared as different kind of symbol db.h:88: error: previous declaration of `db_pexec' almsd.h:28: error: `db_begin' redeclared as different kind of symbol db.h:91: error: previous declaration of `db_begin' almsd.h:29: error: `db_commit' redeclared as different kind of symbol db.h:94: error: previous declaration of `db_commit' almsd.h:30: error: `db_abort' redeclared as different kind of symbol db.h:97: error: previous declaration of `db_abort' almsd.h:31: error: syntax error before '*' token almsd.h:31: error: `db_get_data' redeclared as different kind of symbol db.h:100: error: previous declaration of `db_get_data' almsd.h:34: error: `iniparser_getstr' redeclared as different kind of symbol iniparser/iniparser.h:120: error: previous declaration of `iniparser_getstr' almsd.h:35: error: `iniparser_getstring' redeclared as different kind of symbol iniparser/iniparser.h:138: error: previous declaration of `iniparser_getstring' almsd.h:36: error: `iniparser_getint' redeclared as different kind of symbol iniparser/iniparser.h:153: error: previous declaration of `iniparser_getint' almsd.h:37: error: `iniparser_getboolean' redeclared as different kind of symbol iniparser/iniparser.h:202: error: previous declaration of `iniparser_getboolean' almsd.h:38: error: `iniparser_getdouble' redeclared as different kind of symbol iniparser/iniparser.h:168: error: previous declaration of `iniparser_getdouble' almsd.h:39: error: `iniparser_load' redeclared as different kind of symbol iniparser/iniparser.h:261: error: previous declaration of `iniparser_load' almsd.h:40: error: `iniparser_freedict' redeclared as different kind of symbol iniparser/iniparser.h:274: error: previous declaration of `iniparser_freedict' almsd.h:47: error: syntax error before '}' token In file included from almsd.c:34: util.h:16: error: `str_replace' redeclared as different kind of symbol almsd.h:43: error: previous declaration of `str_replace' util.h:19: error: `str_save' redeclared as different kind of symbol almsd.h:44: error: previous declaration of `str_save' util.h:25: error: `str_concat' redeclared as different kind of symbol almsd.h:45: error: previous declaration of `str_concat' In file included from almsd.c:34: util.h:28:1: warning: no newline at end of file almsd.c: In function `main': almsd.c:39: error: `res' undeclared (first use in this function) almsd.c:39: error: (Each undeclared identifier is reported only once almsd.c:39: error: for each function it appears in.) almsd.c:89: error: invalid application of `sizeof' to an incomplete type almsd.c:90: error: dereferencing pointer to incomplete type almsd.c:91: error: dereferencing pointer to incomplete type almsd.c:93: error: dereferencing pointer to incomplete type almsd.c:94: error: dereferencing pointer to incomplete type almsd.c:95: error: dereferencing pointer to incomplete type almsd.c:96: error: dereferencing pointer to incomplete type almsd.c:97: error: dereferencing pointer to incomplete type almsd.c:98: error: dereferencing pointer to incomplete type almsd.c:99: error: dereferencing pointer to incomplete type almsd.c:100: error: dereferencing pointer to incomplete type almsd.c:101: error: dereferencing pointer to incomplete type almsd.c:103: error: dereferencing pointer to incomplete type almsd.c:104: error: dereferencing pointer to incomplete type almsd.c:105: error: dereferencing pointer to incomplete type almsd.c:106: error: dereferencing pointer to incomplete type almsd.c:107: error: dereferencing pointer to incomplete type almsd.c:108: error: dereferencing pointer to incomplete type almsd.c:109: error: dereferencing pointer to incomplete type almsd.c:111: error: dereferencing pointer to incomplete type almsd.c:112: error: dereferencing pointer to incomplete type almsd.c:113: error: dereferencing pointer to incomplete type almsd.c:114: error: dereferencing pointer to incomplete type make: *** [almsd.o] Błąd 1
Gdzie popełniam błąd, wersja LMS to 1.7
Piotr Kaczor
uczestnicy (1)
-
Piotr Kaczor