System: Solaris (SunOS 5.11 Nexenta, 64-bit)
gcc (GCC) 4.0.3 (GNU_Solaris 4.0.3-1nexenta6)
Compilation log:
root@damned:/usr/local/src/mod-cband-0.9.7.5# make
/usr/local/apache2/bin/apxs -Wc,-Wall -Wc,-DDST_CLASS=3 -c src/mod_cband.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -Wall -DDST_CLASS=3 -c -o src/mod_cband.lo src/mod_cband.c && touch src/mod_cband.slo
src/mod_cband.c:64: error: static declaration of 'logf' follows non-static declaration
src/mod_cband.c:65: error: static declaration of 'sqrtf' follows non-static declaration
src/mod_cband.c:66: error: static declaration of 'floorf' follows non-static declaration
src/mod_cband.c:67: error: static declaration of 'powf' follows non-static declaration
src/mod_cband.c:81: warning: type qualifiers ignored on function return type
apxs:Error: Command failed with rc=65536
.
make: *** [src/.libs/mod_cband.so] Error 1
mod-cband-0.9.7.4 works fine.
Michal Gottlieb.
admin@linuxstorm.org
Fix by editing src/mod_cband.c line 63 to test for __solaris:
#if defined(__solaris) || defined(__sun__)