proftpd + mod_sql with mysql 설치할때 fs.h 오류..

oldbell의 이미지

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 을 설치할 수 있을까요?

혹시 다른 환경(래드햇등)에서 성공하신분 없으신가요??

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.