proftpd + mod_sql with mysql 설치할때 fs.h 오류..
글쓴이: oldbell / 작성시간: 월, 2005/02/14 - 10:22오전
debian woody, proftpd 1.2.10, mod_sql 4.0.8, mysql-4.1.8a 환경입니다.
ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.10.tar.gz
http://www.lastditcheffort.org/~aah/proftpd/mod_sql/src/mod_sql-4.08.tar.gz
다운로드후
proftpd압축을 풀고 mod_sql은 contrib에서 압축을 풀고
configure를 하면
gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c ftpdctl.c make[1]: Leaving directory `/work/src/proftpd-1.2.10/src' cd modules/ && make modules make[1]: Entering directory `/work/src/proftpd-1.2.10/modules' gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_core.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_xfer.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_auth_unix.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_auth_file.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_auth.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_ls.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_log.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_site.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_sql.c mod_sql.c:47: fs.h: No such file or directory make[1]: *** [mod_sql.o] Error 1 make[1]: Leaving directory `/work/src/proftpd-1.2.10/modules' make: *** [modules] Error 2
위와같이 fs.h를 찾을 수 없다고 나옵니다.
mod_sql.c에서
#include "fs.h" 를 #include <fs.h> 또는 #include <linux/fs.h>로 변경했으나,
<fs.h>에서는 동일한 오류 메시지가,
</linux/fs.h>에서는 다른 메시지가 나옵니다.
make[1]: Leaving directory `/work/src/proftpd-1.2.10/src' cd modules/ && make modules make[1]: Entering directory `/work/src/proftpd-1.2.10/modules' gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_core.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_xfer.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_auth_unix.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_auth_file.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_auth.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_ls.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_log.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_site.c gcc -DLINUX -I.. -I../include -I/usr/include -I/usr/local/mysql/include -O2 -Wall -c mod_sql.c In file included from /usr/include/linux/fs.h:12, from mod_sql.c:47: /usr/include/linux/wait.h:4: warning: `WNOHANG' redefined /usr/include/bits/waitflags.h:26: warning: this is the location of the previous definition /usr/include/linux/wait.h:5: warning: `WUNTRACED' redefined /usr/include/bits/waitflags.h:27: warning: this is the location of the previous definition In file included from /usr/include/linux/types.h:9, from /usr/include/linux/fs.h:13, from mod_sql.c:47: /usr/include/asm/types.h:4: conflicting types for `mode_t' /usr/include/sys/types.h:71: previous declaration of `mode_t' mod_sql.c:107: parse error before `*' mod_sql.c:107: warning: type defaults to `int' in declaration of `resp_list' mod_sql.c:107: warning: type defaults to `int' in declaration of `resp_err_list' mod_sql.c:107: warning: data definition has no type or storage class mod_sql.c: In function `_sql_make_cmd': mod_sql.c:321: structure has no member named `symtable_index' mod_sql.c: In function `_sql_dispatch': mod_sql.c:378: warning: implicit declaration of function `block_signals' mod_sql.c:380: warning: implicit declaration of function `unblock_signals' mod_sql.c: In function `check_auth_crypt': mod_sql.c:425: `AUTH_BADPWD' undeclared (first use in this function) mod_sql.c:425: (Each undeclared identifier is reported only once mod_sql.c:425: for each function it appears in.) mod_sql.c: In function `check_auth_plaintext': mod_sql.c:437: `AUTH_BADPWD' undeclared (first use in this function) mod_sql.c: In function `check_auth_empty': mod_sql.c:451: `AUTH_BADPWD' undeclared (first use in this function) mod_sql.c: In function `check_auth_backend': mod_sql.c:459: `AUTH_BADPWD' undeclared (first use in this function) mod_sql.c: In function `build_homedir': mod_sql.c:811: warning: implicit declaration of function `fs_stat' mod_sql.c:853: warning: implicit declaration of function `fs_chown' mod_sql.c: In function `resolve_tag': mod_sql.c:1274: warning: long unsigned int format, different type arg (arg 4) mod_sql.c:1281: structure has no member named `name' mod_sql.c:1315: structure has no member named `remote_ipaddr' mod_sql.c:1358: `response_t' undeclared (first use in this function) mod_sql.c:1358: `r' undeclared (first use in this function) mod_sql.c:1358: warning: statement with no effect mod_sql.c: In function `_process_named_query': mod_sql.c:1456: warning: comparison between pointer and integer mod_sql.c: In function `info_master': mod_sql.c:1760: warning: implicit declaration of function `add_response' mod_sql.c: In function `errinfo_master': mod_sql.c:1926: warning: implicit declaration of function `add_response_err' mod_sql.c: In function `cmd_auth': mod_sql.c:2562: `AUTH_BADPWD' undeclared (first use in this function) mod_sql.c: In function `sql_getconf': mod_sql.c:3688: warning: too many arguments for format mod_sql.c:3691: warning: too many arguments for format make[1]: *** [mod_sql.o] Error 1 make[1]: Leaving directory `/work/src/proftpd-1.2.10/modules' make: *** [modules] Error 2
configure 명령은 아래와 같습니다.
./configure --with-modules=mod_sql:mod_sql_mysql --with-include=/usr/local/mysql/include/ --with-libraries=/usr/local/mysql/lib
어떻게 하면 proftpd + mod_sql + mysql 을 설치할 수 있을까요?
혹시 다른 환경(래드햇등)에서 성공하신분 없으신가요??
Forums:
댓글 달기