Hallo,
ich hab einen Fedora Core 2 Rechner mit MySQL installiert. MySQL läuft und hat die datenbank und die tabellen die aus der sql hilfestellung ersichtlich sind. nun hab ich die configure mit
./configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/include/mysql --with-libraries=/usr/lib/mysql
und danach make
und ich bekomme folgende fehlermeldung
gcc -DLINUX -I.. -I../include -O2 -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:137:19: mysql.h: Datei oder Verzeichnis nicht gefunden
mod_sql_mysql.c:164: error: Syntaxfehler before "MYSQL"
mod_sql_mysql.c:164: Warnung: kein Semikolon am Ende von »struct« oder »union«
mod_sql_mysql.c: In Funktion »_build_error«:
mod_sql_mysql.c:331: Warnung: implicit declaration of function `mysql_errno'
mod_sql_mysql.c:331: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:333: Warnung: implicit declaration of function `mysql_error'
mod_sql_mysql.c:333: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In Funktion »_build_data«:
mod_sql_mysql.c:344: error: `MYSQL' undeclared (first use in this function)
mod_sql_mysql.c:344: error: (Each undeclared identifier is reported only once
mod_sql_mysql.c:344: error: for each function it appears in.)
mod_sql_mysql.c:344: error: `mysql' undeclared (first use in this function)
mod_sql_mysql.c:345: error: `MYSQL_RES' undeclared (first use in this function)
mod_sql_mysql.c:345: error: `result' undeclared (first use in this function)
mod_sql_mysql.c:346: error: `MYSQL_ROW' undeclared (first use in this function)
mod_sql_mysql.c:346: error: Syntaxfehler before "row"
mod_sql_mysql.c:355: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:361: Warnung: implicit declaration of function `mysql_store_result'
mod_sql_mysql.c:367: Warnung: implicit declaration of function `mysql_num_rows'
mod_sql_mysql.c:368: Warnung: implicit declaration of function `mysql_num_fields'
mod_sql_mysql.c:373: error: `row' undeclared (first use in this function)
mod_sql_mysql.c:373: Warnung: implicit declaration of function `mysql_fetch_row'
mod_sql_mysql.c:383: Warnung: implicit declaration of function `mysql_free_result'
mod_sql_mysql.c: In Funktion »cmd_open«:
mod_sql_mysql.c:436: Warnung: implicit declaration of function `mysql_ping'
mod_sql_mysql.c:436: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:448: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:448: Warnung: implicit declaration of function `mysql_init'
mod_sql_mysql.c:450: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: Warnung: implicit declaration of function `mysql_options'
mod_sql_mysql.c:461: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
mod_sql_mysql.c:463: Warnung: implicit declaration of function `mysql_real_connect'
mod_sql_mysql.c:463: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:463: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:463: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:463: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:464: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:464: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:465: error: `CLIENT_INTERACTIVE' undeclared (first use in this function)
mod_sql_mysql.c: In Funktion »cmd_close«:
mod_sql_mysql.c:559: Warnung: implicit declaration of function `mysql_close'
mod_sql_mysql.c:559: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:560: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In Funktion »cmd_defineconnection«:
mod_sql_mysql.c:626: error: invalid application of `sizeof' to an incomplete type
mod_sql_mysql.c:629: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:630: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:661: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:662: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:663: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:680: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:681: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:682: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:683: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In Funktion »cmd_select«:
mod_sql_mysql.c:804: Warnung: implicit declaration of function `mysql_real_query'
mod_sql_mysql.c:804: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In Funktion »cmd_insert«:
mod_sql_mysql.c:918: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In Funktion »cmd_update«:
mod_sql_mysql.c:1017: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In Funktion »cmd_query«:
mod_sql_mysql.c:1133: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:1148: Warnung: implicit declaration of function `mysql_field_count'
mod_sql_mysql.c:1148: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In Funktion »cmd_escapestring«:
mod_sql_mysql.c:1228: Warnung: implicit declaration of function `mysql_escape_string'
mod_sql_mysql.c: In Funktion »cmd_checkauth«:
mod_sql_mysql.c:1295: Warnung: implicit declaration of function `make_scrambled_password'
make[1]: *** [mod_sql_mysql.o] Fehler 1
make[1]: Leaving directory `/root/progs/proftpd-1.2.9/modules'
make: *** [modules] Fehler 2
MySQL version 4.1.1.-1
die Datei mysql.h gibt es bei mir nicht!
weis jemand wo der Fehler liegt?
danke