On 3/29/06, Philip M. Gollucci <[EMAIL PROTECTED]> wrote:
> I hope this isn't whats causing it, but you're missing
>
> use Apache2::Const -compile qw(OK);
>
> I know we prefer the other way of new() so try doing this
> my $apr = Apache2::Request->new($r)
>
> I don't recall if we support both (as you can tell I've been out of it for a
> while).

The new Obj vs. Obj->new doesn't require any support from the module
itself, but I tried it just to be sure, and still get the same
segfault.  Also, I do compile constants in the startup.pl script, and
when I remove the call to Apache2::Request in my sample handler, the
segfault goes away.

> If that doesn't work,
> perl -V

Attached: perl.V.txt

> ./configure for PERL, httpd,

For perl, the non-path/compiler flag defines passed to Configure are:

-Duselargefiles
-Duseshrplib
-Dusesitecustomize
-Dusethreads

(Note: when I comment out the call to Apache2::Request in my example,
mod_perl happilly handles the request, so I think the perl/mod_perl
path is working fine.  The stack trace shows the segfault in
mod_apreq2.so)

Attached: httpd-2.2-config.nice

> Makefile.PL line for mod_perl and httpd-apreq

mod_perl:

perl Makefile.PL \
    MP_APXS=/path/to/apache2/sbin/apxs \
    MP_PROMPT_DEFAULT=1 \
    MP_DEBUG=1

httpd-apreq2:

perl Makefile.PL \
  --enable-perl-glue
  --with-perl=/opt/csw/bin/perl
  --with-apache2-apxs=/opt/csw/apache2/sbin/apxs
  --with-apr-config=/opt/csw/apache2/bin/apr-config
  --with-apu-config=/opt/csw/apache2/bin/apu-config
  --with-expat=/opt/csw
  --with-mm-opts="INSTALLDIRS=vendor"

Thanks,
Cory.

Attachment: httpd-2.2.0-config.nice
Description: Binary data

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris-thread-multi
    uname='sunos ra 5.8 generic_117350-28 sun4u sparc'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -xO3 -xarch=v8 -xspace -xildoff 
-I/opt/csw/bdb43/include -I/opt/csw/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
    optimize='-xO3 -xarch=v8 -xspace -xildoff',
    cppflags='-D_REENTRANT -xO3 -xarch=v8 -xspace -xildoff 
-I/opt/csw/bdb43/include -I/opt/csw/include'
    ccversion='Sun C 5.7 2005/01/07', gccversion='', gccosandvers=''
    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=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-xarch=v8 -L/opt/csw/bdb43/lib -L/opt/csw/lib -L/usr/lib 
-L/usr/ccs/lib -L/lib'
    libpth=/usr/lib /usr/ccs/lib /lib /opt/csw/lib
    libs=-lsocket -lnsl -lgdbm -ldb-4.3 -ldl -lm -lpthread -lc
    perllibs=-lsocket -lnsl -ldb-4.3 -ldl -lm -lpthread -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /opt/csw/lib'
    cccdlflags='-KPIC', lddlflags='-G -L/opt/csw/bdb43/lib -L/opt/csw/lib 
-L/usr/lib -L/usr/ccs/lib -L/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE
  Built under solaris
  Compiled at Mar  8 2006 12:17:12
  @INC:
    /opt/csw/lib/perl/5.8.8
    /opt/csw/share/perl/5.8.8
    /opt/csw/lib/perl/site_perl
    /opt/csw/share/perl/site_perl
    /opt/csw/share/perl/site_perl
    /opt/csw/lib/perl/csw
    /opt/csw/share/perl/csw
    /opt/csw/share/perl/csw
    .

Reply via email to