Error compiling backhand 1.2.2 on Solaris 2.9

"Heiko Jansen" <[email protected]> Tue, 22 Jul 2003 15:31:25 +0200
Newsgroups gmane.comp.apache.mod-backhand.general
Organization HBZ
Message-ID <3F1D58CB.29225.16C416F@localhost>
Hi there,

I have a problem compiling mod_backhand/1.2.2 with Apache/1.3.27 on 
Solaris 2.9 (SPARC) with gcc 3.2.2:

After precompile I invoke the Apache configure like this:
./configure --enable-module=so --enable-module=backhand --enable-
shared=backhand --enable-module=status --enable-shared=status --
enable-module=info --enable-shared=info --prefix=/opt/apache-1.3.27 
--enable-rule=SHARED_CORE

(Last rule because of older messages in this list but its absence 
doesn´t change anything.)

And I get:

-- snip --
===> src/modules/backhand
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` mod_backhand.c
In file included from mod_backhand.c:31:
mod_backhand.h:40: warning: static declaration for `inet_aton' follows non-static
mod_backhand.c: In function `backhand_cleanup_shm':
mod_backhand.c:318: warning: passing arg 1 of `shmdt' from incompatible pointer type
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` back_util.c
In file included from back_util.c:22:
mod_backhand.h:40: warning: static declaration for `inet_aton' follows non-static
In file included from back_util.c:36:
platform.c: In function `initstat':
platform.c:273: parse error before "else"
platform.c: In function `fillstat':
platform.c:389: parse error before "else"
back_util.c: In function `broadcast_my_stats':
back_util.c:567: warning: passing arg 2 of `serv_accept' from incompatible pointer type
make[4]: *** [back_util.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/opt/digibib/apache_1.3.27/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/opt/digibib/apache_1.3.27'
make: *** [build] Error 2
-- / snip --

It works however, if I use mod_backhand/1.2.1 instead:

-- snip --
===> src/modules/backhand
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` mod_backhand.c
In file included from mod_backhand.c:31:
mod_backhand.h:40: warning: static declaration for `inet_aton' follows non-static
mod_backhand.c: In function `backhand_cleanup_shm':
mod_backhand.c:302: warning: passing arg 1 of `shmdt' from incompatible pointer type
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` back_util.c
In file included from back_util.c:22:
mod_backhand.h:40: warning: static declaration for `inet_aton' follows non-static
back_util.c: In function `broadcast_my_stats':
back_util.c:552: warning: passing arg 2 of `serv_accept' from incompatible pointer type
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` apue.c
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` arriba.c
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` builtins.c
In file included from builtins.c:15: 
mod_backhand.h:40: warning: static declaration for `inet_aton' 
follows non-static
rm -f mod_backhand.a libbackhand.a
ar cr mod_backhand.a mod_backhand.o back_util.o apue.o arriba.o builtins.o
ranlib mod_backhand.a
mv mod_backhand.a libbackhand.a
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` -DSHARED_MODULE mod_backhand.c && mv mod_backhand.o mod_backhand.lo
In file included from mod_backhand.c:31:
mod_backhand.h:40: warning: static declaration for `inet_aton' follows non-static
mod_backhand.c: In function `backhand_cleanup_shm':
mod_backhand.c:302: warning: passing arg 1 of `shmdt' from incompatible pointer type
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=290 -fPIC -DSHARED_CORE `../../apaci` -DSHARED_MODULE back_util.c && mv back_util.o back_util.lo
In file included from back_util.c:22:
mod_backhand.h:40: warning: static declaration for `inet_aton' follows non-static
back_util.c: In function `broadcast_my_stats':
back_util.c:552: warning: passing arg 2 of `serv_accept' from incompatible pointer type
-- / snip --

Warnings are still there, but no error.

Any suggestions?

Thanks
Heiko