Solaris 9 box with Mysql on it and configured. I am trying to install proftpd now and it craps out on me.
This is what I do
cd to source
./configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/include --with-libraries=/usr/local/lib/mysql
This runs fine, dosen't crap out or anything. The I run make. When it starts doing the make of the sql stuff it craps out. This is what it gives me. Does anybody have any idea's why? I have tried this with proftpd 1.2.8, 1.2.8RC2, and 1.2.6 and get the same thing.
cd modules/ && make modules
make[1]: Entering directory `/b/00/siswjh/proftpd-1.2.8/modules'
gcc -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include -I/usr/local/include -O2 -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:136:25: mysql/mysql.h: No such file or directory
mod_sql_mysql.c:163: syntax error before "MYSQL"
mod_sql_mysql.c:163: warning: no semicolon at end of struct or union
mod_sql_mysql.c: In function `_build_error':
mod_sql_mysql.c:331: warning: implicit declaration of function `mysql_errno'
mod_sql_mysql.c:331: dereferencing pointer to incomplete type
mod_sql_mysql.c:333: warning: implicit declaration of function `mysql_error'
mod_sql_mysql.c:333: dereferencing pointer to incomplete type
mod_sql_mysql.c:333: warning: passing arg 4 of `mod_create_ret' makes pointer from integer without a cast
mod_sql_mysql.c: In function `_build_data':
mod_sql_mysql.c:345: `MYSQL' undeclared (first use in this function)
mod_sql_mysql.c:345: (Each undeclared identifier is reported only once
mod_sql_mysql.c:345: for each function it appears in.)
mod_sql_mysql.c:345: `mysql' undeclared (first use in this function)
mod_sql_mysql.c:346: `MYSQL_RES' undeclared (first use in this function)
mod_sql_mysql.c:346: `result' undeclared (first use in this function)
mod_sql_mysql.c:347: `MYSQL_ROW' undeclared (first use in this function)
mod_sql_mysql.c:347: syntax error before "row"
mod_sql_mysql.c:356: dereferencing pointer to incomplete type
mod_sql_mysql.c:362: warning: implicit declaration of function `mysql_store_result'
mod_sql_mysql.c:368: warning: implicit declaration of function `mysql_num_rows'
mod_sql_mysql.c:369: warning: implicit declaration of function `mysql_num_fields'
mod_sql_mysql.c:374: `row' undeclared (first use in this function)
mod_sql_mysql.c:374: warning: implicit declaration of function `mysql_fetch_row'
mod_sql_mysql.c:384: warning: implicit declaration of function `mysql_free_result'
mod_sql_mysql.c: In function `cmd_open':
mod_sql_mysql.c:438: warning: implicit declaration of function `mysql_ping'
mod_sql_mysql.c:438: dereferencing pointer to incomplete type
mod_sql_mysql.c:450: dereferencing pointer to incomplete type
mod_sql_mysql.c:450: warning: implicit declaration of function `mysql_init'
mod_sql_mysql.c:452: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: warning: implicit declaration of function `mysql_real_connect'
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: dereferencing pointer to incomplete type
mod_sql_mysql.c:462: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_close':
mod_sql_mysql.c:556: warning: implicit declaration of function `mysql_close'
mod_sql_mysql.c:556: dereferencing pointer to incomplete type
mod_sql_mysql.c:557: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_defineconnection':
mod_sql_mysql.c:623: sizeof applied to an incomplete type
mod_sql_mysql.c:626: dereferencing pointer to incomplete type
mod_sql_mysql.c:627: dereferencing pointer to incomplete type
mod_sql_mysql.c:658: dereferencing pointer to incomplete type
mod_sql_mysql.c:659: dereferencing pointer to incomplete type
mod_sql_mysql.c:660: dereferencing pointer to incomplete type
mod_sql_mysql.c:677: dereferencing pointer to incomplete type
mod_sql_mysql.c:678: dereferencing pointer to incomplete type
mod_sql_mysql.c:679: dereferencing pointer to incomplete type
mod_sql_mysql.c:680: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_select':
mod_sql_mysql.c:801: warning: implicit declaration of function `mysql_real_query'
mod_sql_mysql.c:801: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_insert':
mod_sql_mysql.c:915: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_update':
mod_sql_mysql.c:1014: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_query':
mod_sql_mysql.c:1130: dereferencing pointer to incomplete type
mod_sql_mysql.c:1145: warning: implicit declaration of function `mysql_field_count'
mod_sql_mysql.c:1145: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_escapestring':
mod_sql_mysql.c:1225: warning: implicit declaration of function `mysql_escape_string'
mod_sql_mysql.c: In function `cmd_checkauth':
mod_sql_mysql.c:1289: warning: implicit declaration of function `make_scrambled_password'
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/b/00/siswjh/proftpd-1.2.8/modules'
make: *** [modules] Error 2
This is what I do
cd to source
./configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/include --with-libraries=/usr/local/lib/mysql
This runs fine, dosen't crap out or anything. The I run make. When it starts doing the make of the sql stuff it craps out. This is what it gives me. Does anybody have any idea's why? I have tried this with proftpd 1.2.8, 1.2.8RC2, and 1.2.6 and get the same thing.
cd modules/ && make modules
make[1]: Entering directory `/b/00/siswjh/proftpd-1.2.8/modules'
gcc -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include -I/usr/local/include -O2 -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:136:25: mysql/mysql.h: No such file or directory
mod_sql_mysql.c:163: syntax error before "MYSQL"
mod_sql_mysql.c:163: warning: no semicolon at end of struct or union
mod_sql_mysql.c: In function `_build_error':
mod_sql_mysql.c:331: warning: implicit declaration of function `mysql_errno'
mod_sql_mysql.c:331: dereferencing pointer to incomplete type
mod_sql_mysql.c:333: warning: implicit declaration of function `mysql_error'
mod_sql_mysql.c:333: dereferencing pointer to incomplete type
mod_sql_mysql.c:333: warning: passing arg 4 of `mod_create_ret' makes pointer from integer without a cast
mod_sql_mysql.c: In function `_build_data':
mod_sql_mysql.c:345: `MYSQL' undeclared (first use in this function)
mod_sql_mysql.c:345: (Each undeclared identifier is reported only once
mod_sql_mysql.c:345: for each function it appears in.)
mod_sql_mysql.c:345: `mysql' undeclared (first use in this function)
mod_sql_mysql.c:346: `MYSQL_RES' undeclared (first use in this function)
mod_sql_mysql.c:346: `result' undeclared (first use in this function)
mod_sql_mysql.c:347: `MYSQL_ROW' undeclared (first use in this function)
mod_sql_mysql.c:347: syntax error before "row"
mod_sql_mysql.c:356: dereferencing pointer to incomplete type
mod_sql_mysql.c:362: warning: implicit declaration of function `mysql_store_result'
mod_sql_mysql.c:368: warning: implicit declaration of function `mysql_num_rows'
mod_sql_mysql.c:369: warning: implicit declaration of function `mysql_num_fields'
mod_sql_mysql.c:374: `row' undeclared (first use in this function)
mod_sql_mysql.c:374: warning: implicit declaration of function `mysql_fetch_row'
mod_sql_mysql.c:384: warning: implicit declaration of function `mysql_free_result'
mod_sql_mysql.c: In function `cmd_open':
mod_sql_mysql.c:438: warning: implicit declaration of function `mysql_ping'
mod_sql_mysql.c:438: dereferencing pointer to incomplete type
mod_sql_mysql.c:450: dereferencing pointer to incomplete type
mod_sql_mysql.c:450: warning: implicit declaration of function `mysql_init'
mod_sql_mysql.c:452: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: warning: implicit declaration of function `mysql_real_connect'
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: dereferencing pointer to incomplete type
mod_sql_mysql.c:462: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_close':
mod_sql_mysql.c:556: warning: implicit declaration of function `mysql_close'
mod_sql_mysql.c:556: dereferencing pointer to incomplete type
mod_sql_mysql.c:557: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_defineconnection':
mod_sql_mysql.c:623: sizeof applied to an incomplete type
mod_sql_mysql.c:626: dereferencing pointer to incomplete type
mod_sql_mysql.c:627: dereferencing pointer to incomplete type
mod_sql_mysql.c:658: dereferencing pointer to incomplete type
mod_sql_mysql.c:659: dereferencing pointer to incomplete type
mod_sql_mysql.c:660: dereferencing pointer to incomplete type
mod_sql_mysql.c:677: dereferencing pointer to incomplete type
mod_sql_mysql.c:678: dereferencing pointer to incomplete type
mod_sql_mysql.c:679: dereferencing pointer to incomplete type
mod_sql_mysql.c:680: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_select':
mod_sql_mysql.c:801: warning: implicit declaration of function `mysql_real_query'
mod_sql_mysql.c:801: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_insert':
mod_sql_mysql.c:915: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_update':
mod_sql_mysql.c:1014: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_query':
mod_sql_mysql.c:1130: dereferencing pointer to incomplete type
mod_sql_mysql.c:1145: warning: implicit declaration of function `mysql_field_count'
mod_sql_mysql.c:1145: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_escapestring':
mod_sql_mysql.c:1225: warning: implicit declaration of function `mysql_escape_string'
mod_sql_mysql.c: In function `cmd_checkauth':
mod_sql_mysql.c:1289: warning: implicit declaration of function `make_scrambled_password'
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/b/00/siswjh/proftpd-1.2.8/modules'
make: *** [modules] Error 2