Compiling Apache::Scoreboard

2003-03-13 Thread wsheldah
Hi,

I'm getting a bizarre compile error while trying to build
Apache::Scoreboard 0.10 on a Mandrake Linux 9.0 system.

Here's a snippet of make output, from the first gcc command that failed to just the 
first few errors it generates:

gcc -c  -I../ 
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/include
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/regex
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/os/unix 
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 
-fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math
-fno-strength-reduce   -DVERSION=\0.04\ -DXS_VERSION=\0.04\ -fpic 
-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE  -DPERL_THREADS
DummyScoreboard.c
In file included from DummyScoreboard.xs:14:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261:
 parse error before '*' token
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261:
 warning: data definition has no type or
storage class
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264:
 parse error before '*' token
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264:
 warning: data definition has no type or
storage class


And here's a snippet from mod_perl.h with line numbers:

256
257 typedef request_rec * Apache;
258 typedef request_rec * Apache__SubRequest;
259 typedef conn_rec* Apache__Connection;
260 typedef server_rec  * Apache__Server;
261 typedef cmd_parms   * Apache__CmdParms;
262 typedef TiedTable   * Apache__Table;
263 typedef table   * Apache__table;
264 typedef module  * Apache__Module;
265 typedef handler_rec * Apache__Handler;
266 typedef command_rec * Apache__Command;
267


As you can see, the first two errors happen in the middle of pretty normal looking 
typedef statements. This was built using perl 5.8.0 (Mandrake's
rpm), gcc 3.2 (Mandrake rpm again), and mod_perl 1.27 (compiled from source).

I've talked to one other person who found the same errors on Red Hat 8.0, also using 
Red Hat's perl 5.8.0 and gcc 3.2 rpm's and a custom built
mod_perl. Googling turned up someone from last fall with the same setup and problem, 
but no solution.

Anyone else seen this? Other troubleshooting tips? Thanks in advance,

Wes Sheldahl





Re: Compiling Apache::Scoreboard

2003-03-13 Thread Stas Bekman
[EMAIL PROTECTED] wrote:
Hi,

I'm getting a bizarre compile error while trying to build
Apache::Scoreboard 0.10 on a Mandrake Linux 9.0 system.
Here's a snippet of make output, from the first gcc command that failed to just the first few errors it generates:

gcc -c  -I../ 
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/include
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/regex
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/os/unix 
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 
-fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math
-fno-strength-reduce   -DVERSION=\0.04\ -DXS_VERSION=\0.04\ -fpic 
-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE  -DPERL_THREADS
DummyScoreboard.c
In file included from DummyScoreboard.xs:14:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261:
 parse error before '*' token
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261:
 warning: data definition has no type or
storage class
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264:
 parse error before '*' token
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264:
 warning: data definition has no type or
storage class
I think this has to do with the ordering of including apache headers. This was 
fixed in the cvs version of mod_perl 1.0. Can you please try to rebuild 
mod_perl using the cvs version and then give another chance to Apache::Scoreboard?

http://perl.apache.org/download/source.html#Development_Source_Distribution
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Apache::VMonitor not showing requests (might be Apache::Scoreboard problem)

2002-04-04 Thread Jon Molin

Hi list,

I've got some problems with getting Apache::VMonitor showing the
requests, everything but client ip and requests shows. 
when i call server/scoreboard do i get a file, and 'strings
scoreboard|grep -A 1 myip' shows my ip and request (can't find the pid
though) so the info should be there. I've added :
 'REQ='.$rec-{request}.''; #line 373 in Apache::VMonitor
and when i call server/sys-monitor do i get 'REQ=' foreach row. So it
tries to print but it's all empty.

I guess this is some silly conf thingy i've missed out. I have it
running fine on another system and i can't see the diff in
configuration.
here's a snippet of httpd.conf:

# httpd.conf
PerlFreshRestart On  
Perlrequire /usr/local/apache/conf/startup.pl
PerlModule Apache::Scoreboard

Location /perl-status
   SetHandler perl-script
   PerlHandler Apache::Status
   order deny,allow
   deny from all
   allow fromlocalhost
/Location
Location /sys-monitor
   SetHandler perl-script
   PerlHandler Apache::VMonitor
   order deny,allow
   deny from all
   allow from localhost 
/Location
Location /scoreboard
   SetHandler perl-script
   PerlHandler Apache::Scoreboard::send
   order deny,allow
   deny from all
   allow from localhost 
/Location
# END
and here's the part from startup.pl with Apache::VMonitor:
use Apache::VMonitor();
$Apache::VMonitor::Config{BLINKING} = 1;
$Apache::VMonitor::Config{REFRESH}  = 0;
$Apache::VMonitor::Config{VERBOSE}  = 0;
$Apache::VMonitor::Config{SYSTEM}   = 1;
$Apache::VMonitor::Config{APACHE}   = 1;
$Apache::VMonitor::Config{PROCS}= 1;
$Apache::VMonitor::Config{MOUNT}= 1;
$Apache::VMonitor::Config{FS_USAGE} = 1;
$Apache::VMonitor::Config{SORT_BY}  = 'size';
$Apache::VMonitor::PROC_REGEX = join |, qw(httpd mysql);
$Apache::VMonitor::Config{PROC_REGEX}  = join |, qw(httpd mysql);
#END

And here's my system:
Embedded Perl version v5.6.0 for Apache/1.3.23 (Unix) mod_perl/1.26 
$Apache::VMonitor::VERSION = '0.6';
Apache::Scoreboard version: $VERSION = '0.10';

So is there anything obivous I've missed out?

/Jon



Re: Apache::VMonitor not showing requests (might be Apache::Scoreboard problem)

2002-04-04 Thread Bill Marrs

Maybe adding this to your httpd.conf will help:

ExtendedStatus On

?




Re: Apache::Scoreboard question

2001-12-13 Thread Robert

Anand R wrote:
 
 # ScoreBoardFile: File used to store internal server process information.
 # Not all architectures require this.  But if yours does (you'll know
 because
 # this file will be  created when you run Apache) then you *must* ensure
 that
 # no two invocations of Apache share the same scoreboard file.
 #
 ScoreBoardFile logs/apache_runtime_status
 
 This should help you,
 -Anand

Thanks for your answer, but I'm not sure how this should help me. Can I
(and how) use Apache::Scoreboard to access full child's request record
incl. virtual host name?

- Robert



 - Original Message -
 From: Robert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 11:38 AM
 Subject: Apache::Scoreboard question
 
  Hi,
 
can Apache::Scoreboard be extended that with last request per child it
  would also return the corresponding virtual host name? I would be
  usefull for Apache::VMonitor. Thanks.



Apache::Scoreboard question

2001-12-12 Thread Robert

Hi,

  can Apache::Scoreboard be extended that with last request per child it
would also return the corresponding virtual host name? I would be
usefull for Apache::VMonitor. Thanks.

- Robert



Apache::Scoreboard

2001-10-12 Thread Jason Boxman

It's borked on my box somehow.

Even though I have multiple servers running, I only get results for the 
parent process and only partial information at that.  It also prevents 
Apache::VMonitor from returning any useful information about my running 
Apache processes.

[Fri Oct 12 15:52:22 2001] [notice] Apache/1.3.20 (Unix) Debian/GNU 
mod_perl/1.25 configured -- resuming normal operations

Has anyone ever seen this?  The module compile flawlessly.

I don't have a clue how to fix it / my setup.

mod_perl is compiled as a module.  It's all stock Debian stuff from 
Sid/unstable.

Thanks.



Re: Apache::Scoreboard on Digital Unix

2001-06-29 Thread Alessio Bragadini

Hi all, 
on Fri, 17 Nov 2000 Didier Godefroy wrote:

 I was trying to add the Apache::Scoreboard module [on Digital Unix/Compaq Tru64] to 
perl using cpan and
 it's giving out errors:
 
 cc: Error:
 /usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf/auto/Apache/include/inclu
 de/http_protocol.h, line 153: Invalid declara
 tion.
 __attribute__((format(printf,2,3)));
 ^

etc. I am experiencing the same behaviour, using Apache::Scoreboard 0.10
and mod_perl 1.25 with Digital cc (not gcc). 

I didn't see a reply to Didier's original message, is this problem
solved somehow?

Thanks!

-- 
Alessio F. Bragadini[EMAIL PROTECTED]
APL Financial Services  http://village.albourne.com
Nicosia, Cyprus phone: +357-2-755750

It is more complicated than you think
-- The Eighth Networking Truth from RFC 1925



Unable to build Apache::Scoreboard 0.10 with 5.6.0/1.3.19/1.25/RH 6.2

2001-05-08 Thread Tommy Davis

I'm having problems compiling Apache::Scoreboard on a RH 6.2 system with 
the following packages all compiled from source:

Kernel 2.2.19
Apache 1.3.19
Perl 5.6.0
mod_perl 1.25
libgtop1.0.7
glib1.2.8
Apache::Scoreboard 0.10

I've searched the archive, and have seen mention of the same problem 
twice, but no solutions. The error is shown below.


[Apache-Scoreboard-0.10]# make
make[1]: Entering directory `/root/.cpan/build/Apache-Scoreboard-0.10/Dummy'
/usr/bin/perl -I/usr/local/lib/perl5/5.6.0/i686-linux 
-I/usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp  
-typemap
/usr/local/lib/perl5/5.6.0/ExtUtils/typemap -typemap 
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/typemap 
-typemap typemap DummyScoreboard.xs 
DummyScoreboard.xsc  mv DummyScoreboard.xsc DummyScoreboard.c
Please specify prototyping behavior for DummyScoreboard.xs (see perlxs 
manual)
cc -c -I../ 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/modules/perl 

-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/regex
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/os/unix 
-I/usr/local/apache/include -fno-strict-aliasing -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64
-O2 -DVERSION=\0.04\ -DXS_VERSION=\0.04\ -fpic 
-I/usr/local/lib/perl5/5.6.0/i686-linux/CORE  DummyScoreboard.c
In file included from DummyScoreboard.xs:2:
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include/scoreboard.h:150:
 
field `start_time' has incomplete type
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include/scoreboard.h:151:
 
field `stop_time' has incomplete type
make[1]: *** [DummyScoreboard.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/Apache-Scoreboard-0.10/Dummy'
make: *** [subdirs] Error 2


I've compiled Apache::Scoreboard many times on very similar systems. The 
most recent one with the same setup, apart from:
Kernel 2.2.18
Apache 1.3.12
mod_perl 1.24_01


I'm wondering if I should recompile Apache, Perl or mod_perl after 
installing kernel 2.2.19.

Any suggestions as to why Apache::Scoreboard fails to compile?

-- 
Med venlig hilsen

-Toem

Tommy Davis
Adapt A/S,  Havnegade 41, 2. sal,  1058 København K
Tel +45 3341 1050,  Fax +45 3341 1069,  http://www.adapt.dk/





Unable to build Apache::Scoreboard 0.10 with 5.6.0/1.3.17/1.25/RH 6.2

2001-02-02 Thread Mike Janson


I am encountering the following problem when attempting to
install Apache::Scoreboard 0.10 on a fresh Red Hat 6.2 install
(2.2.14-5.0 kernel) with Perl 5.6.0, Apache 1.3.17, and mod_perl 1.25
(all installed from source, not the RH RPMs):

/usr/local/src/Apache-Scoreboard-0.10 109  perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Apache::DummyScoreboard
Writing Makefile for Apache::Scoreboard
/usr/local/src/Apache-Scoreboard-0.10 114  make
make[1]: Entering directory `/usr/local/src/Apache-Scoreboard-0.10/Dummy'
cc -c -I../ -I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/modules/perl 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/regex 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/os/unix 
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 
-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fpic 
-I/usr/local/lib/perl5/5.6.0/i686-linux/CORE  DummyScoreboard.c
In file included from DummyScoreboard.xs:2:
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include/scoreboard.h:151:
 field `start_time' has incomplete type
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include/scoreboard.h:152:
 field `stop_time' has incomplete type
make[1]: *** [DummyScoreboard.o] Error 1
make[1]: Leaving directory `/usr/local/src/Apache-Scoreboard-0.10/Dummy'
make: *** [subdirs] Error 2
/usr/local/src/Apache-Scoreboard-0.10 115  

I have seen posts about similar types of problems folks have experienced
in the past, but have verified the above version numbers of related installs,
and am under the impression this should work.  Can anyone help shed some light
on this?


Apache::Scoreboard

2000-11-17 Thread Didier Godefroy

Hi all again,

I was trying to add the Apache::Scoreboard module to perl using cpan and
it's giving out errors:

cc: Error: 
/usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf/auto/Apache/include/inclu
de/http_protocol.h, line 153: Invalid declara
tion.
__attribute__((format(printf,2,3)));
^
cc: Error: 
/usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf/auto/Apache/include/inclu
de/http_log.h, line 119: Invalid declaration.
__attribute__((format(printf,5,6)));
^
cc: Error: 
/usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf/auto/Apache/include/inclu
de/http_log.h, line 122: Invalid declaration.
__attribute__((format(printf,5,6)));
^
cc: Error: 
/usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf/auto/Apache/include/inclu
de/http_log.h, line 133: Invalid declaration.
__attribute__((format(printf,2,3)));
^

is there a bug in that module? Or is there a way to get this to install
anyway?
(system is Alpha DU4.0b )

-- 
Didier Godefroy
mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Apache::Scoreboard returns incomplete information to Apache::Watchdog::RunAway.

2000-11-06 Thread G.W. Haywood

Hi there,

On Mon, 6 Nov 2000, Jayme Frye wrote:

 I am setting up Apache::Watchdog::RunAway and have come across a
 problem with Apache::Scoreboard that breaks Watchdog.
[snip]
  Apache compile time options:
 
  SL_BASE=SYSTEM \
  EAPI_MM=SYSTEM \
  CC="egcs" \
  OPTIM="-O9

Extract from apache_1.3.14/src/Configuration:

# Optimization note: 
# Be careful when adding optimization flags (like -O3 or -O6) on the OPTIM
# entry, especially when using some GCC variants. Experience showed that using
# these for compiling Apache is risky. If you don't want to see Apache dumping
# core regularly then at most use -O or -O2.

73,
Ged.




Re: Apache::Scoreboard returns incomplete information to Apache::Watchdog::RunAway.

2000-11-06 Thread Jayme Frye

"G.W. Haywood" wrote:

 Hi there,

 On Mon, 6 Nov 2000, Jayme Frye wrote:

  I am setting up Apache::Watchdog::RunAway and have come across a
  problem with Apache::Scoreboard that breaks Watchdog.
 [snip]
   Apache compile time options:
 
   SL_BASE=SYSTEM \
   EAPI_MM=SYSTEM \
   CC="egcs" \
   OPTIM="-O9

 Extract from apache_1.3.14/src/Configuration:

 # Optimization note:
 # Be careful when adding optimization flags (like -O3 or -O6) on the OPTIM
 # entry, especially when using some GCC variants. Experience showed that using
 # these for compiling Apache is risky. If you don't want to see Apache dumping
 # core regularly then at most use -O or -O2.

 73,
 Ged.

Thanks for the info. Although I have had no problems with this level of
optimization I tried recompiling with -O and -O2. Unfortunately compiling with -O
or -O2 did nothing to correct the ouptut of Apache::Scoreboard.  The problem also
effects Apache::VMonitor which returns incomplete information as well.

Jayme Frye
Senior System Administrator
Inventive Comm
[EMAIL PROTECTED]




Apache::Scoreboard returns incomplete information to Apache::Watchdog::RunAway.

2000-11-06 Thread Jayme Frye

I am setting up Apache::Watchdog::RunAway and have come across a problem
with Apache::Scoreboard that breaks Watchdog. The broken thing is
access_count which is always 0 (my $count = $process-my_access_count;).
This causes process running time to continue to increase until the
Apache::Watchdog::RunAway timeout is reached and the process is marked
as hung and killed.

Sample debug output from Watchdog:
OK 3 25345 W 0 30 0
OK 8 25383 W 0 24 0
OK 7 25411 W 0 18 0
OK 11 25421 W 0 15 0
OK 2 25408 W 0 3 0
OK 2 25408 W 0 6 0
OK 3 25345 W 0 33 0
[Tue Oct 31 11:37:11 2000] Apache::Watchdog::RunAway: child proc 25345
seems
to hang -- it is running longer than limit of 30 secs
($Apache::Watchdog::RunAway::TIMEOUT).
Killing proc 25345.
OK 7 25411 W 0 21 0
OK 11 25421 W 0 18 0

From conversations with the author of Watchdog an example of correct
output:
OK 2 13377 W 2 0 1
OK 0 13374 W 8 0 7
OK 2 13377 W 3 0 2
OK 0 13374 W 9 0 8
OK 2 13377 W 4 0 3
OK 2 13377 W 5 0 4
--
col   1  23 4 5 6

See the columns above: column 5 is the time the process is running,
column
4 is the count of requests served by the child and col6 is the last
request served. So the killing rule triggers when:
col 4 and 6 has the same value and col 5 is bigger than TIMEOUT value.

Finally here is some info on the environment this is running under.

Output from perl-status:
Embedded Perl version 5.00503 for Apache/1.3.12 (Unix) AuthMySQL/2.20
mod_perl/1.24 PHP/3.0.16 mod_ssl/2.6.4 OpenSSL/0.9.5a process 16288,
running since Tue Oct 31 16:34:26 2000

Everything is compiled from tar balls on a RH 6.2 base install. Below
are my
compile time options for apache and mod_perl:

 Apache compile time options:

 SL_BASE=SYSTEM \
 EAPI_MM=SYSTEM \
 CC="egcs" \
 OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro
 -march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
 CFLAGS="-DDYNAMIC_MODULE_LIMIT=0 -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -DBUFFERED_LOGS" \
 ./configure \
 --with-layout=GNU \
 --add-module=src/modules/experimental/mod_mmap_static.c \
 --add-module=src/modules/standard/mod_auth_dbm.c \
 --enable-module=ssl \
 --enable-rule=SSL_SDBM \
 --disable-rule=SSL_COMPAT \
 --activate-module=src/modules/php3/libphp3.a \
 --enable-module=php3 \
 --activate-module=src/modules/perl/libperl.a \
 --enable-module=perl \
 --activate-module=src/modules/auth_mysql/libauth_mysql.a \
 --disable-module=negotiation \
 --disable-module=autoindex \
 --disable-module=asis \
 --disable-module=imap

 mod_perl compile time options:

 EVERYTHING=1 \
 APACHE_SRC=../apache-1.3.12/src \
 USE_APACI=1 \
 PREP_HTTPD=1 \
 DO_HTTPD=1

 Thanks again for the help.

Jayme Frye
Senior System Administrator
Inventive Comm.
[EMAIL PROTECTED]



Apache::Scoreboard returns incomplete information to Apache::Watchdog::RunAway.

2000-11-01 Thread Jayme Frye

I am setting up Apache::Watchdog::RunAway and have come across a problem
with Apache::Scoreboard that breaks Watchdog. The broken thing is
access_count which is always 0 (my $count = $process-my_access_count;).
This causes process running time to continue to increase until the
Apache::Watchdog::RunAway timeout is reached and the process is marked
as hung and killed.

Sample debug output from Watchdog:
OK 3 25345 W 0 30 0
OK 8 25383 W 0 24 0
OK 7 25411 W 0 18 0
OK 11 25421 W 0 15 0
OK 2 25408 W 0 3 0
OK 2 25408 W 0 6 0
OK 3 25345 W 0 33 0
[Tue Oct 31 11:37:11 2000] Apache::Watchdog::RunAway: child proc 25345
seems
to hang -- it is running longer than limit of 30 secs
($Apache::Watchdog::RunAway::TIMEOUT).
Killing proc 25345.
OK 7 25411 W 0 21 0
OK 11 25421 W 0 18 0

From conversation with the author of Watchdog correct output:
OK 2 13377 W 2 0 1
OK 0 13374 W 8 0 7
OK 2 13377 W 3 0 2
OK 0 13374 W 9 0 8
OK 2 13377 W 4 0 3
OK 2 13377 W 5 0 4
--
col   1  23 4 5 6

See the columns above: column 5 is the time the process is running,
column
4 is the count of requests served by the child and col6 is the last
request served. So the killing rule triggers when:
col 4 and 6 has the same value and col 5 is bigger than TIMEOUT value.

Finally here is some info on the environment this is running under.

Output from perl-status:
Embedded Perl version 5.00503 for Apache/1.3.12 (Unix) AuthMySQL/2.20
mod_perl/1.24 PHP/3.0.16 mod_ssl/2.6.4 OpenSSL/0.9.5a process 16288,
running since Tue Oct 31 16:34:26 2000

Everything is compiled from tar balls on a RH 6.2 base install. Below
are my
compile time options for apache and mod_perl:

 Apache compile time options:

 SL_BASE=SYSTEM \
 EAPI_MM=SYSTEM \
 CC="egcs" \
 OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro
 -march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
 CFLAGS="-DDYNAMIC_MODULE_LIMIT=0 -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -DBUFFERED_LOGS" \
 ./configure \
 --with-layout=GNU \
 --add-module=src/modules/experimental/mod_mmap_static.c \
 --add-module=src/modules/standard/mod_auth_dbm.c \
 --enable-module=ssl \
 --enable-rule=SSL_SDBM \
 --disable-rule=SSL_COMPAT \
 --activate-module=src/modules/php3/libphp3.a \
 --enable-module=php3 \
 --activate-module=src/modules/perl/libperl.a \
 --enable-module=perl \
 --activate-module=src/modules/auth_mysql/libauth_mysql.a \
 --disable-module=negotiation \
 --disable-module=autoindex \
 --disable-module=asis \
 --disable-module=imap

 mod_perl compile time options:

 EVERYTHING=1 \
 APACHE_SRC=../apache-1.3.12/src \
 USE_APACI=1 \
 PREP_HTTPD=1 \
 DO_HTTPD=1

 Thanks again for the help.

Jayme Frye
Senior System Administrator
Inventive Comm.
[EMAIL PROTECTED]




Problems installing Apache::Scoreboard

2000-08-16 Thread Robert Jenks
Title: Problems installing Apache::Scoreboard





I am running RH6.0 / Perl 5.005_03 / mod_perl 1.22 and I'm getting the following errors when trying to install Apache::Scoreboard. Any ideas?

# make
mkdir blib
mkdir blib/lib
mkdir blib/lib/Apache
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Apache
mkdir blib/arch/auto/Apache/Scoreboard
mkdir blib/lib/auto
mkdir blib/lib/auto/Apache
mkdir blib/lib/auto/Apache/Scoreboard
mkdir blib/man3
cp lib/Apache/ScoreboardGraph.pm blib/lib/Apache/ScoreboardGraph.pm
cp Scoreboard.pm blib/lib/Apache/Scoreboard.pm
make[1]: Entering directory `/root/.cpan/build/Apache-Scoreboard-0.10/Dummy'
mkdir ../blib/arch/auto/Apache/DummyScoreboard
mkdir ../blib/lib/auto/Apache/DummyScoreboard
cp DummyScoreboard.pm ../blib/lib/Apache/DummyScoreboard.pm
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 /usr/lib/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.00503/ExtUtils/typemap -typemap /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/typemap -typemap typemap DummyScoreboard.xs xstmp.c  mv xstmp.c DummyScoreboard.c

Please specify prototyping behavior for DummyScoreboard.xs (see perlxs manual)
cc -c -I../ -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/modules/perl -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/include -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/regex -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/os/unix -I/usr/include/apache -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -DVERSION=\0.04\ -DXS_VERSION=\0.04\ -fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE DummyScoreboard.c

In file included from DummyScoreboard.xs:2:
/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/include/scoreboard.h:150: field `start_time' has incomplete type

/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/include/scoreboard.h:151: field `stop_time' has incomplete type

make[1]: *** [DummyScoreboard.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/Apache-Scoreboard-0.10/Dummy'
make: *** [subdirs] Error 2


--
Robert Jenks [EMAIL PROTECTED]
Sr. Software Engineer
Physia Corporation http://www.physia.com





Apache::Scoreboard won't compile...

2000-04-16 Thread Rusty Foster

I'm at a loss as to what to do here... 

The system in question: 
slackware 7, 
Apache 1.3.12, 
mod_perl 1.22,
perl 5.005_03
Apache::Scoreboard 0.10

Here's what happens when I run make (perl Makefile.PL runs fine):

[mkdir blib stuff...]
cp lib/Apache/ScoreboardGraph.pm blib/lib/Apache/ScoreboardGraph.pm
cp Scoreboard.pm blib/lib/Apache/Scoreboard.pm
make[1]: Entering directory `/usr/src/Apache-Scoreboard-0.10/Dummy'
mkdir ../blib/arch/auto/Apache/DummyScoreboard
mkdir ../blib/lib/auto/Apache/DummyScoreboard
cp DummyScoreboard.pm ../blib/lib/Apache/DummyScoreboard.pm
/usr/bin/perl -I/usr/lib/perl5/i386-linux -I/usr/lib/perl5
/usr/lib/perl5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/ExtUtils/typemap
-typemap /usr/lib/perl5/site_perl/i386-linux/auto/Apache/typemap
-typemap typemap DummyScoreboard.xs xstmp.c  mv xstmp.c
DummyScoreboard.c
Please specify prototyping behavior for DummyScoreboard.xs (see perlxs
manual)
cc -c -I../ -I/usr/lib/perl5/site_perl/i386-linux/auto/Apache/include
-I/usr/lib/perl5/site_perl/i386-linux/auto/Apache/include/modules/perl
-I/usr/lib/perl5/site_perl/i386-linux/auto/Apache/include/include
-I/usr/lib/perl5/site_perl/i386-linux/auto/Apache/include/regex
-I/usr/lib/perl5/site_perl/i386-linux/auto/Apache/include/os/unix
-I/include -I/usr/local/apache/include -Dbool=char -DHAS_BOOL
-I/usr/local/include -O2-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\"
-fpic -I/usr/lib/perl5/i386-linux/CORE  DummyScoreboard.c
In file included from DummyScoreboard.xs:2:
/usr/lib/perl5/site_perl/i386-linux/auto/Apache/include/include/scoreboard.h:150:
field `start_time' has incomplete type
/usr/lib/perl5/site_perl/i386-linux/auto/Apache/include/include/scoreboard.h:151:
field `stop_time' has incomplete type
make[1]: *** [DummyScoreboard.o] Error 1
make[1]: Leaving directory `/usr/src/Apache-Scoreboard-0.10/Dummy'
make: *** [subdirs] Error 2


Note in particular the "Please specify prototyping behavior for
DummyScoreboard.xs" and the "incomplete type" warnings. Does anyone know
what this problem is, or even know where I should start looking? Thanks
in advance.

--R
-- 
===
|  Rusty Foster   | "You can never entirely stop being what   |
|   [EMAIL PROTECTED]| you once were. That's why it's important  |
|[EMAIL PROTECTED]  | to be the right person today, and not put |
| http://www.kuro5hin.org | it off till tomorrow."-Larry Wall |
===



Re: Another problem compiling Apache-Scoreboard-0.08

2000-03-29 Thread Stas Bekman

On Tue, 21 Mar 2000, Charles Day wrote:

 Stas,
 
 Trying to get Apache::VMonitor up, I'm getting the same error Gustav saw
 with Apache::Scoreboard, but I'm running your gcc and Linux 2.2.12.  Did you
 ever figure this one out?

Get the latest Apache::Scoreboard 0.10

 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
 gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 
 
 
 Here's my error message...
 
 [root@razor Apache-Scoreboard-0.10]# make
 mkdir blib
 mkdir blib/lib
 mkdir blib/lib/Apache
 mkdir blib/arch
 mkdir blib/arch/auto
 mkdir blib/arch/auto/Apache
 mkdir blib/arch/auto/Apache/Scoreboard
 mkdir blib/lib/auto
 mkdir blib/lib/auto/Apache
 mkdir blib/lib/auto/Apache/Scoreboard
 mkdir blib/man3
 cp lib/Apache/ScoreboardGraph.pm blib/lib/Apache/ScoreboardGraph.pm
 cp Scoreboard.pm blib/lib/Apache/Scoreboard.pm
 make[1]: Entering directory `/usr/src/Apache-Scoreboard-0.10/Dummy'
 mkdir ../blib/arch/auto/Apache/DummyScoreboard
 mkdir ../blib/lib/auto/Apache/DummyScoreboard
 cp DummyScoreboard.pm ../blib/lib/Apache/DummyScoreboard.pm
 /usr/bin/perl -I/usr/lib/perl5/5.00503/i586-linux -I/usr/lib/perl5/5.00503
 /usr/lib/perl5/5.00503/ExtUtils/xsubpp  -typemap
 /usr/lib/perl5/5.00503/ExtUtils/typemap -typemap
 /usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/typemap -typemap
 typemap DummyScoreboard.xs xstmp.c  mv xstmp.c DummyScoreboard.c
 Please specify prototyping behavior for DummyScoreboard.xs (see perlxs
 manual)
 cc -c -I../ -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include
 -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/modules/perl
 -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/include
 -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/os/unix
 -Dbool=char -DHAS_BOOL -O2-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fpic
 -I/usr/lib/perl5/5.00503/i586-linux/CORE  DummyScoreboard.c
 In file included from DummyScoreboard.xs:2:
 /usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/include/scoreb
 oard.h:149: field `start_time' has incomplete type
 /usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/include/scoreb
 oard.h:150: field `stop_time' has incomplete type
 make[1]: *** [DummyScoreboard.o] Error 1
 make[1]: Leaving directory `/usr/src/Apache-Scoreboard-0.10/Dummy'
 make: *** [subdirs] Error 2
 
 
 List: apache-modperl
 Subject: Re: Another problem compiling Apache-Scoreboard-0.08 
 From: Stas Bekman 
 Date: 2000-01-23 12:26:28
 On Sun, 23 Jan 2000, Gustav Kristoffer Ek wrote: 
  I got the folowing error when compiling Apache::Scoreboard 0.08: 
  
  make 
  make[1]: Entering directory 
  `/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy' 
  cc -c -I../ 
  -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include 
 
 -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/modules/perl
 
  -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include 
  -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/regex 
  -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/os/unix 
  -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -DVERSION=\"0.04\" 
  -DXS_VERSION=\"0.04\" -fpic -I/usr/lib/perl5/5.00503/i686-linux/CORE 
  DummyScoreboard.c 
  In file included from DummyScoreboard.xs:2: 
 
 /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreb
 oard.h:150: 
  field `start_time' has incomplete type 
 
 /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreb
 oard.h:151: 
  field `stop_time' has incomplete type 
  make[1]: *** [DummyScoreboard.o] Error 1 
  make[1]: Leaving directory 
  `/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy' 
  make: *** [subdirs] Error 2 
  
  
  Line 150 and 151 in scoreboard.h looks like: 
  
  struct timeval start_time; 
  struct timeval stop_time; 
  
  I'm using modperl 1.21_01-dev and perl 5.00503 on a i386 running linux 
  2.3.20. Gustav, I can build this version with no problems using the same
 environment, but kernel 2.2.12. I thought that may be the
 /usr/src/linux/include/linux/time.h has been changed, but according to
 http://lxr.linux.no/diff/include/linux/time.h?v=2.3.28;diffvar=v;diffval=2.
 2.12
  it's the same. So I believe the difference you and me might have is in
 compiler version. Mine is: (cc == gcc) gcc version egcs-2.91.66
 19990314/Linux (egcs-1.1.2 release) Hope this helps... 
 ___ 
 Stas Bekman mailto:[EMAIL PROTECTED] http://www.stason.org/stas
 Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC 
 perl.apache.org modperl.sourcegarden.org perlmonth.com perl.org 
 single o- + single o-+ = singlesheaven http://www.singlesheaven.com [
 
 
 



__
Stas Bekman | JAm_pH--Just Another mod_perl Hacker
http://stason.org/  | mod

Another problem compiling Apache-Scoreboard-0.08

2000-01-23 Thread Gustav Kristoffer Ek

I got the folowing error when compiling Apache::Scoreboard 0.08:

make
make[1]: Entering directory
`/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy'
cc -c -I../
-I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include
-I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/modules/perl
-I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include
-I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/regex
-I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/os/unix
-Dbool=char -DHAS_BOOL -I/usr/local/include -O2-DVERSION=\"0.04\"
-DXS_VERSION=\"0.04\" -fpic -I/usr/lib/perl5/5.00503/i686-linux/CORE
DummyScoreboard.c
In file included from DummyScoreboard.xs:2:
/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreboard.h:150:
field `start_time' has incomplete type
/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreboard.h:151:
field `stop_time' has incomplete type
make[1]: *** [DummyScoreboard.o] Error 1
make[1]: Leaving directory
`/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy'
make: *** [subdirs] Error 2


Line 150 and 151 in scoreboard.h looks like:

struct timeval start_time;
struct timeval stop_time;

I'm using modperl 1.21_01-dev and perl 5.00503 on a i386 running linux
2.3.20.

- gustav


Gustav Kristoffer Ek, Netcetera, Brolæggerstræde 4, 1211 København K
Telefon +45 33 14 70 00 / +45 20 40 00 05 - Faximile +45 33 14 62 00
Webdesign, Webhotel, Mailhotel, UUCP  mere http://www.netcetera.dk/



Re: Another problem compiling Apache-Scoreboard-0.08

2000-01-23 Thread Gustav Kristoffer Ek

On Sun, 23 Jan 2000, Stas Bekman wrote:

[...]
 Gustav, I can build this version with no problems using the same
 environment, but kernel 2.2.12. I thought that may be the
 /usr/src/linux/include/linux/time.h has been changed, but according to
 http://lxr.linux.no/diff/include/linux/time.h?v=2.3.28;diffvar=v;diffval=2.2.12
 it's the same.
 
 So I believe the difference you and me might have is in compiler version. 
 Mine is: (cc == gcc)  gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2
 release) 

Hmm... my gcc version is also egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release), any other hints?

:)

- gustav


Gustav Kristoffer Ek, Netcetera, Brolæggerstræde 4, 1211 København K
Telefon +45 33 14 70 00 / +45 20 40 00 05 - Faximile +45 33 14 62 00
Webdesign, Webhotel, Mailhotel, UUCP  mere http://www.netcetera.dk/




Re: broken USE_APXS (was Re: Apache::Scoreboard - problem compiling)

1999-12-21 Thread Doug MacEachern

 Anyone using USE_APXS has any ideas of why USE_APXS makes the installation
 incomplete? 

fixed now in cvs.



Re: Apache::Scoreboard - problem compiling

1999-12-20 Thread G.W. Haywood

Hi there,

On Sun, 19 Dec 1999, Dmitry Beransky wrote:

 I'll try compiling within Apache's source tree tomorrow.

When I did that it caused `make test' to fail.  I had Apache in
/usr/local/apache and mod_perl in /usr/local/apache/mod_perl.

Linux 2.0.34 on PentiumII PC, Perl 5.005_03, libc5, static.

After a month I gave up and did a completely clean reinstall of
everything, including the operating system, on a new machine.  I put
mod_perl at the same level as Apache, with soft links (which seems to
be the Slackware Linux culture).

/usr/local/apache   - /usr/local/apache_1.3.9
/usr/local/mod_perl - /usr/local/mod_perl-1.21

It worked first time.  Gr.

A couple of people later said they saw no reason for using soft links
in the way that I did, and [EMAIL PROTECTED] said he'd had problems
until he used hard links.  I'm still running with the above setup and
I've seen no problems.

Hope this helps.  If you succeed, please let me know.

73
Ged.



Re: Apache::Scoreboard - problem compiling

1999-12-20 Thread Stas Bekman

On Sun, 19 Dec 1999, Dmitry Beransky wrote:

  I didn't try USE_APXS for a long time, may be it's broken. Someone who
  uses USE_APXS can confirm that? 
 
 If it helps, here's a transcript of 'make install.'  I'll try compiling
 within Apache's source tree tomorrow.

Yes, it shows that the installation if far from complete. Your
auto/Apache/ tree is almost empty when it should include 'typemap' and
include/ directory

What happens when you build mod_perl as static? What do you see it:
/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache


 
 Thanks
 Dmitry
 
 [dmitry@bio-york ~/mod_perl-1.21]# make install
 (cd ./apaci  make)
 make[1]: Entering directory `/root/mod_perl-1.21/apaci'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/root/mod_perl-1.21/apaci'
 make[1]: Entering directory `/root/mod_perl-1.21/Apache'
 make[1]: Leaving directory `/root/mod_perl-1.21/Apache'
 make[1]: Entering directory `/root/mod_perl-1.21/Connection'
 make[1]: Leaving directory `/root/mod_perl-1.21/Connection'
 make[1]: Entering directory `/root/mod_perl-1.21/Constants'
 make[1]: Leaving directory `/root/mod_perl-1.21/Constants'
 make[1]: Entering directory `/root/mod_perl-1.21/File'
 make[1]: Leaving directory `/root/mod_perl-1.21/File'
 make[1]: Entering directory `/root/mod_perl-1.21/Leak'
 make[1]: Leaving directory `/root/mod_perl-1.21/Leak'
 make[1]: Entering directory `/root/mod_perl-1.21/Log'
 make[1]: Leaving directory `/root/mod_perl-1.21/Log'
 make[1]: Entering directory `/root/mod_perl-1.21/ModuleConfig'
 make[1]: Leaving directory `/root/mod_perl-1.21/ModuleConfig'
 make[1]: Entering directory `/root/mod_perl-1.21/PerlRunXS'
 make[1]: Leaving directory `/root/mod_perl-1.21/PerlRunXS'
 make[1]: Entering directory `/root/mod_perl-1.21/Server'
 make[1]: Leaving directory `/root/mod_perl-1.21/Server'
 make[1]: Entering directory `/root/mod_perl-1.21/Symbol'
 make[1]: Leaving directory `/root/mod_perl-1.21/Symbol'
 make[1]: Entering directory `/root/mod_perl-1.21/Table'
 make[1]: Leaving directory `/root/mod_perl-1.21/Table'
 make[1]: Entering directory `/root/mod_perl-1.21/URI'
 make[1]: Leaving directory `/root/mod_perl-1.21/URI'
 make[1]: Entering directory `/root/mod_perl-1.21/Util'
 make[1]: Leaving directory `/root/mod_perl-1.21/Util'
 Skipping
 /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/Leak/Leak.so
 (unchanged)
 Skipping
 /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/Leak/Leak.bs
 (unchanged)
 Skipping
 /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/Symbol/Symbol.so
 (unchanged)
 Skipping
 /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/Symbol/Symbol.bs
 (unchanged)
 Files found in blib/arch -- Installing files in blib/lib into
 architecture dependend library tree!
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pod
 (unchanged)
 Skipping
 /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Constants/Exports.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/SIG.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/StatINC.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Opcode.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/PerlSections.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/test.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/FakeRequest.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/ExtUtils.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Status.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Include.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Debug.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Resource.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/src.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/PerlRun.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/httpd_conf.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Options.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/RegistryNG.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Symdump.pm
 (unchanged)
 Skipping
 /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/RegistryLoader.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Registry.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/SizeLimit.pm
 (unchanged)
 Skipping
 /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/RedirectLogFix.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/MyConfig.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/RegistryBB.pm
 (unchanged)
 Skipping /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Connection.pm
 (unchanged)
 Skipping 

Re: Apache::Scoreboard - problem compiling

1999-12-20 Thread Dmitry Beransky

At 11:29 PM 12/19/99 , Stas Bekman wrote:
What happens when you build mod_perl as static? What do you see it:
/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache

Yep.  Compiling mod_perl as static did the trick.  I guess, USE_APXS 
doesn't install all the files.

Thank you for your help
Dmitry



Re: Apache::Scoreboard - problem compiling

1999-12-18 Thread Stas Bekman

 I'm not strong in XS, so I hope someone will land me a helping hand 
 figuring this out :)
 
 Here's an error I get compiling Apache::Scoreboard (0.08):
 
 /usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 
 /usr/lib/perl5/5.00503/ExtUtils/xsubpp  -typemap 
 /usr/lib/perl5/5.00503/ExtUtils/typemap -typemap typemap 
 DummyScoreboard.xs xstmp.c  mv xstmp.c DummyScoreboard.c
 Error: 'Apache' not in typemap in DummyScoreboard.xs, line 121
 Please specify prototyping behavior for DummyScoreboard.xs (see perlxs manual)
 
 Does anyone have any ideas how to go about fixing this?  I strongly suspect 
 the error has to do with the fact that I run RedHat ;)

May be, but your problem lies not in the fact that you run RH, but in fact
that you didn't install mod_perl from scratch, as RH comes with *broken*
mod_perl. 

I use RH6.0/6.1 with perl5.005.03 and freshly compiled mod_perl and the
package gets built for me without any problems.

Now back to the problem: Your installation is missing the whole
/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache tree 
the above command is missing this line:
-typemap
/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/typemap
where the missing typemap is located.

Install mod_perl from scratch and you will get it working without any
problems. (or grab a new rpm from perl.apache.org/distributions.html)

___
Stas Bekmanmailto:[EMAIL PROTECTED]  http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC
perl.apache.orgmodperl.sourcegarden.org   perlmonth.comperl.org
single o- + single o-+ = singlesheavenhttp://www.singlesheaven.com



Apache::Scoreboard - problem compiling

1999-12-17 Thread Dmitry Beransky

Hi folks,

I'm not strong in XS, so I hope someone will land me a helping hand 
figuring this out :)

Here's an error I get compiling Apache::Scoreboard (0.08):

/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 
/usr/lib/perl5/5.00503/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.00503/ExtUtils/typemap -typemap typemap 
DummyScoreboard.xs xstmp.c  mv xstmp.c DummyScoreboard.c
Error: 'Apache' not in typemap in DummyScoreboard.xs, line 121
Please specify prototyping behavior for DummyScoreboard.xs (see perlxs manual)

Does anyone have any ideas how to go about fixing this?  I strongly suspect 
the error has to do with the fact that I run RedHat ;)

Thanks in advance
Dmitry