Mysql装4.0.12,Proftpd装1.2.8,lib目录下已有libmysqlclient.so文件,但是在make的时候出错,不知道为什么,麻烦那位给看一下。
./configure --prefix=/usr/local/proftpd --with-includes=/usr/local/mysql/include --with-libraries=/usr/local/mysql/lib/mysql --with-modules=mod_sql:mod_sql_mysql
echo #define BUILD_STAMP "`date`" >include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/proftpd-1.2.8/lib'
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c pr_fnmatch.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c strsep.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c vsnprintf.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c glibc-glob.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c glibc-mkstemp.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c pr-syslog.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c pwgrent.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c getopt.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c getopt1.c
ar rc libsupp.a pr_fnmatch.o strsep.o vsnprintf.o glibc-glob.o glibc-mkstemp.o pr-syslog.o pwgrent.o getopt.o getopt1.o
ranlib libsupp.a
make[1]: Leaving directory `/proftpd-1.2.8/lib'
cd src/ && make src
make[1]: Entering directory `/proftpd-1.2.8/src'
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c main.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c timers.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c sets.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c pool.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c regexp.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c dirtree.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c support.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c inet.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c log.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c bindings.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c scoreboard.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c feat.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c netio.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c response.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c ident.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c data.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c modules.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c auth.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c fsio.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mkhome.c
make[1]: Leaving directory `/proftpd-1.2.8/src'
cd modules/ && make modules
make[1]: Entering directory `/proftpd-1.2.8/modules'
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_core.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_xfer.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_auth_unix.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_auth_file.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_auth.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_ls.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_log.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_site.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_auth_pam.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c mod_sql.c
gcc -DLINUX -I.. -I../include -I/usr/local/mysql/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: parse 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: parse 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 `/proftpd-1.2.8/modules'
make: *** [modules] Error 2