Ja na Debianiu Sarge jak dam make to dostaje: (dlaczego ???)
cc -I/usr/include/mysql -fPIC -Wall -O2 -DUSE_MYSQL -DLMS_LIB_DIR="/usr/local/lms/lib" -c -o dbdrivers/mysql/db.o dbdrivers/mysql/db.c In file included from dbdrivers/mysql/db.c:31: dbdrivers/mysql/db.h:6:25: mysql/mysql.h: Nie ma takiego pliku ani katalogu dbdrivers/mysql/db.h:7:32: mysql/mysqld_error.h: Nie ma takiego pliku ani katalogu In file included from dbdrivers/mysql/db.c:31: dbdrivers/mysql/db.h:23: error: syntax error before "CONN" dbdrivers/mysql/db.h:23: warning: type defaults to `int' in declaration of `CONN' dbdrivers/mysql/db.h:23: warning: data definition has no type or storage class dbdrivers/mysql/db.h:24: error: syntax error before "ResultHandle" dbdrivers/mysql/db.h:24: warning: type defaults to `int' in declaration of `ResultHandle' dbdrivers/mysql/db.h:24: warning: data definition has no type or storage class dbdrivers/mysql/db.h:57: error: syntax error before "CONN" dbdrivers/mysql/db.h:57: warning: no semicolon at end of struct or union dbdrivers/mysql/db.h:59: warning: type defaults to `int' in declaration of `ConnHandle' dbdrivers/mysql/db.h:59: warning: data definition has no type or storage class dbdrivers/mysql/db.h:65: error: syntax error before '*' token dbdrivers/mysql/db.h:66: warning: type defaults to `int' in declaration of `db_connect' dbdrivers/mysql/db.h:66: warning: data definition has no type or storage class dbdrivers/mysql/db.h:69: error: syntax error before '*' token dbdrivers/mysql/db.h:72: error: syntax error before '*' token dbdrivers/mysql/db.h:76: error: syntax error before '*' token dbdrivers/mysql/db.h:79: error: syntax error before '*' token dbdrivers/mysql/db.h:83: error: syntax error before '*' token dbdrivers/mysql/db.h:86: error: syntax error before '*' token dbdrivers/mysql/db.h:92: error: syntax error before '*' token dbdrivers/mysql/db.h:95: error: syntax error before '*' token dbdrivers/mysql/db.h:98: error: syntax error before '*' token dbdrivers/mysql/db.c:35: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `get_query_result': dbdrivers/mysql/db.c:43: error: `MYSQL_ROW' undeclared (first use in this function) dbdrivers/mysql/db.c:43: error: (Each undeclared identifier is reported only once dbdrivers/mysql/db.c:43: error: for each function it appears in.) dbdrivers/mysql/db.c:43: error: syntax error before "row" dbdrivers/mysql/db.c:44: error: `MYSQL_FIELD' undeclared (first use in this function) dbdrivers/mysql/db.c:44: error: `field' undeclared (first use in this function) dbdrivers/mysql/db.c:47: warning: implicit declaration of function `mysql_num_fields' dbdrivers/mysql/db.c:47: error: `res' undeclared (first use in this function) dbdrivers/mysql/db.c:48: warning: implicit declaration of function `mysql_num_rows' dbdrivers/mysql/db.c:59: warning: implicit declaration of function `mysql_fetch_field_direct' dbdrivers/mysql/db.c:66: error: `FIELD_TYPE_SHORT' undeclared (first use in this function) dbdrivers/mysql/db.c:67: error: `FIELD_TYPE_LONG' undeclared (first use in this function) dbdrivers/mysql/db.c:68: error: `FIELD_TYPE_LONGLONG' undeclared (first use in this function) dbdrivers/mysql/db.c:71: error: `FIELD_TYPE_TINY' undeclared (first use in this function) dbdrivers/mysql/db.c:72: error: `FIELD_TYPE_VAR_STRING' undeclared (first use in this function) dbdrivers/mysql/db.c:73: error: `FIELD_TYPE_STRING' undeclared (first use in this function) dbdrivers/mysql/db.c:74: error: `FIELD_TYPE_BLOB' undeclared (first use in this function) dbdrivers/mysql/db.c:77: error: `FIELD_TYPE_DOUBLE' undeclared (first use in this function) dbdrivers/mysql/db.c:78: error: `FIELD_TYPE_FLOAT' undeclared (first use in this function) dbdrivers/mysql/db.c:92: error: `row' undeclared (first use in this function) dbdrivers/mysql/db.c:92: warning: implicit declaration of function `mysql_fetch_row' dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:115: error: syntax error before '*' token dbdrivers/mysql/db.c:117: warning: return type defaults to `int' dbdrivers/mysql/db.c: In function `db_connect': dbdrivers/mysql/db.c:118: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c:118: error: syntax error before ')' token dbdrivers/mysql/db.c:119: warning: implicit declaration of function `mysql_init' dbdrivers/mysql/db.c:119: warning: comparison between pointer and integer dbdrivers/mysql/db.c:124: warning: implicit declaration of function `mysql_real_connect' dbdrivers/mysql/db.c:125: warning: implicit declaration of function `mysql_error' dbdrivers/mysql/db.c:125: warning: format argument is not a pointer (arg 3) dbdrivers/mysql/db.c:126: warning: implicit declaration of function `mysql_close' dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:137: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_disconnect': dbdrivers/mysql/db.c:139: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:155: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_query': dbdrivers/mysql/db.c:157: error: `res' undeclared (first use in this function) dbdrivers/mysql/db.c:161: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c:167: error: `q' undeclared (first use in this function) dbdrivers/mysql/db.c:172: warning: implicit declaration of function `mysql_query' dbdrivers/mysql/db.c:173: warning: format argument is not a pointer (arg 3) dbdrivers/mysql/db.c:178: warning: implicit declaration of function `mysql_store_result' dbdrivers/mysql/db.c:179: warning: format argument is not a pointer (arg 3) dbdrivers/mysql/db.c:185: warning: implicit declaration of function `mysql_free_result' dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:191: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_pquery': dbdrivers/mysql/db.c:202: error: `q' undeclared (first use in this function) dbdrivers/mysql/db.c:209: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c:202: error: `va_start' used in function with fixed args dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:229: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_exec': dbdrivers/mysql/db.c:234: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c:240: error: `q' undeclared (first use in this function) dbdrivers/mysql/db.c:246: warning: format argument is not a pointer (arg 3) dbdrivers/mysql/db.c:250: warning: implicit declaration of function `mysql_affected_rows' dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:256: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_pexec': dbdrivers/mysql/db.c:266: error: `q' undeclared (first use in this function) dbdrivers/mysql/db.c:273: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c:266: error: `va_start' used in function with fixed args dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:293: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_escape': dbdrivers/mysql/db.c:295: error: `str' undeclared (first use in this function) dbdrivers/mysql/db.c:296: warning: implicit declaration of function `mysql_real_escape_string' dbdrivers/mysql/db.c:296: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:301: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_begin': dbdrivers/mysql/db.c:303: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:312: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_commit': dbdrivers/mysql/db.c:314: error: `c' undeclared (first use in this function) dbdrivers/mysql/db.c: At top level: dbdrivers/mysql/db.c:323: error: syntax error before '*' token dbdrivers/mysql/db.c: In function `db_abort': dbdrivers/mysql/db.c:325: error: `c' undeclared (first use in this function) make: *** [dbdrivers/mysql/db.o] Błąd 1
uczestnicy (1)
-
XEON