Re: Apache::Util::parsedate make test error

2002-11-11 Thread Andreas Hasenack
Em Tue, Nov 12, 2002 at 12:13:32AM +0800, Stas Bekman escreveu:
> ># Failed test 13 in 
> 
>>/home/andreas/svn/mod_perl/BUILD/mod_perl-1.99_05/t/response/TestCompat/apache_util.pm
> at line 74
> ># expected: 1
> ># received: 1
> ># expected: 0
> ># received: 0
> 
> Do you still have this problem with the latest apache/mod_perl?

No, it works now:
apache-2.0.43
mod_perl-1.99_07
perl-5.6.1

(...)
# testing : Apache::Util::parsedate
# expected: 1037032588
# received: '1037032588'
ok 13
# expected: 1
# received: 1
# expected: 0
# received: 0
ok
All tests successful.
(...)
 
Thanks for reminding me about this one, I was skipping make test since then :)




Apache::Util::parsedate make test error

2002-09-23 Thread Andreas Hasenack

apache-2.0.41-dev (prefork)
mod_perl-1.99_05
perl-5.6.1

I'm getting the following error in Apache::Util::parsedate from the
compat/apache_util.t test suite:

(...)
# testing : Apache::Util::ht_time
# expected: 'Seg, 23 Set 2002 20:37:30 GMT'
# received: 'Seg, 23 Set 2002 20:37:30 GMT'
ok 12
# testing : Apache::Util::parsedate
# expected: 1032813450
# received: '0'
not ok 13
# Failed test 13 in 
/home/andreas/svn/mod_perl/BUILD/mod_perl-1.99_05/t/response/TestCompat/apache_util.pm 
at line 74
# expected: 1
# received: 1
# expected: 0
# received: 0
FAILED test 13
Failed 1/13 tests, 92.31% okay
Failed Test  Status Wstat Total Fail  Failed  List of Failed

compat/apache_util.t  131   7.69%  13
*** server localhost.localdomain:8529 shutdown
!!! error running tests (please examine t/logs/error_log)

Is this a known problem with these versions of mod_perl and apache? Or is there
something wrong with the packages I'm using?

error_log shows only one "[error]" entry:
[Mon Sep 23 17:37:26 2002] [info] Server: Apache/2.0.41-dev, Interface: 
mod_ssl/2.0.41-dev, Library: OpenSSL/0.9.6g
[Mon Sep 23 17:37:26 2002] [notice] Apache/2.0.41-dev (Unix) mod_perl/1.99_05-dev 
Perl/v5.6.1 mod_ssl/2.0.41-dev OpenSSL/0.9.6g DA
V/2 configured -- resuming normal operations
[Mon Sep 23 17:37:26 2002] [info] Server built: Sep 20 2002 01:16:06
[Mon Sep 23 17:37:26 2002] [debug] prefork.c(1039): AcceptMutex: sysvsem (default: 
sysvsem)
[Mon Sep 23 17:37:27 2002] [error] server reached MaxClients setting, consider raising 
the MaxClients setting




Re: Make test error!!

2000-10-05 Thread Ricardo Stella


I think you are missing parameters when creating the make file:

> >   => perl Makefile.PL USE_DSO=1  EVERYTHING=1 PERL_DEBUG=1

Where's the apache src path in the above ???  Are you using the
'flexible' method, or the all in one ?

If you are using the flexible method (with or without DSO support), you
don't run 'make test'.  Since at that point apache is not built yet,
therefore there's no httpd binary to be run for testing.

In any case, read INSTALL.apaci again...

My .02...

"Andrei A. Voropaev" wrote:
> 
> Hi!
> 
> Just to confirm that this is not a single case. I tried the same with
> apache_1.3.12 and it didn't work. Exactly the same error
> messages. Finally I gave up and compiled static version. That works
> without any problem.
> 
> Andrei
> 
> On Fri, Sep 15, 2000 at 10:45:32AM +0200, François Chenais wrote:
> > Hello
> >
> > Using perl 5.6.0
> >   apache_1.3.9
> >
> > I 'm trying to build DSO mod_perl.1.24
> >
> >   => perl Makefile.PL USE_DSO=1  EVERYTHING=1 PERL_DEBUG=1
> >
> > All is ok but "make test" says :
> >
> > 

-- 
--
 Ricardo Stella  O.I.T.
 (609)896-5000 x7436   _suAve_   Rider University
  *** Remove 'no-spam' from e-mail address before replying.  ***

begin:vcard 
adr;dom:;;;Lawrenceville;NJ;08648;
adr:;;2083 Lawreceville Road;Lawrenceville;NJ;08648;
n:Stella;Ricardo
tel;fax:1-609-219-4994
tel;work:1-609-896-5000 x7436
x-mozilla-html:FALSE
url:http://poseidon.rider.edu
org:Rider University;O.I.T.
version:2.1
title:Manager
x-mozilla-cpt:;-9584
fn:Ricardo Stella
end:vcard



Re: Make test error!!

2000-10-05 Thread Andrei A. Voropaev

Hi!

Just to confirm that this is not a single case. I tried the same with
apache_1.3.12 and it didn't work. Exactly the same error
messages. Finally I gave up and compiled static version. That works
without any problem.

Andrei
 
On Fri, Sep 15, 2000 at 10:45:32AM +0200, François Chenais wrote:
> Hello
> 
> Using perl 5.6.0
>   apache_1.3.9
> 
> I 'm trying to build DSO mod_perl.1.24
> 
>   => perl Makefile.PL USE_DSO=1  EVERYTHING=1 PERL_DEBUG=1
> 
> All is ok but "make test" says :
> 
> ---
> ./apache_1.3.9/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
> httpd listening on port 8529
> will write error_log to: t/logs/error_log
> letting apache warm up...\c
> done
> /usr/local/bin/perl t/TEST 0
> still waiting for server to warm up...not ok
> server failed to start! (please examine t/logs/error_log) at t/TEST line
> 95.
> make: *** [run_tests] Error 111
> ---
> 
> 
> t/logs/error_log
> ---
> [notice] END block called for startup.pl
> [notice] Destruction->DESTROY called for $global_object
> [Fri Sep 15 10:34:40 2000] [warn] [notice] child_init for process 10374,
> report
> any problems to [no address given]
> ---
> 
> 
> 
>   Any idea ?
> 
>   François
> -- 
> [EMAIL PROTECTED]
>BULL-CITBtel:(+33) 556 437 848   Home: [EMAIL PROTECTED]
> 207, cours du Médoc fax:(+33) 556 437 978   http://www.citb.bull.net
>  33000 Bordeaux BullCom: 227 7848   ICQ :3886291
> 
> Linux -

-- 



Re: Make test error!!

2000-09-28 Thread Doug MacEachern

On Fri, 15 Sep 2000, [iso-8859-1] François Chenais wrote:

> Hello
> 
> Using perl 5.6.0
>   apache_1.3.9
> 
> I 'm trying to build DSO mod_perl.1.24
> 
>   => perl Makefile.PL USE_DSO=1  EVERYTHING=1 PERL_DEBUG=1
> 
> All is ok but "make test" says :
> 
> ---
> ./apache_1.3.9/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
> httpd listening on port 8529
> will write error_log to: t/logs/error_log
> letting apache warm up...\c
> done
> /usr/local/bin/perl t/TEST 0
> still waiting for server to warm up...not ok
> server failed to start! (please examine t/logs/error_log) at t/TEST line
> 95.
> make: *** [run_tests] Error 111
> ---
> 
> 
> t/logs/error_log
> ---
> [notice] END block called for startup.pl
> [notice] Destruction->DESTROY called for $global_object
> [Fri Sep 15 10:34:40 2000] [warn] [notice] child_init for process 10374,
> report
> any problems to [no address given]
> ---

is the server still running?  check:

% ps -flags | grep httpd
or
% netstat -a | grep 8529
or 
% telnet localhost 8529

if it core dumped, run (in the mod_perl-x.xx directory):

% gdb ../apache-x.xx/src/htttpd
(gdb) thttpd
[if you get a core dump]
(gdb) bt

and post the output of that, along with your 'perl -V' and Makefile.PL
options.




Re: Make test error!!

2000-09-15 Thread G.W. Haywood

Hi there,

On Fri, 15 Sep 2000, [iso-8859-1] François Chenais wrote:

> Using perl 5.6.0
>   apache_1.3.9
> 
> I 'm trying to build DSO mod_perl.1.24

Curious choice of versions.  Why not 1.3.12?

Tried `apachectl configtest'?  Can you get anything from `httpd -l'
What's in the error_log (if anything?)

73,
Ged.




Make test error!!

2000-09-15 Thread François Chenais

Hello

Using perl 5.6.0
  apache_1.3.9

I 'm trying to build DSO mod_perl.1.24

  => perl Makefile.PL USE_DSO=1  EVERYTHING=1 PERL_DEBUG=1

All is ok but "make test" says :

---
./apache_1.3.9/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/usr/local/bin/perl t/TEST 0
still waiting for server to warm up...not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line
95.
make: *** [run_tests] Error 111
---


t/logs/error_log
---
[notice] END block called for startup.pl
[notice] Destruction->DESTROY called for $global_object
[Fri Sep 15 10:34:40 2000] [warn] [notice] child_init for process 10374,
report
any problems to [no address given]
---



Any idea ?

François
-- 
[EMAIL PROTECTED]
   BULL-CITBtel:(+33) 556 437 848   Home: [EMAIL PROTECTED]
207, cours du Médoc fax:(+33) 556 437 978   http://www.citb.bull.net
 33000 Bordeaux BullCom: 227 7848   ICQ :3886291

Linux -



Re: 'make test' error with CVS modperl

2000-08-30 Thread Doug MacEachern

On Tue, 22 Aug 2000, Bruce W. Hoylman wrote:

> 
> Having downloaded the latest CVS snapshot of modperl, using my standard
> APACI config parameters to configure and compile, it compiles to
> completion without error.  'make test' however returns the following
> error when attempting to start the test httpd process:
> 
> letting apache warm up...[Tue Aug 22 10:46:31 2000] [error] Can't load 
>'/opt/gnu/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so' for module IO: ld.so.1: 
>/www/src/apache-1.3_2817161200/src/httpd: fatal: relocation error: file 
>/opt/gnu/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so: symbol main: referenced symbol 
>not found at /opt/gnu/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169.
> 
> I have IO-1.20 installed, and have had it there for a long time.  Here
> are the particulars for perl:

so if you 'make test' with the same Perl and 1.24 you don't have this
problem?  i don't see any changes since that could trigger such a problem.





make test error (followup)

2000-08-23 Thread Christopher Everett

I've been advised to follow up with more compilation and
os/compiler/hardware/etc info ASAP so here it is:

OS:   Linux 2.2.17 (debian)
compiler: gcc 2.95.2
make: Gnu make v. 3.78.1
ldGnu ld 2.9.5

Hardware: Pentium-166, 96 MB RAM

I'm following the instructions from the guide for a mod_perl install
with a lightweight front-end with shared libs & document roots, so
I de-tar mod_perl-1.24 and apache_1.3.12 under /usr/src/httpd_perl/.

I put a modified config.layout into apache_1.3.12 where I modified the 
Redhat layout to suit:

# my layout

prefix:/usr/local
exec_prefix:   $prefix
bindir:$prefix/bin
sbindir:   $prefix/sbin/httpd/perl
libexecdir:$prefix/lib/apache
mandir:$prefix/man
sysconfdir:/etc/httpd
datadir:   /home/httpd
iconsdir:  $datadir/icons
htdocsdir: $datadir/html
cgidir:$datadir/cgi-bin
includedir:$prefix/include/apache
localstatedir: /var/httpd
runtimedir:$localstatedir/run
logfiledir:$localstatedir
proxycachedir: $localstatedir


Then I copy mod_auth_mysql.c to apache_1.3.12/src/modules/extra.

in modperl-1.24 I have a small shell file I wrote, myconfig, which says

#!/bin/sh
EAPI_MM=SYSTEM perl Makefile.PL \
APACHE_SRC=../apache_1.3.12/src \
DO_HTTPD=1 \
EVERYTHING=1 \
PERL_TRACE=1 \
PERL_MARK_WHERE=1 \
USE_APACI=1 \
APACI_ARGS='--with-layout=Everett \
--target=httpd-perl \
--disable-module=userdir \
--disable-module=cgi \
--disable-module=imap \
--disable-module=asis \
--disable-module=autoindex \
--disable-module=dir \
--activate-module=src/modules/extra/mod_auth_mysql.c \
--enable-module=auth_mysql'

then I run myconfig (I was getting tired of typing all that in!),
and then I run make.  myconfig runs with no errors and Apache builds 
with no errors, so then I run make test, and I fail some tests.  Here 
are the lines from the summary:

Failed TestTotal Fail  Failed  List of Failed
-
modules/cgi.t  51  20.00%  5
modules/include42  50.00%  2, 4

It also skips the test on modules/module.

That's my current build as it stands currently.  I started with
everything 
but perl a DSO, and then added EAPI_MM=SYSTEM to match my apache+mod_ssl
build.  Next I'm going to try ading cgi support back in.

Again, I appreciate any help you can give me.

Christopher Everett
a DSO module



make test error (long)

2000-08-23 Thread Christopher Everett

OK,

I know this is a little bit off topic, and I won't resent any flamage 
agreeing with me on that but I can't raise any responses whatsoever in
comp.infosystems.www.servers.unix and [EMAIL PROTECTED] 
is quiet, so I'm bringing my troubles here in the hopes that I can get
at least pointed in the right direction.

I'm declaring myself officially, completely lost.  I'm trying to compile
a new apache+mod_perl+mod_auth_mysql and make test fails 1 test in the
cgi module and 2 tests in the include module.  Well, I turned off 
mod_cgi, and I don't need mod_include here either, so I says to myself
fine, I'll install it anyway.  So when I go to start httpd-perl
I get an error saying:

syntax error on line 28 of /etc/httpd-perl.conf:
API module structure 'env_module' in file 
/usr/local/lib/apache/mod_env.so is garbled - perhaps this is not an
Apache module DSO?
/usr/local/sbin/httpd-perl-ctl start: httpd could not be started.

Aaargh! now I'm dead in the water.  So I pull down fresh sources for
apache, mod perl, and mod_auth_mysql and try it all over again, with 
the same (predictable) results.

The possibilities I see are:

1) my apache+mod_perl shares lib/apache with my front-end 
apache+mod_ssl that I compiled with mm-1.1.3 support, but I 
didn't do that with apache+mod_perl.
2) I changed my ld.so.conf to include /usr/local/lib, 
/usr/local/lib/apache, and /usr/local/lib/mysql, and ran 
ldconfig -v on that, which doesn't make sense since
the apache+mod_ssl works fine and dandy.  Anyway I need 
the /usr/local/lib/mysql at least for mod_auth_mysql to work.
3) I can't share DSO modules between apache+mod_ssl and
apache+mod_perl, mm support or not.

Unfortunately, where I'm at is that I can't parse t/logs/error_log
at all, nor does anything in the test kit jump out at me and say
"OK, now I'm testing this part of the server."

So, I'm trundling off to test possibilities 1 and 3.  In the meantime
if anyone can either tell me I'm completely on the wrong track, or
point towards places, things, or people which would be useful, I'd me
most grateful; this is my development box, and I can't do any 
development until I solve this.

Christopher Everett



'make test' error with CVS modperl

2000-08-22 Thread Bruce W. Hoylman


Having downloaded the latest CVS snapshot of modperl, using my standard
APACI config parameters to configure and compile, it compiles to
completion without error.  'make test' however returns the following
error when attempting to start the test httpd process:

letting apache warm up...[Tue Aug 22 10:46:31 2000] [error] Can't load 
'/opt/gnu/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so' for module IO: ld.so.1: 
/www/src/apache-1.3_2817161200/src/httpd: fatal: relocation error: file 
/opt/gnu/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so: symbol main: referenced symbol 
not found at /opt/gnu/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169.

I have IO-1.20 installed, and have had it there for a long time.  Here
are the particulars for perl:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos savvy 5.6 generic_105181-15 sun4u sparc '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
cppflags='-I/usr/local/include -I/opt/gnu/include'
ccflags ='-I/usr/local/include -I/opt/gnu/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'

Characteristics of this binary (from libperl): 
  Built under solaris
  Compiled at Jan 26 2000 13:27:51
  %ENV:
PERLROOT="/opt/gnu/lib/perl5/5.00503"
PERL_ORACLE_HOME="/db02/orasw/app/oracle/product/8.1.6"
  @INC:
/opt/gnu/lib/perl5/5.00503/sun4-solaris
/opt/gnu/lib/perl5/5.00503
/opt/gnu/lib/perl5/site_perl/5.005/sun4-solaris
/opt/gnu/lib/perl5/site_perl/5.005
.

I have done this process numerous times in the past with no problems at
all.  Now all of a sudden I get the relocation error with IO.  I'm not
sure why.

Any thoughts/suggestions?

Peace.