You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "John E. Mendenhall" <je...@3tiersystems.net> on 2002/10/28 21:44:07 UTC

re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Gurus,

I have compiled mod_perl 1.27 with apache 1.3.27 under perl 5.8.0, solaris
2.6, using gcc 2.7.2.3.  When I run the make test, it fails with the
following in the error_log:

  /usr/local/bin/perl5.8.0 t/TEST 0
  modules/actions.......ok
  modules/cgi...........FAILED test 4
          Failed 1/5 tests, 80.00% okay
  modules/constants.....ok
  modules/cookie........skipped
          all skipped: no reason given
  modules/file..........ok
  modules/httpdconf.....ok
  modules/include.......ok
  modules/log...........ok
  modules/module........skipped
          all skipped: no reason given
  modules/perlrun.......skipped
          all skipped: no reason given
  modules/psections.....skipped
          all skipped: no reason given
  modules/request.......FAILED tests 1-10
          Failed 10/10 tests, 0.00% okay
  modules/src...........ok
  modules/stage.........skipped
          all skipped: no reason given
  modules/status........fetch /perl/perl-status failed!
  modules/status........dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 1-7
          Failed 7/7 tests, 0.00% okay
  modules/symbol........skipped
          all skipped: no reason given
  modules/uri...........skipped
          all skipped: no reason given
  modules/util..........skipped
          all skipped: no reason given
  internal/...

The remainder of the tests fail for the most part because the apache
server dies somewhere around the modules/request tests, most likely
before.

The logs/error_log shows:

  [notice] Destruction->DESTROY called for $global_object
  Subroutine fileparse_set_fstype redefined at
   /usr/local/lib/perl5/5.8.0/File/Basename.pm line 154.
  Subroutine fileparse redefined at
   /usr/local/lib/perl5/5.8.0/File/Basename.pm line 168.
  Subroutine basename redefined at
   /usr/local/lib/perl5/5.8.0/File/Basename.pm line 235.
  Subroutine dirname redefined at
   /usr/local/lib/perl5/5.8.0/File/Basename.pm line 248.
  Constant subroutine CGI::XHTML_DTD redefined at
   /usr/local/lib/perl5/5.8.0/constant.pm line 108.
  [Mon Oct 28 12:29:58 2002] [warn] [notice] child_init for process 19757,
   report any problems to [no address given]

When I attempt to run the single test modules/request, I get the following
output:

% ./TEST -v modules/request
modules/request....module Apache::Request is installed
1..10
not ok 1
HTTP/1.1 200 OK
Connection: close
Date: Mon, 28 Oct 2002 20:32:25 GMT
Server: Apache/1.3.27 (Unix) mod_perl/1.27 Perl/v5.8.0 mod_layout/3.2
Content-Type: text/plain
Client-Date: Mon, 28 Oct 2002 20:32:25 GMT
Client-Peer: 127.0.0.1:8529

1..0
Test header seen more than once!
/usr/local/lib/perl5/site_perl/Apache/Request.pm

not ok 2
HTTP/1.1 200 OK
Connection: close
Date: Mon, 28 Oct 2002 20:32:25 GMT
Server: Apache/1.3.27 (Unix) mod_perl/1.27 Perl/v5.8.0 mod_layout/3.2
Content-Type: text/plain
Client-Date: Mon, 28 Oct 2002 20:32:25 GMT
Client-Peer: 127.0.0.1:8529

1..0
Test header seen more than once!
/usr/local/lib/perl5/site_perl/Apache/Request.pm

not ok 3
/usr/local/lib/perl5/5.8.0/pod/perlfunc.pod should have 6496 lines
(request-upload.pl says: )
not ok 4
not ok 5
/usr/local/lib/perl5/5.8.0/pod/perlpod.pod should have 685 lines
(request-upload.pl says: )
not ok 6
not ok 7
/usr/local/lib/perl5/5.8.0/pod/perlxs.pod should have 1980 lines
(request-upload.pl says: )
not ok 8
not ok 9
/usr/local/src/mod_perl/mod_perl-1.27/t/docs/book.gif should have 113
lines (request-upload.pl says: )
not ok 10

When I try to run all the tests that went before that, all running them as
single tests, none of them cause the server to die.  The modules/cgi test
causes a single on error #4 for that test.  The output is:

ServerError: Insecure dependency in sysopen while running with -T switch
at (eval 197) line 8.

error-notes is also set
dump of %@:
/perl/cgi.pl = Insecure dependency in sysopen while running with -T switch
at (eval 197) line 8.

The output in the logs/error_log is:

[Mon Oct 28 12:37:52 2002] [error] Insecure dependency in sysopen while
running with -T switch at (eval 197) line 8.

Background:

I have used mod_perl up through versions 1.15, using perl 5.004_04, and
earlier versions of Apache.  I am trying to upgrade to the latest stable
releases of everything and it just does not seem to be working.  I have
checked the list archives as well as google and anywhere else I could
think of and could not find why it is not working.  Any help is
appreciated.  Please let me know if you need any additional information.

Thank you very much.

JohnM

## John Mendenhall
## jem@electriciti.com
## Senior Network/Systems Administrator



re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Posted by "John E. Mendenhall" <je...@3tiersystems.net>.
Ged,

> Did you build your Perl 5.8.0?

Yes.

I will be trying to use our original perl (5.004_04), downgrading some of
the required perl modules we use to see if that works any better.



re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Posted by "John E. Mendenhall" <je...@3tiersystems.net>.
Ged,

> What were the problems with 5.6.1?  Have you got a spare machine/disc
> pack that you can use to do a completely fresh installation?

No other machine available immediately.  5.6.1 got us up and running, but
it crashed as soon as we made a request to the server.  No one could help
me here, and the upgrade was placed on the back burner.

JohnM

## John Mendenhall
## jem@3tiersystems.net
## Senior Network/Systems Administrator


re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Mon, 28 Oct 2002, John E. Mendenhall wrote:

> We built our own Perl 5.8.0, as well as Perl 5.6.1.  We had different
> problems with 5.6.1. [snip]
> 
> Any other suggestions?

What were the problems with 5.6.1?  Have you got a spare machine/disc
pack that you can use to do a completely fresh installation?

73,
Ged.

(

> If it ain't broke, don't fix it.  

Quite right.

:)


re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Posted by "John E. Mendenhall" <je...@3tiersystems.net>.
> > I have compiled mod_perl 1.27 with apache 1.3.27 under perl 5.8.0,
> > solaris 2.6, using gcc 2.7.2.3.  When I run the make test, it fails
>
> Did you build your Perl 5.8.0?  I ask because the general advice is
> that the same compiler must build both Perl and mod_perl.  Some people
> seem to have had troubles with 5.8.0, although not necessarily
> associated with Solaris.  I wouldn't do it right now (in case someone
> else comes up with an easier suggestion:) but if you did build your
> own Perl then it might be worth compiling 5.6.1 (or even 5.7.3 - I've
> had no troubles with 5.7.2 but then I'm not usually on Solaris...) to
> see if that's any better.

We built our own Perl 5.8.0, as well as Perl 5.6.1.  We had different
problems with 5.6.1.

> That was a BIG jump from 1.15 to 1.27 and 5.004 to 5.8 !!!
> My advice would be to try to take smaller steps in future.

We follow the adage of:  If it ain't broke, don't fix it.  We finally had
a couple of free hours and decided to upgrade, to get all the security
issues fixed, etc.  However, seems we keep running into problems.

Thanks for the insights.  Any other suggestions?

JohnM

## John Mendenhall
## jem@3tiersystems.net
## Senior Network/Systems Administrator



re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Mon, 28 Oct 2002, John E. Mendenhall wrote:

> I have compiled mod_perl 1.27 with apache 1.3.27 under perl 5.8.0,
> solaris 2.6, using gcc 2.7.2.3.  When I run the make test, it fails

Did you build your Perl 5.8.0?  I ask because the general advice is
that the same compiler must build both Perl and mod_perl.  Some people
seem to have had troubles with 5.8.0, although not necessarily
associated with Solaris.  I wouldn't do it right now (in case someone
else comes up with an easier suggestion:) but if you did build your
own Perl then it might be worth compiling 5.6.1 (or even 5.7.3 - I've
had no troubles with 5.7.2 but then I'm not usually on Solaris...) to
see if that's any better.

> I have used mod_perl up through versions 1.15, using perl 5.004_04, and

That was a BIG jump from 1.15 to 1.27 and 5.004 to 5.8 !!!
My advice would be to try to take smaller steps in future.

73,
Ged.


re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Posted by "John E. Mendenhall" <je...@3tiersystems.net>.
Jie,

> Do you have multiple versions of perl installed?

Yes.

> Try a clean installation of perl and use the same
> compiler and same flags in building everything.

We will be attempting to not upgrade perl, but rather, use our older perl
5.004_04 that was working before, and just upgrade the apache and minimal
other modules, plus mod_perl to see if that will work.  I am starting to
hear a consensus that we had too many variables changing.

Of course, if this doesn't work, we'll have to try a clean installation.

JohnM

## John Mendenhall
## jem@3tiersystems.net
## Senior Network/Systems Administrator


re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

Posted by Jie Gao <J....@isu.usyd.edu.au>.
Do you have multiple versions of perl installed?

Try a clean installation of perl and use the same
compiler and same flags in building everything.

Regards,



Jie

On Mon, 28 Oct 2002, John E. Mendenhall wrote:

> Date: Mon, 28 Oct 2002 12:44:07 -0800 (PST)
> From: John E. Mendenhall <je...@3tiersystems.net>
> To: modperl@perl.apache.org
> Subject: re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails
>
> Gurus,
>
> I have compiled mod_perl 1.27 with apache 1.3.27 under perl 5.8.0, solaris
> 2.6, using gcc 2.7.2.3.  When I run the make test, it fails with the
> following in the error_log:
>
>   /usr/local/bin/perl5.8.0 t/TEST 0
>   modules/actions.......ok
>   modules/cgi...........FAILED test 4
>           Failed 1/5 tests, 80.00% okay
>   modules/constants.....ok
>   modules/cookie........skipped
>           all skipped: no reason given
>   modules/file..........ok
>   modules/httpdconf.....ok
>   modules/include.......ok
>   modules/log...........ok
>   modules/module........skipped
>           all skipped: no reason given
>   modules/perlrun.......skipped
>           all skipped: no reason given
>   modules/psections.....skipped
>           all skipped: no reason given
>   modules/request.......FAILED tests 1-10
>           Failed 10/10 tests, 0.00% okay
>   modules/src...........ok
>   modules/stage.........skipped
>           all skipped: no reason given
>   modules/status........fetch /perl/perl-status failed!
>   modules/status........dubious
>           Test returned status 255 (wstat 65280, 0xff00)
>   DIED. FAILED tests 1-7
>           Failed 7/7 tests, 0.00% okay
>   modules/symbol........skipped
>           all skipped: no reason given
>   modules/uri...........skipped
>           all skipped: no reason given
>   modules/util..........skipped
>           all skipped: no reason given
>   internal/...
>
> The remainder of the tests fail for the most part because the apache
> server dies somewhere around the modules/request tests, most likely
> before.
>
> The logs/error_log shows:
>
>   [notice] Destruction->DESTROY called for $global_object
>   Subroutine fileparse_set_fstype redefined at
>    /usr/local/lib/perl5/5.8.0/File/Basename.pm line 154.
>   Subroutine fileparse redefined at
>    /usr/local/lib/perl5/5.8.0/File/Basename.pm line 168.
>   Subroutine basename redefined at
>    /usr/local/lib/perl5/5.8.0/File/Basename.pm line 235.
>   Subroutine dirname redefined at
>    /usr/local/lib/perl5/5.8.0/File/Basename.pm line 248.
>   Constant subroutine CGI::XHTML_DTD redefined at
>    /usr/local/lib/perl5/5.8.0/constant.pm line 108.
>   [Mon Oct 28 12:29:58 2002] [warn] [notice] child_init for process 19757,
>    report any problems to [no address given]
>
> When I attempt to run the single test modules/request, I get the following
> output:
>
> % ./TEST -v modules/request
> modules/request....module Apache::Request is installed
> 1..10
> not ok 1
> HTTP/1.1 200 OK
> Connection: close
> Date: Mon, 28 Oct 2002 20:32:25 GMT
> Server: Apache/1.3.27 (Unix) mod_perl/1.27 Perl/v5.8.0 mod_layout/3.2
> Content-Type: text/plain
> Client-Date: Mon, 28 Oct 2002 20:32:25 GMT
> Client-Peer: 127.0.0.1:8529
>
> 1..0
> Test header seen more than once!
> /usr/local/lib/perl5/site_perl/Apache/Request.pm
>
> not ok 2
> HTTP/1.1 200 OK
> Connection: close
> Date: Mon, 28 Oct 2002 20:32:25 GMT
> Server: Apache/1.3.27 (Unix) mod_perl/1.27 Perl/v5.8.0 mod_layout/3.2
> Content-Type: text/plain
> Client-Date: Mon, 28 Oct 2002 20:32:25 GMT
> Client-Peer: 127.0.0.1:8529
>
> 1..0
> Test header seen more than once!
> /usr/local/lib/perl5/site_perl/Apache/Request.pm
>
> not ok 3
> /usr/local/lib/perl5/5.8.0/pod/perlfunc.pod should have 6496 lines
> (request-upload.pl says: )
> not ok 4
> not ok 5
> /usr/local/lib/perl5/5.8.0/pod/perlpod.pod should have 685 lines
> (request-upload.pl says: )
> not ok 6
> not ok 7
> /usr/local/lib/perl5/5.8.0/pod/perlxs.pod should have 1980 lines
> (request-upload.pl says: )
> not ok 8
> not ok 9
> /usr/local/src/mod_perl/mod_perl-1.27/t/docs/book.gif should have 113
> lines (request-upload.pl says: )
> not ok 10
>
> When I try to run all the tests that went before that, all running them as
> single tests, none of them cause the server to die.  The modules/cgi test
> causes a single on error #4 for that test.  The output is:
>
> ServerError: Insecure dependency in sysopen while running with -T switch
> at (eval 197) line 8.
>
> error-notes is also set
> dump of %@:
> /perl/cgi.pl = Insecure dependency in sysopen while running with -T switch
> at (eval 197) line 8.
>
> The output in the logs/error_log is:
>
> [Mon Oct 28 12:37:52 2002] [error] Insecure dependency in sysopen while
> running with -T switch at (eval 197) line 8.
>
> Background:
>
> I have used mod_perl up through versions 1.15, using perl 5.004_04, and
> earlier versions of Apache.  I am trying to upgrade to the latest stable
> releases of everything and it just does not seem to be working.  I have
> checked the list archives as well as google and anywhere else I could
> think of and could not find why it is not working.  Any help is
> appreciated.  Please let me know if you need any additional information.
>
> Thank you very much.
>
> JohnM
>
> ## John Mendenhall
> ## jem@electriciti.com
> ## Senior Network/Systems Administrator
>
>
>