FS#11084 - Proftpd rebuild breaks with mysql

Attached to Project: Arch Linux
Opened by Omar Chicas (theone) - Friday, 01 August 2008, 06:08 GMT
Last edited by Douglas Soares de Andrade (dsa) - Sunday, 11 January 2009, 12:59 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Dale Blount (dale)
Douglas Soares de Andrade (dsa)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Is it possible to build proftpd with mysql support?
Would like mod_quotatab_sql mod_sql

I tried myself with abs, but I get this error:

make[1]: Entering directory `/root/abs/proftpd/src/proftpd-1.3.1/lib'
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../lib/libltdl -march=i686 -mtune=generic -O2 -pipe -Wall -c pr_fnmatch.c
In file included from /usr/include/asm/sigcontext.h:4,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:333,
from /usr/include/sys/wait.h:31,
from ../include/conf.h:95,
from pr_fnmatch.c:38:
/usr/include/asm/types.h:6: error: conflicting types for 'mode_t'
/usr/include/sys/types.h:72: error: previous declaration of 'mode_t' was here
make[1]: *** [pr_fnmatch.o] Error 1
make[1]: Leaving directory `/root/abs/proftpd/src/proftpd-1.3.1/lib'
make: *** [lib] Error 2

Steps to reproduce with or without abs:
In PKGBUILD:
./configure --prefix=/usr --disable-pam \
--with-modules=mod_quotatab:mod_quotatab_file:mod_sql \
--sysconfdir=/etc --localstatedir=/var --enable-ctrls --enable-dso
This task depends upon

Closed by  Douglas Soares de Andrade (dsa)
Sunday, 11 January 2009, 12:59 GMT
Reason for closing:  Not a bug
Comment by Omar Chicas (theone) - Friday, 01 August 2008, 06:37 GMT
I'm sorry I just found out this is the proper configure for what I'm looking for:
./configure --prefix=/usr --disable-pam \
--with-modules=mod_quotatab:mod_quotatab_file:mod_quotatab_sql:mod_sql:mod_sql_mysql \
--sysconfdir=/etc --localstatedir=/var --enable-ctrls \
--with-includes=/usr/include/mysql --with-libraries=/usr/lib/mysql

Still no luck:
cd lib/ && make lib
make[1]: Entering directory `/home/builder/abs/proftpd/src/proftpd-1.3.1/lib'
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../lib/libltdl -I/usr/include/ mysql -march=i686 -mtune=generic -O2 -pipe -Wall -c pr_fnmatch.c
In file included from /usr/include/asm/sigcontext.h:4,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:333,
from /usr/include/sys/wait.h:31,
from ../include/conf.h:95,
from pr_fnmatch.c:38:
/usr/include/asm/types.h:6: error: conflicting types for 'mode_t'
/usr/include/sys/types.h:72: error: previous declaration of 'mode_t' was here
make[1]: *** [pr_fnmatch.o] Error 1
make[1]: Leaving directory `/home/builder/abs/proftpd/src/proftpd-1.3.1/lib'
make: *** [lib] Error 2
==> ERROR: Build Failed.
Aborting...

Loading...