You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by David McCabe <da...@mcgill.ca> on 2002/07/23 18:37:05 UTC

Mod Perl build problem with perl 5.8.0

I am having a problem building mod_perl with the new perl 5.8.0. This does not
occur with perl 5.6.1. (All DSO, BTW)

I build using the CPAN module, with a .makepl_args.mod_perl file in my $HOME
dir. This has worked just fine for years, through multiple versions of perl,
mod_perl, Apache, and Solaris.

Now, when the "make test" of mod_perl is run, I see this:

internal/http-get.....Internal Server Error
internal/http-get.....dubious                                                
        Test returned status 29 (wstat 7424, 0x1d00)
DIED. FAILED tests 1-16
        Failed 16/16 tests, 0.00% okay
internal/http-post....Internal Server Error
internal/http-post....dubious                                                
        Test returned status 29 (wstat 7424, 0x1d00)
DIED. FAILED tests 1-7
        Failed 7/7 tests, 0.00% okay

All other tests pass just fine,

And in the error_log, I see these: (besides the 'expected' errors)

[Tue Jul 23 10:48:15 2002] [error] Undefined subroutine &Apache::exit called at
/opt/.cpan/build-5.8.0-mod-perl-Apache-1.3.26/mod_perl-1.27/t/net/perl/test line
129, <fh00001b> chunk 1.

print() on closed filehandle FH at
/opt/.cpan/build-5.8.0-mod-perl-Apache-1.3.26/mod_perl-1.27/t/net/perl/hooks.pl
line 15, <fh00001b> line 1.
print() on closed filehandle FH at
/opt/.cpan/build-5.8.0-mod-perl-Apache-1.3.26/mod_perl-1.27/t/net/perl/hooks.pl
line 26, <fh00001b> line 1.
[Tue Jul 23 10:48:16 2002] [error] can't open
/opt/.cpan/build-5.8.0-mod-perl-Apache-1.3.26/mod_perl-1.27/t/docs/.htaccess at
/opt/.cpan/build-5.8.0-mod-perl-Apache-1.3.26/mod_perl-1.27/t/net/perl/hooks.pl
line 51, <fh00001b> line 1.

[Tue Jul 23 10:48:18 2002] [error] END block was not run for
/opt/.cpan/build-5.8.0-mod-perl-Apache-1.3.26/mod_perl-1.27/t/net/perl/test

[Tue Jul 23 10:48:20 2002] [error] END block was not run for
/opt/.cpan/build-5.8.0-mod-perl-Apache-1.3.26/mod_perl-1.27/t/net/perl/test

This is with perl 5.8.0, mod_perl 1.27, Apache 1.26, and Solaris 8. I build all
this from source, (except Solaris!!:), using gcc 2.95. Apache is compiled with
these options passed to Configure by the .makepl_args.mod_perl file: ( as well
as some site-specific options, like --prefix=, etc)

--enable-module=all --enable-shared=max --disable-module=example
--disable-module=auth_db --verbose --server-uid=httpd --server-gid=www

(the auth_db module will not build with Berkeley DB 4.x, which is what I have to
use for other apps on the same machine. Fortunately, I do not use that module,
so I don't care. :)

perl -V:

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos rapier 5.8 generic_108528-14 sun4u sparc sunw,sun-blade-100 '
    config_args='-Dcc=gcc -Ubincompat5005 -Uuselargefiles -Uusemymalloc
-Dloclibpth=/opt/BerkeleyDB/lib -Uinstallusrbinperl
-Dprefix=/opt/perl5.8.0-mod-perl-Apache-1.3.26
-Dscriptdir=/opt/perl5.8.0-mod-perl-Apache-1.3.26/scripts
-Dcf_email=david.mccabe@mcgill.ca -Dldflags=-R/opt/BerkeleyDB/lib:/opt/lib
-Dmydomain=.mcgill.ca -Dmyhostname=rapier -Dperladmin=david.mccabe@mcgill.ca
-Dlocincpth=/opt/BerkeleyDB/include -Dcf_by=David McCabe -d'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/opt/BerkeleyDB/include',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/opt/BerkeleyDB/include'
    ccversion='', gccversion='2.95.3 20010315 (release)',
gccosandvers='solaris2.8'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-R/opt/BerkeleyDB/lib:/opt/lib -L/opt/BerkeleyDB/lib'
    libpth=/opt/BerkeleyDB/lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -R/opt/BerkeleyDB/lib:/opt/lib
-L/opt/BerkeleyDB/lib'


Characteristics of this binary (from libperl): 
  Compile-time options:
  Built under solaris
  Compiled at Jul 22 2002 12:12:58
  @INC:
    /opt/perl5.8.0-mod-perl-Apache-1.3.26/lib/McGill/sun4-solaris
    /opt/perl5.8.0-mod-perl-Apache-1.3.26/lib/McGill
    /opt/perl5.8.0-mod-perl-Apache-1.3.26/lib/5.8.0/sun4-solaris
    /opt/perl5.8.0-mod-perl-Apache-1.3.26/lib/5.8.0
    /opt/perl5.8.0-mod-perl-Apache-1.3.26/lib/site_perl/5.8.0/sun4-solaris
    /opt/perl5.8.0-mod-perl-Apache-1.3.26/lib/site_perl/5.8.0
    /opt/perl5.8.0-mod-perl-Apache-1.3.26/lib/site_perl
    .

Anybody having similar problems??
-- 
David McCabe  Network and Communications Services, McGill University
Montreal, Quebec, Canada                      david.mccabe@mcgill.ca
	In theory there is no difference between theory and practice.
	In practice there is.  -Yogi Berra