You are not logged in.
Pages: 1
Hi, is pure-ftpd built with mysql support? Because if I try to run it, i get "421 Unknown authentication method: mysql:/etc/pureftpd-mysql.conf" error. When I try to recompile it using ABS (with --with-mysql switch to configure), it fails.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -DCONFDIR=\"/etc\" -march=i686 -O2 -pipe -MT pure-statsdecode.o -MD -MP -MF ".deps/pure-statsdecode.Tpo" -c -o pure-statsdecode.o pure-statsdecode.c; \
then mv -f ".deps/pure-statsdecode.Tpo" ".deps/pure-statsdecode.Po"; else rm -f ".deps/pure-statsdecode.Tpo"; exit 1; fi
In file included from ftpd.h:88,
from pure-statsdecode.c:3:
/usr/include/arpa/inet.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_addr'
/usr/include/arpa/inet.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_lnaof'
/usr/include/arpa/inet.h:42: error: expected ')' before '__net'
/usr/include/arpa/inet.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_netof'
/usr/include/arpa/inet.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_network'
/usr/include/arpa/inet.h:78: error: expected ')' before '__net'
make[2]: *** [pure-statsdecode.o] Error 1
make[2]: Leaving directory `/var/abs/local/pure-ftpd/src/pure-ftpd-1.0.21/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/pure-ftpd/src/pure-ftpd-1.0.21'
make: *** [all] Error 2
Offline
From the PKGBUILD:
./configure --prefix=/usr --with-puredb --with-altlog
So I think there is not support for mysql.
You can recompile it yourself.
Offline
But as i wrote, compilation fails (see above for the error).
Offline
Sorry jardasmid,
I didn't read all the post
Try to specify
./configure --with-mysql=/usr/include/mysql
when compile pure-ftpd
Stupid question:
do you have libmysql package?
Offline
I have mysql & libmysqlclient packages, this should be OK.
Mysql libraries are found event without writing the path.
The error is somewhere in /usr/include/arpa/inet.h. How can I find the package with this file?
Offline
pacman -Qo /usr/include/arpa/inet.h
/usr/include/arpa/inet.h is owned by glibc 2.5-8
1000
Offline
Pages: 1