I know a simple answer must exist but this is driving me crazy. I can not compile proftp with mod_mysql.
The easy stuff:
Dist: RH 9.0
ProFTP 1.2.9
mod_mysql4.08
my-sql 3.23.56
The first time I configured the make file i used the following command
./configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/src/lamp/mysql-3.23.56/release/include/mysql/ --with-libraries=/usr/src/lamp/mysql-3.23.56/release/lib/mysql/
I then followed it up with
make && sudo make install
The following is a list of the errors
cd lib/ && make lib
make[1]: Entering directory `/usr/src/proftpd-1.2.9/lib'
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c pr_fnmatch.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c sstrncpy.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c strsep.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c vsnprintf.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c glibc-glob.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c glibc-hstrerror.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c glibc-mkstemp.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c pr-syslog.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c pwgrent.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c getopt.c
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c getopt1.c
ar rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o getopt.o getopt1.o
ranlib libsupp.a
make[1]: Leaving directory `/usr/src/proftpd-1.2.9/lib'
cd src/ && make src
make[1]: Entering directory `/usr/src/proftpd-1.2.9/src'
make[1]: Nothing to be done for `src'.
make[1]: Leaving directory `/usr/src/proftpd-1.2.9/src'
cd modules/ && make modules
make[1]: Entering directory `/usr/src/proftpd-1.2.9/modules'
gcc -DLINUX -I.. -I../include -I/usr/src/lamp/mysql-3.23.56/release/include/mysql/ -O2 -Wall -c mod_sql.c
mod_sql.c:47:16: fs.h: No such file or directory
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_list'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:1314: structure has no member named `remote_ipaddr'
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/src/proftpd-1.2.9/modules'
make: *** [modules] Error 2
I noticed that the make file was reading fs.h so I added it to the config file with
../configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/src/lamp/mysql-3.23.56/include/ --with-libraries=/usr/src/lamp/mysql-3.23.56/release/lib --with-includes=/usr/include/linux/
Now I get the following when I make the app
cd lib/ && make lib
make[1]: Entering directory `/usr/src/proftpd-1.2.9/lib'
gcc -DLINUX -I.. -I../include -I/usr/include/linux/ -O2 -Wall -c pr_fnmatch.c
In file included from ../include/conf.h:43,
from pr_fnmatch.c:38:
/usr/include/stdlib.h:137: parse error before "__ctype_get_mb_cur_max"
In file included from /usr/include/linux/types.h:5,
from /usr/include/linux/time.h:5,
from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:416,
from ../include/conf.h:43,
from pr_fnmatch.c:38:
/usr/include/asm/types.h:4: conflicting types for `mode_t'
/usr/include/sys/types.h:72: previous declaration of `mode_t'
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:416,
from ../include/conf.h:43,
from pr_fnmatch.c:38:
/usr/include/linux/time.h:10: parse error before "time_t"
/usr/include/linux/time.h:12: parse error before '}' token
/usr/include/linux/time.h:18: parse error before "time_t"
/usr/include/linux/time.h:44: field `it_interval' has incomplete type
/usr/include/linux/time.h:45: field `it_value' has incomplete type
/usr/include/linux/time.h:49: field `it_interval' has incomplete type
/usr/include/linux/time.h:50: field `it_value' has incomplete type
In file included from /usr/include/sys/types.h:266,
from /usr/include/stdlib.h:416,
from ../include/conf.h:43,
from pr_fnmatch.c:38:
/usr/include/bits/pthreadtypes.h:48: parse error before "size_t"
/usr/include/bits/pthreadtypes.h:51: parse error before "__stacksize"
In file included from ../include/conf.h:43,
from pr_fnmatch.c:38:
/usr/include/stdlib.h:433: parse error before "si
..
..
..
..
Any ideas ????????????????
|