Mailing List Archive

[mod_backhand-users] Problems configuring mod_backhand
I am a newbie to mod_backhand and am requesting some assistance in
configuring it with apache.

When I try to restart the server I get the following error:

"Syntax error on line 232 of /opt1/apache/conf/httpd.conf:
Cannot load /opt1/apache/libexec/mod_backhand.so into server: ld.so.1:
/opt1/apache/bin/httpd: fatal: relocation error: file
/opt1/apache/libexec/mod_backhand.so: symbol byAge: referenced symbol not
found"

Please help.

TIA,
Barbara
[mod_backhand-users] Problems configuring mod_backhand [ In reply to ]
Four questions:

(1) Is this only when you restart?
(2) Do you use BackhandFromSO anywhere in your configuration.
(3) Did you compile mod_backhand as a shared module? I assume so from
the below error message.
(4) Are you running under Solaris? I am guessing from the /opt prefix
that you are Solaris person :)

There have been reports (verified) that things are just plain screwy
with mod_backhand under Solaris when mod_backhand is a shared object.
Try recomiling Apache with --enable-module=backhand, but NO
--enable-shared=backhand.

Barbara Villamar wrote:
> I am a newbie to mod_backhand and am requesting some assistance in
> configuring it with apache.
>
> "Syntax error on line 232 of /opt1/apache/conf/httpd.conf:
> Cannot load /opt1/apache/libexec/mod_backhand.so into server: ld.so.1:
> /opt1/apache/bin/httpd: fatal: relocation error: file
> /opt1/apache/libexec/mod_backhand.so: symbol byAge: referenced symbol not
> found"

--
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
[mod_backhand-users] Problems configuring mod_backhand [ In reply to ]
1. Actually it happens either way whether doing ./apachectl start or
./apachectl graceful.....
2. No I am not using BackhandFromS0 anywhere...
3. I compiled mod_backhand using apache's apxs
4. I am running solaris 2.7, apache 1.3.6

Recompiling apache is not really an option for me... Is there another way
around the screwiness?

-----Original Message-----
From: Theo E. Schlossnagle [mailto:theos@cnds.jhu.edu]
Sent: Wednesday, August 02, 2000 11:39 AM
To: Barbara Villamar
Cc: 'backhand-users@lists.backhand.org'
Subject: Re: [mod_backhand-users] Problems configuring mod_backhand

Four questions:

(1) Is this only when you restart?
(2) Do you use BackhandFromSO anywhere in your configuration.
(3) Did you compile mod_backhand as a shared module? I assume so from
the below error message.
(4) Are you running under Solaris? I am guessing from the /opt prefix
that you are Solaris person :)

There have been reports (verified) that things are just plain screwy
with mod_backhand under Solaris when mod_backhand is a shared object.
Try recomiling Apache with --enable-module=backhand, but NO
--enable-shared=backhand.

Barbara Villamar wrote:
> I am a newbie to mod_backhand and am requesting some assistance in
> configuring it with apache.
>
> "Syntax error on line 232 of /opt1/apache/conf/httpd.conf:
> Cannot load /opt1/apache/libexec/mod_backhand.so into server: ld.so.1:
> /opt1/apache/bin/httpd: fatal: relocation error: file
> /opt1/apache/libexec/mod_backhand.so: symbol byAge: referenced symbol not
> found"

--
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
[mod_backhand-users] Problems configuring mod_backhand [ In reply to ]
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
[mod_backhand-users] Problems configuring mod_backhand [ In reply to ]
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