Two failures in make test building mod_perl 2.0.3

2007-01-17 Thread craig

-8<-- Start Bug Report 8<--
1. Problem Description:

  Two failures in make test building mod_perl 2.0.3

2. Used Components and their Configuration:

*** mod_perl version 2.03

*** using /tmp/mod_perl-2.0.3/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB => aprext
  MP_AP_PREFIX   => /www
  MP_CCOPTS  => -march=pentiumpro
  MP_COMPAT_1X   => 0
  MP_GENERATE_XS => 1
  MP_LIBNAME => mod_perl
  MP_USE_DSO => 1


*** /www/bin/httpd -V
Server version: Apache/2.2.3
Server built:   Aug  9 2006 10:27:21
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.2, APR-Util 1.2.2
Compiled using: APR 1.2.2, APR-Util 1.2.2
Architecture:   32-bit
Server MPM: Prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-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 /www/bin/httpd
/www/bin/httpd:
libssl.so.4 => /usr/lib/libssl.so.4 (0x28113000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x28142000)
libm.so.4 => /lib/libm.so.4 (0x28239000)
	libaprutil-1.so.2 => /usr/local/apache2/lib/libaprutil-1.so.2  
(0x2824f000)

libdb41.so.1 => /usr/local/lib/libdb41.so.1 (0x28267000)
libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x28303000)
libapr-1.so.2 => /usr/local/apache2/lib/libapr-1.so.2 (0x28324000)
libcrypt.so.3 => /lib/libcrypt.so.3 (0x2834a000)
libpthread.so.2 => /usr/lib/libpthread.so.2 (0x28362000)
libc.so.6 => /lib/libc.so.6 (0x28387000)


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

-L/usr/local/apache2/lib -laprutil-1 -ldb41 -lexpat -L/usr/local/lib
-L/usr/local/apache2/lib -lapr-1 -lcrypt  -lpthread



*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
osname=freebsd, osvers=6.0-release, archname=i386-freebsd-64int
uname='freebsd mackenna1.securesites.net 6.0-release freebsd 6.0- 
release #19: wed sep 20 14:24:06 mdt 2006  
[EMAIL PROTECTED]:usrsrcsysi386compilevkern i386 '
config_args='-Doptimize=-march=pentiumpro -des -Uusethreads - 
Duse64bitint'

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=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno- 
strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/ 
include',

optimize='-march=pentiumpro',
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict- 
aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
ccversion='', gccversion='3.4.4 [FreeBSD] 20050518',  
gccosandvers=''

intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8,  
Off_t='off_t', lseeksize=8

alignbytes=4, prototype=define
  Linker and Libraries:
ld='cc', ldflags ='-Wl,-E  -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lgdbm -lm -lcrypt -lutil -lc
perllibs=-lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_MALLOC_WRAP USE_64_BIT_INT USE_LARGE_FILES
USE_PERLIO
  Built under freebsd
  Compiled at Jan 17 2007 15:07:11
  %ENV:
PERL_LWP_USE_HTTP_10="1"
  @INC:
/usr/local/lib/perl5/5.8.8/i386-freebsd-64int
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd-64int
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl
.

*

Re: Two failures in make test building mod_perl 2.0.3

2007-01-18 Thread Geoffrey Young

> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

> # testing : connection notes
> # expected: 127.0.0.1
> # received: 127.0.0.7
> not ok 1

this looks like it may be an IPv6 issue that's perhaps outside our
control...

the 'expected' part of this test is deduced by Apache-Test using
straight-up perl.

  $ perl -MSocket -e 'print
Socket::inet_ntoa((gethostbyname("localhost"))[-1])'

the 'received' part uses the value of $c->remote_ip, which is set in the
connection record by httpd (not mod_perl) using the APR abstraction layer.

I don't have a clue about IPv6 or how it works, but I suspect the issue
is the difference between perl's and apr's interpretation of localhost
on your machine.

maybe someone else has a clue.

--Geoff


Re: Two failures in make test building mod_perl 2.0.3

2007-01-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jan 18, 2007 at 02:58:45PM -0500, Geoffrey Young wrote:
> 
> > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
> 
> > # testing : connection notes
> > # expected: 127.0.0.1
> > # received: 127.0.0.7
> > not ok 1
> 
> this looks like it may be an IPv6 issue that's perhaps outside our
> control...

...or just some funny entry in /etc/hosts (yeah, I know, but it'd be
worth checking...)

regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFsFOTBcgs9XrR2kYRApdAAJwOwQ6BRfL9T93DdJPibyjp4C1gWgCfadzZ
V2WEofsjekNIhbWtdQhvvXg=
=6Iv4
-END PGP SIGNATURE-



Re: Two failures in make test building mod_perl 2.0.3

2007-01-19 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jan 18, 2007 at 09:52:39PM -0800, [EMAIL PROTECTED] wrote:
> The /etc/hosts file on the system where the problem occurred follows:
> 
> # $FreeBSD: src/etc/hosts,v 1.16 2003/01/28 21:29:23 dbaker Exp $

[no trace of 127.0.0.7]

Hm. Looks sane to me. But somehow 'localhost' seems to resolve
(sometimes) to 127.0.0.1 on your machine. What does "nslookup localhost"
(or any FreeBSD equivalent thereof) say? How does the /etc/nsswitch.conf
look like?

I still guess that this is a resolver issue, not a modperl one.

Regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFsLjMBcgs9XrR2kYRAtIfAJ92YPGT9ISzK9Ilf9UoJEwly9QasACffqq9
mINmW0P8SmlXKYgOVfR3GzI=
=ZwOu
-END PGP SIGNATURE-



Re: Two failures in make test building mod_perl 2.0.3

2007-01-19 Thread craig

Hi tomás,
Info is filled in below.

One other Q: what is the protocol for when to reply to just
one person (reply) vs. the whole list (reply all)?

Best Regards,
Craig

On Jan 19, 2007, at 4:25 AM, [EMAIL PROTECTED] wrote (in part):


Hm. Looks sane to me. But somehow 'localhost' seems to resolve
(sometimes) to 127.0.0.1 on your machine. What does "nslookup  
localhost"

(or any FreeBSD equivalent thereof) say?

Server: 127.0.0.1
Address:127.0.0.1#53

Name:   localhost
Address: 127.0.0.1


How does the /etc/nsswitch.conf look like?

group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files


I still guess that this is a resolver issue, not a modperl one.

Regards
- -- tomás