[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Limitar ancho banda upload por IP



Con la versión 0.7 he tenido problemas y no he podido hacerla
funcionar, creo que se debe a la versión del APR.

$ apxs2 -i -a -c mod_bw.c
/usr/bin/libtool --silent --mode=compile gcc -prefer-pic -pipe
-I/usr/include/xmltok -I/usr/include/openssl -Wall -O2
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pipe
-I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -pthread
-I/usr/include/apache2  -I/usr/include/apr-0   -I/usr/include/apr-0
-I/usr/include  -c -o mod_bw.lo mod_bw.c && touch mod_bw.slo
mod_bw.c: In function `update_counters':
mod_bw.c:664: warning: implicit declaration of function `apr_atomic_cas32'
mod_bw.c:678: warning: implicit declaration of function `apr_atomic_set32'
mod_bw.c: In function `bw_filter':
mod_bw.c:809: warning: implicit declaration of function `apr_atomic_inc32'
mod_bw.c:814: warning: long int format, int arg (arg 7)
mod_bw.c:834: warning: implicit declaration of function `apr_atomic_dec32'
mod_bw.c:893: warning: implicit declaration of function `apr_atomic_add32'
mod_bw.c: At top level:
mod_bw.c:454: warning: `is_ip' defined but not used
....

Aunque son solo warnings no es capaz de cargar el módulo:
$ apache2 -t
Syntax error on line 1 of /etc/apache2/mods-enabled/mod_bw.load:
Cannot load /usr/lib/apache2/modules/mod_bw.so into server:
/usr/lib/apache2/modules/mod_bw.so: undefined symbol: apr_atomic_inc32

Con la versión 0.6 no he tenido problemas, mirando la el Changelog de
la 0.7 pone lo siguiente:
- Added Support for APR > 0.9
- Added Support for extra-large files (2G, 4G) with APR > 1

Por eso supongo que será problema de mi versión de APR que en Debian
Sarge sea anterior ya que he probado en una Sid y se carga sin
problemas.
¿Alguien lo tiene funcionando en Sarge?
No veo cambios de importancia vital de la 0.6 a la 0.7 ¿hay problemas
por estar con la 0.6?
¿Se os ocurre alguna solución?



Reply to: