You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to see your module in action, my webserver runs apache 2.4, the plugin compiles using apxs but when I try to restart apache:
httpd: Syntax error on line 46 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_kaPoW.so into server: /usr/lib/apache/mod_kaPoW.so: undefined symbol: kaPoW_POW_REQUIRED
Tried to "make" also when I saw a makefile, here is the output:
apxs -DLOG_DEBUG -i -a -c mod_kaPoW.c issuer.c verifier.c configuration.c
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o mod_kaPoW.lo mod_kaPoW.c && touch mod_kaPoW.slo
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o issuer.lo issuer.c && touch issuer.slo
issuer.c: In function 'kaPoW_Issue':
issuer.c:226: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'apr_size_t'
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o verifier.lo verifier.c && touch verifier.slo
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o configuration.lo configuration.c && touch configuration.slo
configuration.c: In function 'kaPoW_InitializeModule':
configuration.c:85: warning: format '%d' expects type 'int', but argument 8 has type 'apr_size_t'
configuration.c:85: warning: format '%d' expects type 'int', but argument 9 has type 'long unsigned int'
configuration.c: In function 'kaPoW_UpdateState':
configuration.c:158: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:159: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:160: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:161: warning: format '%20lu' expects type 'long unsigned int', but argument 8 has type 'int'
configuration.c:165: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:183: warning: format '%llu' expects type 'long long unsigned int', but argument 9 has type 'apr_time_t'
configuration.c: In function 'kaPoW_GetIP':
configuration.c:220: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:221: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:222: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:222: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:222: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:223: error: 'conn_rec' has no member named 'remote_addr'
configuration.c: In function 'kaPoW_ComputeDc':
configuration.c:254: error: 'conn_rec' has no member named 'remote_ip'
apxs:Error: Command failed with rc=65536
.
make: *** [mod_kapow] Error 1
Could you please adapt it for apache 2.4 ?
Thank you !
The text was updated successfully, but these errors were encountered:
Hi! I didn't actually write this module. This is the source code associated with the paper referenced in the Readme. I have nothing to do with its creation, I simply contacted the authors to ask them if they had source code, then asked them if I could release it under the GPL, because I thought having it online would be useful to the world.
I have no ability to maintain it or debug it. If you would like to try, then please do.
Hello,
I'd love to see your module in action, my webserver runs apache 2.4, the plugin compiles using apxs but when I try to restart apache:
httpd: Syntax error on line 46 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_kaPoW.so into server: /usr/lib/apache/mod_kaPoW.so: undefined symbol: kaPoW_POW_REQUIRED
Tried to "make" also when I saw a makefile, here is the output:
apxs -DLOG_DEBUG -i -a -c mod_kaPoW.c issuer.c verifier.c configuration.c
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o mod_kaPoW.lo mod_kaPoW.c && touch mod_kaPoW.slo
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o issuer.lo issuer.c && touch issuer.slo
issuer.c: In function 'kaPoW_Issue':
issuer.c:226: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'apr_size_t'
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o verifier.lo verifier.c && touch verifier.slo
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -DLOG_DEBUG -c -o configuration.lo configuration.c && touch configuration.slo
configuration.c: In function 'kaPoW_InitializeModule':
configuration.c:85: warning: format '%d' expects type 'int', but argument 8 has type 'apr_size_t'
configuration.c:85: warning: format '%d' expects type 'int', but argument 9 has type 'long unsigned int'
configuration.c: In function 'kaPoW_UpdateState':
configuration.c:158: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:159: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:160: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:161: warning: format '%20lu' expects type 'long unsigned int', but argument 8 has type 'int'
configuration.c:165: warning: format '%20llu' expects type 'long long unsigned int', but argument 8 has type 'apr_time_t'
configuration.c:183: warning: format '%llu' expects type 'long long unsigned int', but argument 9 has type 'apr_time_t'
configuration.c: In function 'kaPoW_GetIP':
configuration.c:220: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:221: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:222: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:222: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:222: error: 'conn_rec' has no member named 'remote_addr'
configuration.c:223: error: 'conn_rec' has no member named 'remote_addr'
configuration.c: In function 'kaPoW_ComputeDc':
configuration.c:254: error: 'conn_rec' has no member named 'remote_ip'
apxs:Error: Command failed with rc=65536
.
make: *** [mod_kapow] Error 1
Could you please adapt it for apache 2.4 ?
Thank you !
The text was updated successfully, but these errors were encountered: