Re: [Mason] Can't locate object method new viapackage Apache::Request

2003-08-25 Thread K Old
On Mon, 2003-08-25 at 13:13, Stas Bekman wrote:
 K Old wrote:
  On Mon, 2003-08-25 at 00:18, Randy Kobes wrote:
  
 On Sun, 24 Aug 2003, K Old wrote:
 
 
 Hello everyone,
 
 I've put HTML::Mason on a few servers now and have had problems with
 Apache::Request and Apache::Test on two of them.  My most recent is
 having the problem and I'm about to go crazy if I don't figure out why
 installs keep having problems.
 
 Here's my setup:  RH 7.2, Apache 1.3.27, mod_perl 1.26, Perl 5.6.1 - all
 installed from RPM's.
 
 I did a install HTML::Mason from the CPAN command line and all the
 dependencies were downloaded and some didn't compile.  The two that
 didn't are Apache::Test-1.03 and libapreq-1.2.
 
 [ .. ]
 Regarding the failure of the tests in these two packages,
 what happens if you unpack, build, and test these as
 a non-root user, only becoming root to install them?
 There's some subtelties running the tests as root.
  
  
  Randy,
  
  Ok, yes, this worked...to a point!  I pulled down fresh copies of the
  modules from CPAN, unpacked, build and tested with another user.  All
  tests were successful with Apache::Test with the normal user, but I had
  to go to root for the tests for libapreq1.2 as my webserver needed the
  root user to start FrontPage services.  Doing the make test for
  libapreq-1.2 all test fail and I get this in the t/logs/error_log:
  
  [Mon Aug 25 08:49:12 2003] [error] Can't load
  '/home/admin/libapreq-1.2/blib/arch/auto/Apache/Cookie/Cookie.so' for
  module Apache::Cookie: libapreq.so.1: cannot open shared object file: No
  such file or directory at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm
  line 206.
   at /usr/lib/perl5/site_perl/5.6.1/i386-linux/mod_perl.pm line 14
  Compilation failed in require at
  /home/admin/libapreq-1.2/t/response/TestApReq/big_input.pm line 9.
  BEGIN failed--compilation aborted at
  /home/admin/libapreq-1.2/t/response/TestApReq/big_input.pm line 9.
  Compilation failed in require at (eval 4) line 3.
 
 That's a known linking problem. It has been fixed in the cvs, get the cvs 
 instructions from http://httpd.apache.org/apreq/.
 
 Joe, may be a new 1.x version should be released?

Stas,

I've downloaded the CVS, unpacked, built and tested with a not root
user, and still received the same errors as before.

Here's the syntax I'm using for build, etc:

(CVS version)
perl Makefile.PL
make
make test

(Module from CPAN)
perl Makefile.PL
make
make test

then

./configure --with-apache-includes=/usr/include/apache
make
make install
perl Makefile.PL
make
make test

Is there anything I'm not doing right?

I've tried to disable the FrontPage stuff so that the non root user
should be able to start apache without the errors, but either by root or
non root user I get the same error messages regarding Cookie.so and so
forth.

Any ideas?

Thanks,
Kevin
-- 
K Old [EMAIL PROTECTED]



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Re: Trouble with Apache::Request

2003-06-06 Thread K Old
On Fri, 2003-06-06 at 20:07, Stas Bekman wrote:
 [ CC'ing the apreq-dev list. In the future please post apreq build problems 
 questions to the apreq-dev list: http://httpd.apache.org/apreq/ ]
 
 K Old, please try the httpd-apreq cvs version:
 
 I just did:
 
 % cd httpd-apreq
 % perl-5.8.0-ithread Makefile.PL -httpd /home/httpd/httpd_perl/bin/httpd  
 make test
 ...
 All tests successful.
 
 This version will be soon released on CPAN, it wasn't released yet due to some 
 polishing of Apache::Test that is now used by Apache::Request for its test suite.
 

Stas, thanks for your reply.  I downloaded the CVS source and it still
failed all tests.  Below is the output from make test and the output
from perl -V.  Any help is appreciated!

Output from 'make test'

/usr/bin/perl5.8.0 -Iblib/arch -Iblib/lib \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \
/usr/bin/perl5.8.0 -Iblib/arch -Iblib/lib \
t/TEST -verbose=0 
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -verbose=0
/usr/local/apache/bin/httpd -X -d /home/kold/tmp/httpd-apreq/t -f
/home/kold/tmp/httpd-apreq/t/conf/httpd.conf -DAPACHE1
-DPERL_USEITHREADS
using Apache/1.3.27 

waiting for server to start: .
waiting for server to start: ok (waited 0 secs)
server localhost.localdomain:8529 started
apreq/big_inputNOK 1# Failed test 1 in apreq/big_input.t at line
40  
apreq/big_inputNOK 2# Failed test 2 in apreq/big_input.t at line 40
fail #2
apreq/big_inputNOK 3# Failed test 3 in apreq/big_input.t at line 40
fail #3
apreq/big_inputNOK 4# Failed test 4 in apreq/big_input.t at line 40
fail #4
apreq/big_inputNOK 5# Failed test 5 in apreq/big_input.t at line 40
fail #5
apreq/big_inputNOK 6# Failed test 6 in apreq/big_input.t at line 40
fail #6
apreq/big_inputNOK 7# Failed test 7 in apreq/big_input.t at line 40
fail #7
apreq/big_inputNOK 8# Failed test 8 in apreq/big_input.t at line 40
fail #8
apreq/big_inputNOK 9# Failed test 9 in apreq/big_input.t at line 40
fail #9
apreq/big_inputNOK 10# Failed test 10 in apreq/big_input.t at line
63
apreq/big_inputNOK 11# Failed test 11 in apreq/big_input.t at line
63 fail #2
apreq/big_inputNOK 12# Failed test 12 in apreq/big_input.t at line
63 fail #3
apreq/big_inputNOK 13# Failed test 13 in apreq/big_input.t at line
63 fail #4
apreq/big_inputNOK 14# Failed test 14 in apreq/big_input.t at line
63 fail #5
apreq/big_inputNOK 15# Failed test 15 in apreq/big_input.t at line
63 fail #6
apreq/big_inputNOK 16# Failed test 16 in apreq/big_input.t at line
63 fail #7
apreq/big_inputNOK 17# Failed test 17 in apreq/big_input.t at line
63 fail #8
apreq/big_inputNOK 18# Failed test 18 in apreq/big_input.t at line
63 fail #9
apreq/big_inputNOK 19# Failed test 19 in apreq/big_input.t at line
63 fail #10
apreq/big_inputNOK 20# Failed test 20 in apreq/big_input.t at line
63 fail #11
apreq/big_inputNOK 21# Failed test 21 in apreq/big_input.t at line
63 fail #12
apreq/big_inputFAILED tests
1-21 
Failed 21/21 tests, 0.00% okay
apreq/cookie...NOK 1# Failed test 1 in apreq/cookie.t at line
20 
apreq/cookie...FAILED test
1 
Failed 1/1 tests, 0.00% okay
apreq/inherit..NOK 1# Failed test 1 in apreq/inherit.t at line
11
apreq/inherit..FAILED test
1 
Failed 1/1 tests, 0.00% okay
apreq/request..NOK 1# Failed test 1 in apreq/request.t at line
18
apreq/request..NOK 2# Failed test 2 in apreq/request.t at line 26
apreq/request..FAILED tests
1-2  
Failed 2/2 tests, 0.00% okay
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
---
apreq/big_input.t   21   21 100.00%  1-21
apreq/cookie.t   11 100.00%  1
apreq/inherit.t  11 100.00%  1
apreq/request.t  22 100.00%  1-2
*** server localhost.localdomain:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1


Here's my output from perl -V:

[EMAIL PROTECTED] httpd-apreq]$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.4.19-2mdkenterprise,
archname=i386-linux-thread-multiuname='linux no.mandrakesoft.com
2.4.19-2mdkenterprise #1 smp tue aug 13 00:17:42 cest 2002 i686 unknown
unknown gnulinux '
config_args='-des -Darchname=i386-linux -Dcc=gcc -Doptimize=-O3
-fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math
-fno-strength-reduce -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr
-Dman3ext=3pm -Dcf_by=MandrakeSoft -Dmyhostname=localhost
[EMAIL PROTECTED] -Dd_dosuid