Mailing List Archive

Error compiling backhand 1.2.2 on Solaris 2.9
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=3Dso --enable-module=3Dbackhand --enable-
shared=3Dbackhand --enable-module=3Dstatus --enable-shared=3Dstatus --
enable-module=3Dinfo --enable-shared=3Dinfo --prefix=3D/opt/apache-1.3.27
--enable-rule=3DSHARED_CORE

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

And I get:

-- snip --
=3D=3D=3D> src/modules/backhand
gcc -c -I../../os/unix -I../../include -DSOLARIS2=3D290 -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 po=
inter type
gcc -c -I../../os/unix -I../../include -DSOLARIS2=3D290 -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 --
=3D=3D=3D> src/modules/backhand
gcc -c -I../../os/unix -I../../include -DSOLARIS2=3D290 -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 po=
inter type
gcc -c -I../../os/unix -I../../include -DSOLARIS2=3D290 -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=3D290 -fPIC -DSHARED_=
CORE `../../apaci` apue.c
gcc -c -I../../os/unix -I../../include -DSOLARIS2=3D290 -fPIC -DSHARED_=
CORE `../../apaci` arriba.c
gcc -c -I../../os/unix -I../../include -DSOLARIS2=3D290 -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=3D290 -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 po=
inter type
gcc -c -I../../os/unix -I../../include -DSOLARIS2=3D290 -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
Error compiling backhand 1.2.2 on Solaris 2.9 [ In reply to ]
Heiko Jansen wrote:
> 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 --
> Warnings are still there, but no error.


There is a typo in 1.2.2 in the Solaris specific code. It is fixed in CVS.
If you want to update to HEAD, it should fix your problem.

--
Theo Schlossnagle
Principal Consultant
OmniTI Computer Consulting, Inc. -- http://www.omniti.com/
Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7
Error compiling backhand 1.2.2 on Solaris 2.9 [ In reply to ]
Am 22 Jul 2003 um 11:22 schrieb Theo E. Schlossnagle:
[Re: [m_b_users] Error compiling backhand 1.2.2 on]

> > 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:
>
> There is a typo in 1.2.2 in the Solaris specific code. It is fixed in CVS.
> If you want to update to HEAD, it should fix your problem.

yes, it did ;-)

warnings about static/non-static declaration and incompatible
pointer types are still there but the error has gone.

many thanks
heiko
_____________________________________
heiko jansen, cologne, germany