You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rafael Caceres <rc...@aasa.com.pe> on 2007/01/31 19:00:22 UTC

Re: mod_perl2 make test fails various address related tests

I'm doing a first pass at building mod_perl 2.0.3 for apache 2.0.59 with
a SUSE Linux Enterprise Server 9.
The server is configured not to use IPv6, apr was configured with
--disable-ip6, apache 's config log says ac_cv_define_APR_HAVE_IPV6 = no
and it was built with the --with-apr and --with-apr-util options
pointing to the apr built with no IPv6 support.
But, the logs for apache, as well as the mod_perl test logs show
addresses completely different from the configured ones. This is causing
a number of network address related tests in mod_perl2 to fail.
Is there a way to force http and/or mod_perl to use and report ipv4
addresses?
Any pointers will be appreciated.
Thanks,

Rafael Caceres


Analizado por ThMailServer para Linux.

Re: mod_perl2 make test fails various address related tests

Posted by Rafael Caceres <rc...@aasa.com.pe>.
On Wed, 2007-01-31 at 10:19 -0800, Philip M. Gollucci wrote:
> Rafael Caceres wrote:
> > I'm doing a first pass at building mod_perl 2.0.3 for apache 2.0.59 with
> > a SUSE Linux Enterprise Server 9.
> > The server is configured not to use IPv6, apr was configured with
> > --disable-ip6, apache 's config log says ac_cv_define_APR_HAVE_IPV6 = no
> > and it was built with the --with-apr and --with-apr-util options
> > pointing to the apr built with no IPv6 support.
> > But, the logs for apache, as well as the mod_perl test logs show
> > addresses completely different from the configured ones. This is causing
> > a number of network address related tests in mod_perl2 to fail.
> > Is there a way to force http and/or mod_perl to use and report ipv4
> > addresses?
> > Any pointers will be appreciated.
> > Thanks,
> Can you post some directory paths and ldd output for httpd
> bin/mp2bug will be sufficient too.
> 
Output of bin/mp2bug:
2. Used Components and their Configuration:

*** mod_perl version 2.000003

***
using /usr/sources/mpApache2.0/mod_perl-2.0.3/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_AP_PREFIX   => /usr/local/apache2
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1
  MP_USE_GTOP    => 1


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.59
Server built:   Feb  6 2007 00:00:43
Server's Module Magic Number: 20020903:12
Server loaded:  APR 0.9.13, APR-UTIL 0.9.13
Compiled using: APR 0.9.13, APR-UTIL 0.9.13
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

*** /usr/bin/ldd /usr/local/apache2/bin/httpd
        linux-gate.so.1 =>  (0xffffe000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x40029000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40059000)
        libaprutil-0.so.0 => /usr/local/apr/lib/libaprutil-0.so.0
(0x40149000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4015d000)
        libapr-0.so.0 => /usr/local/apr/lib/libapr-0.so.0 (0x4017d000)
        librt.so.1 => /lib/tls/librt.so.1 (0x4019c000)
        libm.so.6 => /lib/tls/libm.so.6 (0x401a4000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x401c6000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x401f7000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4020b000)
        libdl.so.2 => /lib/libdl.so.2 (0x4021c000)
        libc.so.6 => /lib/tls/libc.so.6 (0x4021f000)
        /lib/ld-linux.so.2 (0x40000000)


*** (apr|apu)-config linking info

 -L/usr/local/apr/lib -laprutil-0 -lexpat
 -L/usr/local/apr/lib -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl

*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
  Platform:
    osname=linux, osvers=2.6.5-7.282-default, archname=i686-linux
    uname='linux rcaceres5 2.6.5-7.282-default #1 tue aug 29 10:40:40
utc 2006 i686 i686 i386 gnulinux '
    config_args='-Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl
-de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.3.3 (SuSE Linux)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Locally applied patches:
        SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
  Built under linux
  Compiled at Jan 29 2007 01:52:38
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/lib/perl5/5.8.7/i686-linux
    /usr/lib/perl5/5.8.7
    /usr/lib/perl5/site_perl/5.8.7/i686-linux
    /usr/lib/perl5/site_perl/5.8.7
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.7/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.7
    /usr/lib/perl5/vendor_perl
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.25
ExtUtils::MakeMaker: 6.17
LWP                : -
mod_perl           : -
mod_perl2          : 2.000003

> Most likely it didn't link against the ones you think it did.
> 
As far as I can tell, the libraries are the ones expected
(at /usr/local/apr). 
As far as SUSE is concerned, I doublechecked that modprobe.conf.local
turns off IPv6 support with:
#No IPv6
alias net-pf-10 off
alias ip6 off

Yet, I keep getting the strage IPs back.

Rafael


Analizado por ThMailServer para Linux.

Re: mod_perl2 make test fails various address related tests

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Rafael Caceres wrote:
> I'm doing a first pass at building mod_perl 2.0.3 for apache 2.0.59 with
> a SUSE Linux Enterprise Server 9.
> The server is configured not to use IPv6, apr was configured with
> --disable-ip6, apache 's config log says ac_cv_define_APR_HAVE_IPV6 = no
> and it was built with the --with-apr and --with-apr-util options
> pointing to the apr built with no IPv6 support.
> But, the logs for apache, as well as the mod_perl test logs show
> addresses completely different from the configured ones. This is causing
> a number of network address related tests in mod_perl2 to fail.
> Is there a way to force http and/or mod_perl to use and report ipv4
> addresses?
> Any pointers will be appreciated.
> Thanks,
Can you post some directory paths and ldd output for httpd
bin/mp2bug will be sufficient too.

Most likely it didn't link against the ones you think it did.



------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant - P6M7G8 Consutling - http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - Ticketmaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

We're halfway there
Livin' on a prayer
Take my hand and we'll make it-I swear
Livin' on a prayer