proftpd + mysql 编译问题。

由 xiami 在 08-15-2003 15:46 发表:

proftpd + mysql 编译问题。

gcc -DLINUX -I.. -I../include -I/usr/local/mysql/includes/mysql -O2 -Wall -c

mod_sql.c

mod_sql.c:47:16: fs.h: 没有那个文件或目录

mod_sql.c:106: parse error before '*' token

mod_sql.c:106: warning: type defaults to int' in declaration of resp_list'

mod_sql.c:106: warning: type defaults to int' in declaration of resp_err_lis

t'

mod_sql.c:106: warning: data definition has no type or storage class

mod_sql.c: In function `_sql_make_cmd':

mod_sql.c:320: structure has no member named `symtable_index'

mod_sql.c: In function `_sql_dispatch':

mod_sql.c:377: warning: implicit declaration of function `block_signals'

mod_sql.c:379: warning: implicit declaration of function `unblock_signals'

mod_sql.c: In function `check_auth_crypt':

mod_sql.c:424: `AUTH_BADPWD' undeclared (first use in this function)

mod_sql.c:424: (Each undeclared identifier is reported only once

mod_sql.c:424: for each function it appears in.)

mod_sql.c: In function `check_auth_plaintext':

mod_sql.c:436: `AUTH_BADPWD' undeclared (first use in this function)

mod_sql.c: In function `check_auth_empty':

mod_sql.c:450: `AUTH_BADPWD' undeclared (first use in this function)

mod_sql.c: In function `check_auth_backend':

mod_sql.c:458: `AUTH_BADPWD' undeclared (first use in this function)

mod_sql.c: In function `build_homedir':

mod_sql.c:810: warning: implicit declaration of function `fs_stat'

mod_sql.c:852: warning: implicit declaration of function `fs_chown'

mod_sql.c: In function `resolve_tag':

mod_sql.c:1273: warning: long unsigned int format, different type arg (arg 4)

mod_sql.c:1273: warning: long unsigned int format, different type arg (arg 4)

mod_sql.c:1357: `response_t' undeclared (first use in this function)

mod_sql.c:1357: `r' undeclared (first use in this function)

mod_sql.c: In function `_process_named_query':

mod_sql.c:1455: warning: comparison between pointer and integer

mod_sql.c: In function `info_master':

mod_sql.c:1759: warning: implicit declaration of function `add_response'

mod_sql.c: In function `errinfo_master':

mod_sql.c:1925: warning: implicit declaration of function `add_response_err'

mod_sql.c: In function `cmd_auth':

mod_sql.c:2561: `AUTH_BADPWD' undeclared (first use in this function)

mod_sql.c: In function `sql_getconf':

mod_sql.c:3687: warning: too many arguments for format

mod_sql.c:3690: warning: too many arguments for format

make[1]: *** [mod_sql.o] Error 1

make[1]: Leaving directory `/usr/local/src/proftpd-1.2.9rc1/modules'

make: *** [modules] Error 2

系统环境:

[root@XIAMI proftpd-1.2.9rc1]# uname -a

Linux XIAMI 2.4.20-19.9 #1 Tue Jul 15 17:18:13 EDT 2003 i686 i686 i386 GNU/Linux

MYSQL:

------------

./mysql Ver 12.21 Distrib 4.0.14, for pc-linux (i686)

Connection id: 4

Current database:

Current user: root@localhost

SSL: Not in use

Current pager: stdout

Using outfile: ''

Server version: 4.0.14-log

Protocol version: 10

Connection: Localhost via UNIX socket

Client characterset: latin1

Server characterset: latin1

UNIX socket: /tmp/mysql.sock

Uptime: 1 min 19 sec

配置命令:

./configure --prefix=/usr/local/ --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/mysql/includes/mysql --with-libraries=/usr/local/mysql/lib/mysql

配置输出结果:

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking for gcc... gcc

checking for C compiler default output... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking whether make sets $(MAKE)... yes

checking for a BSD-compatible install... /usr/bin/install -c

checking for ranlib... ranlib

checking for special C compiler options needed for large files... no

checking for _FILE_OFFSET_BITS value needed for large files... 64

checking for _LARGE_FILES value needed for large files... no

checking whether the C compiler accepts -Wall... yes

checking for standalone crypt... no

checking for crypt in -lcrypt... yes

checking for standalone gethostbyname... yes

checking for standalone inet_aton... yes

checking for standalone nsl functions... yes

checking for standalone socket functions... yes

checking for _pw_stayopen variable... no

checking for set_auth_parameters in -lsecurity... no

checking for setprpwent in -lsec... no

checking how to run the C preprocessor... gcc -E

checking for egrep... grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking sys/security.h usability... no

checking sys/security.h presence... no

checking for sys/security.h... no

checking krb.h usability... no

checking krb.h presence... no

checking for krb.h... no

checking prot.h usability... no

checking prot.h presence... no

checking for prot.h... no

checking for set_auth_parameters... no

checking for getprpwent... no

checking hpsecurity.h usability... no

checking hpsecurity.h presence... no

checking for hpsecurity.h... no

checking for hpsecurity.h workaround... no

checking for dirent.h that defines DIR... yes

checking for library containing opendir... none required

checking for ANSI C header files... (cached) yes

checking for sys/wait.h that is POSIX.1 compatible... yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking sys/ioctl.h usability... yes

checking sys/ioctl.h presence... yes

checking for sys/ioctl.h... yes

checking sys/time.h usability... yes

checking sys/time.h presence... yes

checking for sys/time.h... yes

checking for unistd.h... (cached) yes

checking for memory.h... (cached) yes

checking shadow.h usability... yes

checking shadow.h presence... yes

checking for shadow.h... yes

checking for struct spwd.sp_warn... yes

checking for struct spwd.sp_inact... yes

checking for struct spwd.sp_expire... yes

checking security/pam_appl.h usability... yes

checking security/pam_appl.h presence... yes

checking for security/pam_appl.h... yes

checking pam/pam_appl.h usability... no

checking pam/pam_appl.h presence... no

checking for pam/pam_appl.h... no

checking for pam_start in -lpam... yes

checking linux/capability.h usability... yes

checking linux/capability.h presence... yes

checking for linux/capability.h... yes

checking whether to enable mod_cap... yes

checking ctype.h usability... yes

checking ctype.h presence... yes

checking for ctype.h... yes

checking getopt.h usability... yes

checking getopt.h presence... yes

checking for getopt.h... yes

checking crypt.h usability... yes

checking crypt.h presence... yes

checking for crypt.h... yes

checking bstring.h usability... no

checking bstring.h presence... no

checking for bstring.h... no

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking for strings.h... (cached) yes

checking stropts.h usability... yes

checking stropts.h presence... yes

checking for stropts.h... yes

checking for sys/types.h... (cached) yes

checking sys/mount.h usability... yes

checking sys/mount.h presence... yes

checking for sys/mount.h... yes

checking sys/param.h usability... yes

checking sys/param.h presence... yes

checking for sys/param.h... yes

checking sys/file.h usability... yes

checking sys/file.h presence... yes

checking for sys/file.h... yes

checking sys/uio.h usability... yes

checking sys/uio.h presence... yes

checking for sys/uio.h... yes

checking netdb.h usability... yes

checking netdb.h presence... yes

checking for netdb.h... yes

checking netinet/in.h usability... yes

checking netinet/in.h presence... yes

checking for netinet/in.h... yes

checking netinet/ip.h usability... yes

checking netinet/ip.h presence... yes

checking for netinet/ip.h... yes

checking netinet/tcp.h usability... yes

checking netinet/tcp.h presence... yes

checking for netinet/tcp.h... yes

checking arpa/inet.h usability... yes

checking arpa/inet.h presence... yes

checking for arpa/inet.h... yes

checking for sys/stat.h... (cached) yes

checking errno.h usability... yes

checking errno.h presence... yes

checking for errno.h... yes

checking sys/socket.h usability... yes

checking sys/socket.h presence... yes

checking for sys/socket.h... yes

checking sys/termios.h usability... yes

checking sys/termios.h presence... yes

checking for sys/termios.h... yes

checking sys/termio.h usability... no

checking sys/termio.h presence... no

checking for sys/termio.h... no

checking sys/statvfs.h usability... yes

checking sys/statvfs.h presence... yes

checking for sys/statvfs.h... yes

checking sys/vfs.h usability... yes

checking sys/vfs.h presence... yes

checking for sys/vfs.h... yes

checking sys/select.h usability... yes

checking sys/select.h presence... yes

checking for sys/select.h... yes

checking dirent.h usability... yes

checking dirent.h presence... yes

checking for dirent.h... yes

checking ndir.h usability... no

checking ndir.h presence... no

checking for ndir.h... no

checking sys/ndir.h usability... no

checking sys/ndir.h presence... no

checking for sys/ndir.h... no

checking sys/dir.h usability... yes

checking sys/dir.h presence... yes

checking for sys/dir.h... yes

checking vmsdir.h usability... no

checking vmsdir.h presence... no

checking for vmsdir.h... no

checking utmpx.h usability... yes

checking utmpx.h presence... yes

checking for utmpx.h... yes

checking regex.h usability... yes

checking regex.h presence... yes

checking for regex.h... yes

checking syslog.h usability... yes

checking syslog.h presence... yes

checking for syslog.h... yes

checking curses.h usability... yes

checking curses.h presence... yes

checking for curses.h... yes

checking ncurses.h usability... yes

checking ncurses.h presence... yes

checking for ncurses.h... yes

checking for an ANSI C-conforming const... yes

checking for inline... inline

checking for uid_t in sys/types.h... yes

checking for pid_t... yes

checking for size_t... yes

checking for mode_t... yes

checking for off_t... yes

checking type of array argument to getgroups... gid_t

checking for timer_t... yes

checking for short... yes

checking size of short... 2

checking for int... yes

checking size of int... 4

checking for long... yes

checking size of long... 4

checking for long long... yes

checking size of long long... 8

checking for off_t... (cached) yes

checking size of off_t... 8

checking whether time.h and sys/time.h may both be included... yes

checking whether struct tm is in sys/time.h or time.h... time.h

checking for umode_t... no

checking for ino_t... yes

checking for socklen_t... yes

checking utmp.h usability... yes

checking utmp.h presence... yes

checking for utmp.h... yes

checking whether your struct utmp has ut_user... yes

checking whether your struct utmp has ut_host... yes

checking whether your struct utmp has ut_exit... yes

checking whether your syslog.h defines LOG_CRON... y

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus