Mario Rodríguez | 1 Aug 2008 23:38
Picon
Favicon

RE: Can't compile Apache2.2.9 + ModPerl2.0.4


Hi list:

I need to compile mod_perl as static module in apache, i try to compile like oleg with a few changes, but i got
different problems when i hit make, my line of configuration in mod_perl is: 

perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=../httpd-2.2.9/ MP_AP_CONFIGURE="
--prefix=/usr/local/apache3 --with-mpm=prefork --enable-rewrite --with-included-apr"

And the problems are:

repuesto mod_perl-2.0.4 # make
cd "src/modules/perl" && make
make[1]: se ingresa al directorio `/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl'
i686-pc-linux-gnu-gcc -I/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl
-I/root/apache_modperl2/mod_perl-2.0.4/xs
-I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include
-I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include
-I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include
-I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/os/unix -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE
-DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror
-Wdeclaration-after-statement -DMP_COMPAT_1X -g -DMP_DEBUG -DMP_TRACE  -c mod_perl.c
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/ap_config.h:25,
                 from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:43,
                 from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr.h:285: error:
expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
(Continue reading)

Stephen Howard | 2 Aug 2008 20:38
Gravatar

subrequests do not run all phase handlers?

I'm issuing a lookup_uri request to launch a subrequest.  I'm getting a 
404 on the subrequest when I get a 200 OK response when visiting the 
same uri from a browser.  My suspicion is that this uri, which uses a 
PerlInitHandler to transform the incoming url, can't be found under the 
subrequest because the Init handler is not being run during the subrequest.

How many of the Apache request phases are run under a subrequest, and if 
not all, then is there a way to indicate that I want some or all of them 
to run?

thanks,
- Stephen

Torsten Foertsch | 3 Aug 2008 11:47
Picon
Gravatar

Re: subrequests do not run all phase handlers?

On Sat 02 Aug 2008, Stephen Howard wrote:
> I'm issuing a lookup_uri request to launch a subrequest.  I'm getting
> a 404 on the subrequest when I get a 200 OK response when visiting
> the same uri from a browser.  My suspicion is that this uri, which
> uses a PerlInitHandler to transform the incoming url, can't be found
> under the subrequest because the Init handler is not being run during
> the subrequest.

An URI subreq starts with the URI Translation Phase (PerlTransHandler). 
A PerlInitHandler is always skipped for subreqs since it is either a 
PerlPostReadRequestHandler which comes before the PerlTransHandler or a 
PerlHeaderParserHandler which is explicitly skipped for subreqs, see 
httpd-2.x.y/server/request.c:ap_process_request_internal():

    /* Only on the main request! */
    if (r->main == NULL) {
        if ((access_status = ap_run_header_parser(r))) {
            return access_status;
        }
    }

A file subreq starts with the PerlMapToStorageHandler and skips the 
PerlHeaderParserHandler as shown.

> How many of the Apache request phases are run under a subrequest, and
> if not all, then is there a way to indicate that I want some or all
> of them to run?

Subreqs and internal redirects can skip Access, Authen and Authz. The 
initial req runs at least Access but can skip Authen and Authz 
(Continue reading)

Stephen Howard | 3 Aug 2008 20:04
Gravatar

Re: subrequests do not run all phase handlers?

Just the answer I was looking for.  Thanks, Torsten

- Stephen

Torsten Foertsch wrote:
> On Sat 02 Aug 2008, Stephen Howard wrote:
>   
>> I'm issuing a lookup_uri request to launch a subrequest.  I'm getting
>> a 404 on the subrequest when I get a 200 OK response when visiting
>> the same uri from a browser.  My suspicion is that this uri, which
>> uses a PerlInitHandler to transform the incoming url, can't be found
>> under the subrequest because the Init handler is not being run during
>> the subrequest.
>>     
>
> An URI subreq starts with the URI Translation Phase (PerlTransHandler). 
> A PerlInitHandler is always skipped for subreqs since it is either a 
> PerlPostReadRequestHandler which comes before the PerlTransHandler or a 
> PerlHeaderParserHandler which is explicitly skipped for subreqs, see 
> httpd-2.x.y/server/request.c:ap_process_request_internal():
>
>     /* Only on the main request! */
>     if (r->main == NULL) {
>         if ((access_status = ap_run_header_parser(r))) {
>             return access_status;
>         }
>     }
>
> A file subreq starts with the PerlMapToStorageHandler and skips the 
> PerlHeaderParserHandler as shown.
(Continue reading)

Dodger | 5 Aug 2008 00:47
Picon
Gravatar

What's not supported?

Hiya all,

I'm putting together a new box to migrate an old server over to. The
existing server is running Apache 2.0.55 with mod_perl and mod_php.
I'm looking at putting 2.2.8 on the new box, but the documentation is
a little... lacking... in one area:

"Apache 2.0 is fully supported.
Most of Apache 2.2 is supported, and work toward full support is underway."

Erm... so what's NOT supported? Are there things that exist in Apache
2.0 that also exist in Apache 2.2 but aren't supported? Or are the
only things not supported *new* things for 2.2?

It's important to know not only that most 2.2 features are supported,
but which are not, and the docs don't say a word on this that I can
see. I Googled for it, too, but to no avail. All I could find relevant
were links back to the What Is Mod Perl page and that text up there.

I guess it comes down to: If I have an existing site built using
mod_perl on 2.0 and I make a new server running 2.2 and migrate my
code over, is it goung to work? Most of it is either pure mod_perl
handlers, registry scripts, and output filters (both SSI and a custom
one I use to "wrap" my layout around script output based on
extension).

Anyhow, just wondering.
Thanks

--

-- 
(Continue reading)

Perrin Harkins | 5 Aug 2008 00:52

Re: What's not supported?

On Mon, Aug 4, 2008 at 6:47 PM, Dodger <el.dodgero <at> gmail.com> wrote:
> Erm... so what's NOT supported? Are there things that exist in Apache
> 2.0 that also exist in Apache 2.2 but aren't supported? Or are the
> only things not supported *new* things for 2.2?

Others can probably give you a more precise answer, but I believe it's
just new things, particularly the new auth features in 2.2.

- Perrin

Car54 | 5 Aug 2008 08:19
Picon

Problem with mod_perl after upgrading to Perl 5.8.8


I'm really new with Perl and Perl Modules... and I've really painted myself
into a corner here, if anyone can help me out I'd really appreciate it.

After upgrading to Perl 5.8.8 from 5.8.0 the following happens...

1) When I try to finish installing Perl Modules I get to Apache::Cookie and
I get this...

cpan[1]> install Apache::Cookie
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
  Database was generated on Sun, 03 Aug 2008 18:02:45 GMT
Running install for module 'Apache::Cookie'
Running make for G/GE/GEOFF/libapreq-1.33.tar.gz

  CPAN: checksum security checks disabled because Digest::SHA not installed.
  Please consider installing the Digest::SHA module.

CPAN: Time::HiRes loaded ok (v1.9715)
Scanning cache /root/.cpan/build for sizes
.................................................................-----------DONE
DEL(1/2): /root/.cpan/build/mod_perl-1.30-ecPAxP
DEL(2/2): /root/.cpan/build/mod_perl-1.30-wU5SXs
CPAN: Compress::Zlib loaded ok (v2.012)
libapreq-1.33/
libapreq-1.33/MANIFEST
libapreq-1.33/missing
libapreq-1.33/Makefile.PL
libapreq-1.33/libapreq.pod
(Continue reading)

Adam Prime x443 | 5 Aug 2008 16:10

FW: [ANN] ApacheCon US and OFBiz Symposium updates; registration open!


-----Original Message-----
From: ApacheCon US 2008 [mailto:curcuru <at> apache.org]
Sent: Thursday, July 31, 2008 10:49 PM
To: announce <at> apache.org; announce <at> apachecon.com
Subject: [ANN] ApacheCon US and OFBiz Symposium updates; registration open!

Remember: early bird rates go up in mid-August, so register soon!

ApacheCon US and OFBiz Symposium bring together the Apache Community
in New Orleans, November 3-7

ApacheCon US to hold new BarCamp at 2008 conference and host
Voluntourism Day

New Orleans, LA - July 30, 2008 - ApacheCon US, the official user
conference of The Apache Software Foundation (ASF), will host new
features at this year's US conference to bring the Apache community
closer together, including a new BarCamp, a Voluntourism Day, and the
social networking site CrowdVine. The conference schedule has been
published and registration is open. Register by August 15 to receive
Early Bird discount prices.

The Apache Open For Business (OFBiz) Symposium is co-locating with
ApacheCon US, bringing a new community of users to the event.
Attendees will be able to mix-and-match the tracks from both
conferences and have the opportunity to network with submitters,
experts, and users.

New at ApacheCon is BarCampApache, (November 4). The BarCamp will be
(Continue reading)

ravi kumar | 4 Aug 2008 14:11
Picon

problem starting apache : is modperl V2.1 is compatable with perl 5.10.0

Hi,
 
I have installed perl 5.10.0 and apache V2.1-1 and modperl V2.1 on my VMS I64 v8.3 machine. when i start the apache its giving the following error
 
"Syntax error on line 13 of /apache$common/conf/mod_perl.conf:
Can't locate API module structure `perl_module' in file /apache$root/000000/modules/mod_perl.exe: function not implemented."
 
I could not figure out why it is happening there.
 
my perl -v is:
 
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=VMS, osvers=V8.3, archname=VMS_IA64-ithread
    uname='VMS ampere V8.3 HP rx2620  (1.30GHz/3.0MB)'
    config_args='-Dunlink_all_versions -Duselargefiles -Dcf_email=SYSTEM -de -Dusethreads -Dusemultiplicity'
    hint=none, useposix=false, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=undef, bincompat5005=undef
  Compiler:
    cc='CC/DECC', ccflags ='/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj /NOANSI_ALIAS/float=ieee/ieee=denorm/Define=_USE_S
TD_STAT=1',
    optimize='/NoList',
    cppflags='undef'
    ccversion='70190011', gccversion='', gccosandvers='undef'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    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='Link/nodebug', ldflags ='/NoTrace/NoMap'
    libpth=/sys$share /sys$library
    libs=
    perllibs=
    libc=(DECCRTL), so=exe, useshrplib=true, libperl=undef
    gnulibc_version='undef'
  Dynamic Linking:
    dlsrc=dl_vms.c, dlext=exe, d_dlsymun=undef, ccdlflags=''
    cccdlflags='', lddlflags='/Share'

Characteristics of this PERLSHR image:
  Compile-time options: DEBUGGING DECCRTL_SOCKETS MULTIPLICITY
                        PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL USE_IEEE
                        USE_ITHREADS USE_LARGE_FILES USE_PERLIO
                        USE_REENTRANT_API VMS_DO_SOCKETS
  Built under VMS
  Compiled at Jul  2 2008 20:03:18
  %ENV:
    PERLSHR="perl_root:[000000]perlshr.exe"
    PERL_ROOT="DISK$I64_83:[VMS$COMMON.PERL-5_10_0.]"
  <at> INC:
    perl_root:[lib.VMS_IA64.5_10_0]
    perl_root:[lib]
    perl_root:[lib.site_perl.VMS_IA64]
    perl_root:[lib.site_perl]
    .
 
Thanks,
--
Ravikumar karnati.
Car54 | 6 Aug 2008 05:14
Picon

Installing Mod_Perl but can't find Apache/src


I'm trying to install mod_perl but it asking for a apache/src directory and
it's no where to be found.

Is there anything else I can do? 

Thank you, 
--

-- 
View this message in context: http://www.nabble.com/Installing-Mod_Perl-but-can%27t-find-Apache-src-tp18843568p18843568.html
Sent from the mod_perl - General mailing list archive at Nabble.com.


Gmane