You are not logged in.

#1 2007-05-08 10:24:07

jardasmid
Member
Registered: 2006-02-10
Posts: 25

pure-ftpd and mysql

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

#2 2007-05-08 11:46:00

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: pure-ftpd and mysql

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

#3 2007-05-08 15:19:04

jardasmid
Member
Registered: 2006-02-10
Posts: 25

Re: pure-ftpd and mysql

But as i wrote, compilation fails (see above for the error).

Offline

#4 2007-05-08 18:55:25

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: pure-ftpd and mysql

Sorry jardasmid,
I didn't read all the post tongue
Try to specify

./configure --with-mysql=/usr/include/mysql

when compile pure-ftpd
Stupid question:
do you have libmysql package?

Offline

#5 2007-05-09 19:13:30

jardasmid
Member
Registered: 2006-02-10
Posts: 25

Re: pure-ftpd and mysql

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

#6 2007-05-09 23:10:31

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: pure-ftpd and mysql

pacman -Qo /usr/include/arpa/inet.h
/usr/include/arpa/inet.h is owned by glibc 2.5-8

1000

Offline

Board footer

Powered by FluxBB