I get these errors now when I attempt to run make after I've run the
./configure script -with-apxs
# make
/opt1/apache/bin/apxs -o libbackhand.so -c mod_backhand.c back_util.c apue.c
arriba.c builtins.c
/net/ess5/opt2/SUNWspro/SC4.2/bin/acc -DSOLARIS2=270 -KPIC -DSHARED_MODULE
-I/opt1/apache/include -c mod_backhand.c
"mod_backhand.c", line 306: warning: argument #1 is incompatible with
prototype:
prototype: pointer to char : "/usr/include/sys/shm.h", line 229
argument : pointer to struct {array[40] of char hostname, long
mtime, struct sockaddr_in {..} contact, int arriba, int aservers, int ns...
"mod_backhand.c", line 406: warning: assignment type mismatch:
pointer to function(pointer to struct request_rec {pointer to struct
pool {..} pool, pointer to struct conn_rec {..} connect... "=" pointer to
void
"mod_backhand.c", line 485: operands have incompatible types:
struct {ushort redirect, ushort hosttype, short id} ":" const
struct {ushort redirect, ushort hosttype, short id}
"mod_backhand.c", line 793: cannot recover from previous errors
apxs:Break: Command failed with rc=655360
make: *** [libbackhand.so] Error 1
#
Any input as to what's going on?
Thanks!!!
-----Original Message-----
From: Theo E. Schlossnagle [mailto:theos@cnds.jhu.edu]
Sent: Wednesday, August 02, 2000 9:56 PM
To: Barbara Villamar; backhand-users@lists.backhand.org
Subject: Re: [mod_backhand-users] Problems configuring mod_backhand
Barbara,
I can only wager that the apxs compilation was not quite correct. If
you did a simple apxs command it would have compiled the mod_backhand.c
into a shared object without first linking in all of the other objects
that it needs.
There is a configure script that was contributed (it is in the main
source). If you do a ./configure --with-apxs=/path/to/apache/bin/apxs
and the run make it should compile and link correctly.
The only oddities that I have actually seen on Solaris are improper
execution of candidacy functions that are in shared objects themselves
(To much loading and unloading going on, I guess).
The apxs commands that are executed should be in quantity (more than
4). There are several source files that need to be compiled and then
linked into a shared object.
Barbara Villamar wrote:
> 3. I compiled mod_backhand using apache's apxs
--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7