You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Chris Devers <cd...@pobox.com> on 2003/06/26 08:40:42 UTC

errors installing libapreq

Apologies for the cross-posting, but I feel like I'm pulling the loose
thread out of a sweater here, and it's getting annoying to see just far
things can unravel. To avoid unnecessary cross-posting, feel free to reply
to me directly &/or delete one or more of the lists I've cc'ed this to if
you think that my stab in the dark was a bit too blind.


Okay, so -- I'm trying to install RT3 on my Mac (OSX 10.2.6, build 6L60):

    http://bestpractical.com/rt/index.html

RT3 depends on Perl 5.8, so I've installed that from Fink

    sudo fink install perl580

RT3 also requires about half of CPAN, so I got that too.

More importantly, it requires mod_perl, but since I've upgraded to Perl
5.8, I can no longer depend on the 5.6 mod_perl as supplied by Apple, so
I've had to build & install Apache 1.3.27 & mod_perl 1.27.

So far so good. Or so it seems.

The last CPAN thing RT wants is libapreq, and here's where it all falls
apart. I'm following the installation instructions in the INSTALL.MacOSX
file that came with libapreq, namely:

    $ cd ~/.cpan/build/libapreq-1.2
    $ sh BUILD.sh
    $ ./configure --with-apache-includes=/usr/local/apache/include
    $ make
    $ make test
    $ sudo make install

This all seems to work fine.

The second half of the libapreq install asks me to do the following:

    $ /sw/bin/perl Makefile.PL -apxs /usr/local/apache/sbin/apxs
    $ make
    $ make test

And that's where everything explodes:

    $ make test
    /sw/bin/perl -Iblib/arch -Iblib/lib \
    t/TEST -clean
    *** setting ulimit to allow core files
    ulimit -c unlimited; t/TEST -clean
    APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed
    APACHE_USER=www APACHE_GROUP=www APACHE_PORT= APACHE= APXS= \
    /sw/bin/perl -Iblib/arch -Iblib/lib \
    t/TEST -verbose=0
    *** setting ulimit to allow core files
    ulimit -c unlimited; t/TEST -verbose=0
    APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed
    APXS (/usr/local/apache/sbin/apxs) query for LIBEXECDIR failed
    /usr/local/apache/sbin/httpd -X -d /Users/cdevers/.cpan/build/libapreq-1.2/t -f /Users/cdevers/.cpan/build/libapreq-1.2/t/conf/httpd.conf -DAPACHE1
    using Apache/1.3.27

    waiting for server to start: .
    waiting for server to start: ok (waited 0 secs)
    server localhost:8529 started
    apreq/big_input....# Failed test 1 in apreq/big_input.t at line 40
    apreq/big_input....NOK 1# Failed test 2 in apreq/big_input.t at line 40 fail #2
    apreq/big_input....NOK 2# Failed test 3 in apreq/big_input.t at line 40 fail #3
    apreq/big_input....NOK 3# Failed test 4 in apreq/big_input.t at line 40 fail #4
    apreq/big_input....NOK 4# Failed test 5 in apreq/big_input.t at line 40 fail #5
    apreq/big_input....NOK 5# Failed test 6 in apreq/big_input.t at line 40 fail #6
    apreq/big_input....NOK 6# Failed test 7 in apreq/big_input.t at line 40 fail #7
    apreq/big_input....NOK 7# Failed test 8 in apreq/big_input.t at line 40 fail #8
    apreq/big_input....NOK 8# Failed test 9 in apreq/big_input.t at line 40 fail #9
    apreq/big_input....NOK 9# Failed test 10 in apreq/big_input.t at line 63
    apreq/big_input....NOK 10# Failed test 11 in apreq/big_input.t at line 63 fail #2
    apreq/big_input....NOK 11# Failed test 12 in apreq/big_input.t at line 63 fail #3
    apreq/big_input....NOK 12# Failed test 13 in apreq/big_input.t at line 63 fail #4
    apreq/big_input....NOK 13# Failed test 14 in apreq/big_input.t at line 63 fail #5
    apreq/big_input....NOK 14# Failed test 15 in apreq/big_input.t at line 63 fail #6
    apreq/big_input....NOK 15# Failed test 16 in apreq/big_input.t at line 63 fail #7
    apreq/big_input....NOK 17# Failed test 17 in apreq/big_input.t at line 63 fail #8
    # Failed test 18 in apreq/big_input.t at line 63 fail #9
    apreq/big_input....NOK 18# Failed test 19 in apreq/big_input.t at line 63 fail #10
    apreq/big_input....NOK 19# Failed test 20 in apreq/big_input.t at line 63 fail #11
    apreq/big_input....NOK 21# Failed test 21 in apreq/big_input.t at line 63 fail #12
    apreq/big_input....FAILED tests 1-21
            Failed 21/21 tests, 0.00% okay
    apreq/cookie.......# Failed test 1 in apreq/cookie.t at line 20
    apreq/cookie.......FAILED test 1
            Failed 1/1 tests, 0.00% okay
    apreq/inherit......NOK 1# Failed test 1 in apreq/inherit.t at line 11
    apreq/inherit......FAILED test 1
            Failed 1/1 tests, 0.00% okay
    apreq/request......NOK 1# Failed test 1 in apreq/request.t at line 18
    apreq/request......NOK 2# Failed test 2 in apreq/request.t at line 26
    apreq/request......FAILED tests 1-2
            Failed 2/2 tests, 0.00% okay
    Failed Test       Stat Wstat Total Fail  Failed  List of Failed
    -------------------------------------------------------------------------------
    apreq/big_input.t               21   21 100.00%  1-21
    apreq/cookie.t                   1    1 100.00%  1
    apreq/inherit.t                  1    1 100.00%  1
    apreq/request.t                  2    2 100.00%  1-2
    !!! error running tests (please examine t/logs/error_log)
    make: *** [run_tests] Error 1


I'm really not sure what to try next. That note about "query for
${foo}CONFDIR failed" got my attention, but attempting to set an
appropriate environment variable to fix that one doesn't seem to have
change anything. On the other hand, I was earlier getting a line identical
to those two saying "query for TARGET failed", so on a lark I set that var
and it *did* make the error go away. So with that in mind, I've tried
loading up the environment usefully, but it has only partly helped. Here's
part of what is currently defined:


    APACHE_GROUP=www
    APACHE_USER=www
    LIBEXECDIR=/usr/local/apache/libexec
    SYSCONFDIR=/usr/local/apache/etc


Here's what I get from Perl -V:

    $ which perl
    /sw/bin/perl

    $ /sw/bin/perl -V
    Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
      Platform:
        osname=darwin, osvers=6.6, archname=darwin
        uname='darwin macdaddy.local. 6.6 darwin kernel version 6.6: thu may 1 21:48:54 pdt 2003; root:xnuxnu-344.34.obj~1release_ppc power macintosh powerpc '
        config_args='-des -Dprefix=/sw -Dinstallprefix=/sw/src/root-perl580-5.8.0-1/sw -Dccflags=-I/sw/include -Dldflags=-L/sw/lib -Dperladmin=none -Ui_db -Uinstallusrbinperl -Dman3ext=3perl'
        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 ='-I/sw/include -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing',
        optimize='-O3',
        cppflags='-no-cpp-precomp -I/sw/include -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing'
        ccversion='', gccversion='3.1 20020420 (prerelease)', gccosandvers=''
        intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
        d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
        ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
        alignbytes=8, prototype=define
      Linker and Libraries:
        ld='cc', ldflags ='-L/sw/lib -flat_namespace'
        libpth=/usr/lib
        libs=-lm -lc
        perllibs=-lm -lc
        libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
        gnulibc_version=''
      Dynamic Linking:
        dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
        cccdlflags=' ', lddlflags='-L/sw/lib -flat_namespace -bundle -undefined suppress'


    Characteristics of this binary (from libperl):
      Compile-time options: USE_LARGE_FILES
      Built under darwin
      Compiled at Jun  3 2003 23:30:03
      %ENV:
        PERL5LIB="/sw/lib/perl5"
      @INC:
        /sw/lib/perl5/5.8.0/darwin
        /sw/lib/perl5/5.8.0
        /sw/lib/perl5/darwin
        /sw/lib/perl5
        /sw/lib/perl5/5.8.0/darwin
        /sw/lib/perl5/5.8.0
        /sw/lib/perl5/site_perl/5.8.0/darwin
        /sw/lib/perl5/site_perl/5.8.0
        /sw/lib/perl5/site_perl
        .

Apple's Perl5.6.0, Apache 1.3.27, and mod_perl *mumble* are all still on
the system, but I'm trying to ignore them for these purposes.

And just to validate that I *did* research this before posting this
long-winded thing, the closest discussion I could find to this was a
thread cross-posted by K Old to the mod_perl & libapreq lists at the
beginning of this month. The most similar post is this one:

    http://aspn.activestate.com/ASPN/Mail/Message/modperl/1663875
    http://marc.theaimsgroup.com/?l=apache-modperl&m=105495860320738&w=2

If this person's problem was resolved, it seems to have happened offline:
I don't see any conclusion from him/her, just a handful of suggestions
that might or might not have helped him. Based on a suggestion Randy Kobes
gave in that thread, I tried giving Makefile.PL the httpd binary, as:

    % /sw/bin/perl Makefile.PL \
    > -apxs /usr/local/apache/sbin/apxs \
    > -httpd /usr/local/apache/sbin/httpd

No help. Nor from (and I'm really grasping here):

    % /sw/bin/perl Makefile.PL \
    > -apxs       /usr/local/apache/sbin/apxs \
    > -httpd      /usr/local/apache/sbin/httpd \
    > -sbindir    /usr/local/apache/sbin \
    > -sysconfdir /usr/local/apache/etc \
    > -libexecdir /usr/local/apache/libexec \
    > -target     /usr/local/apache \
    > APACI_ARGS="--sysconfdir=/usr/local/apache/etc,
                  --libexecdir=/usr/local/apache/libexec"

...and increasingly desperate variations thereof. I will plead guilty to
not even knowing if that's valid, meaningful syntax for that line -- it
seemed to [not] work just as badly as everything else I tried...

"When all you have is a hammer, everything feels like a thumb."



So. libapreq fails on make test, when running against Fink's Perl5.8, a
hand-rolled Apache 1.3.27 / mod_perl 1.27 combo running on OSX 10.2.6.

In a nutshell.

Any pointers as to why this may be happening & how it may be fixed would
be appreciated.

Thanks!



-- 
Chris Devers    cdevers@boston.com

uptime, n.
Some future (unspecified) time when the system will be UP and running.
Compare DOWNTIME. See also CRASH.

    -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995

Re: errors installing libapreq [RESOLVED]

Posted by Stas Bekman <st...@stason.org>.
Chris Devers wrote:
> Well, I rebuilt Apache/mod_perl, and it seemed to work. For those that
> hit the same error, the fix -- which I've saved as a script for future
> reference :) -- is as follows:
> 
> * Install Apache/mod_perl:
> 
>     #!/bin/sh
>     # chd.build.apachemodperl.sh
> 
>     perl=/sw/bin/perl
>     modperldir=/usr/src/mod_perl-1.27
>     apachedir=/usr/src/apache_1.3.27
>     builddir=/usr/local/apache
> 
>     pushd $modperldir
> 
>     $perl Makefile.PL \
>         APACHE_SRC=../apache_1.3.xx/src \
>         APACHE_PREFIX=${builddir} \
>         APACHE_USER=www \
>         APACHE_GROUP=www \
>         DO_HTTPD=1 \
>         USE_APACI=1 \
>         EVERYTHING=1 \
>         APACI_ARGS='--sbindir=${builddir}/sbin, \
>                     --sysconfdir=${builddir}/etc, \
>                     --localstatedir=${builddir}/var, \
>                     --runtimedir=${builddir}/var/run, \
>                     --logfiledir=${builddir}/var/logs, \
>                     --proxycachedir=${builddir}/var/proxy, \
>                     --enable-module=so'
>     make
>     make test
>     sudo make install
> 
>     pushd $apachedir
>     sudo make install
> 
>     echo "Verifying that the build worked:"
>     ${builddir}/sbin/apachectl configtest && \
>       echo "congratulations, you may now reset apache by running" && \
>       echo "${builddir}/sbin/apachectl start"
> 
> 
> * Installation may disrupt Perl modules. I had to rebuild Apache::Test
> 
>     % sudo /sw/bin/perl -MCPAN -e shell
>     cpan> install Apache::Test
> 
> 
> * Install libapreq:
> 
>     % perl Makefile.PL \
>     > -httpd /usr/local/apache/sbin/httpd \
>     > -apxs  /usr/local/apache/sbin/apxs
>     % make
>     % make test
>     % make install
> 
> 
> Everything went smoothly up to the `perl Makefile.PL [...]` step, where I
> got this error:
> 
>     skipping test setup...Undefined subroutine &Apache::Test::config called at /sw/lib/perl5/site_perl/5.8.0/darwin/Apache/TestMM.pm line 90.
>     Warning: prerequisite Apache::Test 1.03 not found. We have unknown version.
> 
> And, as I say, rebuilding Apache::Test in the CPAN shell took care of
> that. Others may hit different problems that could be fixed similarly.
> 
> All better now :)

That's all because of the issue case-insensitive issues with Apache/test.pm 
vs. Apache/Test.pm, which are no longer a problem, since mod_perl 2.0, no 
longer carries Apache/test.pm (it has been renamed to Apache/testold.pm).

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: errors installing libapreq [RESOLVED]

Posted by Stas Bekman <st...@stason.org>.
Chris Devers wrote:
> Well, I rebuilt Apache/mod_perl, and it seemed to work. For those that
> hit the same error, the fix -- which I've saved as a script for future
> reference :) -- is as follows:
> 
> * Install Apache/mod_perl:
> 
>     #!/bin/sh
>     # chd.build.apachemodperl.sh
> 
>     perl=/sw/bin/perl
>     modperldir=/usr/src/mod_perl-1.27
>     apachedir=/usr/src/apache_1.3.27
>     builddir=/usr/local/apache
> 
>     pushd $modperldir
> 
>     $perl Makefile.PL \
>         APACHE_SRC=../apache_1.3.xx/src \
>         APACHE_PREFIX=${builddir} \
>         APACHE_USER=www \
>         APACHE_GROUP=www \
>         DO_HTTPD=1 \
>         USE_APACI=1 \
>         EVERYTHING=1 \
>         APACI_ARGS='--sbindir=${builddir}/sbin, \
>                     --sysconfdir=${builddir}/etc, \
>                     --localstatedir=${builddir}/var, \
>                     --runtimedir=${builddir}/var/run, \
>                     --logfiledir=${builddir}/var/logs, \
>                     --proxycachedir=${builddir}/var/proxy, \
>                     --enable-module=so'
>     make
>     make test
>     sudo make install
> 
>     pushd $apachedir
>     sudo make install
> 
>     echo "Verifying that the build worked:"
>     ${builddir}/sbin/apachectl configtest && \
>       echo "congratulations, you may now reset apache by running" && \
>       echo "${builddir}/sbin/apachectl start"
> 
> 
> * Installation may disrupt Perl modules. I had to rebuild Apache::Test
> 
>     % sudo /sw/bin/perl -MCPAN -e shell
>     cpan> install Apache::Test
> 
> 
> * Install libapreq:
> 
>     % perl Makefile.PL \
>     > -httpd /usr/local/apache/sbin/httpd \
>     > -apxs  /usr/local/apache/sbin/apxs
>     % make
>     % make test
>     % make install
> 
> 
> Everything went smoothly up to the `perl Makefile.PL [...]` step, where I
> got this error:
> 
>     skipping test setup...Undefined subroutine &Apache::Test::config called at /sw/lib/perl5/site_perl/5.8.0/darwin/Apache/TestMM.pm line 90.
>     Warning: prerequisite Apache::Test 1.03 not found. We have unknown version.
> 
> And, as I say, rebuilding Apache::Test in the CPAN shell took care of
> that. Others may hit different problems that could be fixed similarly.
> 
> All better now :)

That's all because of the issue case-insensitive issues with Apache/test.pm 
vs. Apache/Test.pm, which are no longer a problem, since mod_perl 2.0, no 
longer carries Apache/test.pm (it has been renamed to Apache/testold.pm).

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: errors installing libapreq [RESOLVED]

Posted by Chris Devers <cd...@pobox.com>.
Well, I rebuilt Apache/mod_perl, and it seemed to work. For those that
hit the same error, the fix -- which I've saved as a script for future
reference :) -- is as follows:

* Install Apache/mod_perl:

    #!/bin/sh
    # chd.build.apachemodperl.sh

    perl=/sw/bin/perl
    modperldir=/usr/src/mod_perl-1.27
    apachedir=/usr/src/apache_1.3.27
    builddir=/usr/local/apache

    pushd $modperldir

    $perl Makefile.PL \
        APACHE_SRC=../apache_1.3.xx/src \
        APACHE_PREFIX=${builddir} \
        APACHE_USER=www \
        APACHE_GROUP=www \
        DO_HTTPD=1 \
        USE_APACI=1 \
        EVERYTHING=1 \
        APACI_ARGS='--sbindir=${builddir}/sbin, \
                    --sysconfdir=${builddir}/etc, \
                    --localstatedir=${builddir}/var, \
                    --runtimedir=${builddir}/var/run, \
                    --logfiledir=${builddir}/var/logs, \
                    --proxycachedir=${builddir}/var/proxy, \
                    --enable-module=so'
    make
    make test
    sudo make install

    pushd $apachedir
    sudo make install

    echo "Verifying that the build worked:"
    ${builddir}/sbin/apachectl configtest && \
      echo "congratulations, you may now reset apache by running" && \
      echo "${builddir}/sbin/apachectl start"


* Installation may disrupt Perl modules. I had to rebuild Apache::Test

    % sudo /sw/bin/perl -MCPAN -e shell
    cpan> install Apache::Test


* Install libapreq:

    % perl Makefile.PL \
    > -httpd /usr/local/apache/sbin/httpd \
    > -apxs  /usr/local/apache/sbin/apxs
    % make
    % make test
    % make install


Everything went smoothly up to the `perl Makefile.PL [...]` step, where I
got this error:

    skipping test setup...Undefined subroutine &Apache::Test::config called at /sw/lib/perl5/site_perl/5.8.0/darwin/Apache/TestMM.pm line 90.
    Warning: prerequisite Apache::Test 1.03 not found. We have unknown version.

And, as I say, rebuilding Apache::Test in the CPAN shell took care of
that. Others may hit different problems that could be fixed similarly.

All better now :)



-- 
Chris Devers    cdevers@boston.com

channeler, n.
Also SPIRIT GUIDE. Politically correct terms for DAEMON.

    -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995

Re: errors installing libapreq [RESOLVED]

Posted by Chris Devers <cd...@pobox.com>.
Well, I rebuilt Apache/mod_perl, and it seemed to work. For those that
hit the same error, the fix -- which I've saved as a script for future
reference :) -- is as follows:

* Install Apache/mod_perl:

    #!/bin/sh
    # chd.build.apachemodperl.sh

    perl=/sw/bin/perl
    modperldir=/usr/src/mod_perl-1.27
    apachedir=/usr/src/apache_1.3.27
    builddir=/usr/local/apache

    pushd $modperldir

    $perl Makefile.PL \
        APACHE_SRC=../apache_1.3.xx/src \
        APACHE_PREFIX=${builddir} \
        APACHE_USER=www \
        APACHE_GROUP=www \
        DO_HTTPD=1 \
        USE_APACI=1 \
        EVERYTHING=1 \
        APACI_ARGS='--sbindir=${builddir}/sbin, \
                    --sysconfdir=${builddir}/etc, \
                    --localstatedir=${builddir}/var, \
                    --runtimedir=${builddir}/var/run, \
                    --logfiledir=${builddir}/var/logs, \
                    --proxycachedir=${builddir}/var/proxy, \
                    --enable-module=so'
    make
    make test
    sudo make install

    pushd $apachedir
    sudo make install

    echo "Verifying that the build worked:"
    ${builddir}/sbin/apachectl configtest && \
      echo "congratulations, you may now reset apache by running" && \
      echo "${builddir}/sbin/apachectl start"


* Installation may disrupt Perl modules. I had to rebuild Apache::Test

    % sudo /sw/bin/perl -MCPAN -e shell
    cpan> install Apache::Test


* Install libapreq:

    % perl Makefile.PL \
    > -httpd /usr/local/apache/sbin/httpd \
    > -apxs  /usr/local/apache/sbin/apxs
    % make
    % make test
    % make install


Everything went smoothly up to the `perl Makefile.PL [...]` step, where I
got this error:

    skipping test setup...Undefined subroutine &Apache::Test::config called at /sw/lib/perl5/site_perl/5.8.0/darwin/Apache/TestMM.pm line 90.
    Warning: prerequisite Apache::Test 1.03 not found. We have unknown version.

And, as I say, rebuilding Apache::Test in the CPAN shell took care of
that. Others may hit different problems that could be fixed similarly.

All better now :)



-- 
Chris Devers    cdevers@boston.com

channeler, n.
Also SPIRIT GUIDE. Politically correct terms for DAEMON.

    -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995

Re: errors installing libapreq

Posted by Chris Devers <cd...@pobox.com>.
On Thu, 26 Jun 2003, Joe Schaefer wrote:

> Chris Devers <cd...@pobox.com> writes:
>
> > The second half of the libapreq install asks me to do the following:
> >
> >     $ /sw/bin/perl Makefile.PL -apxs /usr/local/apache/sbin/apxs
> >     $ make
> >     $ make test
> >
> > And that's where everything explodes:
> >
> >     $ make test
> >     /sw/bin/perl -Iblib/arch -Iblib/lib \
> >     t/TEST -clean
> >     *** setting ulimit to allow core files
> >     ulimit -c unlimited; t/TEST -clean
> >     APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed
>
> That error is new to me...

Yeah, that one was weird. I also got variants such as (from memory):

    APXS (/usr/local/apache/sbin/apxs) query for LIBEXECDIR failed

&c. I was able to get the others to all go away via liberal use of
environment variables, but this one wouldn't budge. *shrug*


> >     APACHE_USER=www APACHE_GROUP=www APACHE_PORT= APACHE= APXS= \
>                                                                  ^^^
>
> also Apache::Test isn't picking up your APXS setting.
> As a random guess, try using
>
>   % perl Makefile.PL -httpd /usr/local/apache/sbin/httpd
>   % make test
>
> and see if that works.  Otherwise, the INSTALL document
> recommends using environment settings for APXS or APACHE
> instead of the command-line argument.


I was trying to keep my mail relatively short, but I guess that was at the
price of clarity. I've tried each of

   % perl Makefile.PL \
   > && make test

   % perl Makefile.PL \
   > -httpd /usr/local/apache/sbin/httpd \
   > && make test

   % perl Makefile.PL \
   > -httpd /usr/local/apache/sbin/httpd \
   > -apxs  /usr/local/apache/sbin/apxs \
   > && make test

   % perl Makefile.PL \
   > -apxs  /usr/local/apache/sbin/apxs \
   > && make test

None got any further than what I reported earlier.

Actually, that's a slight lie -- the version you suggested fails with an
error about LoadModule being unavailable, which makes sense because I
hadn't enabled that in the custom Apache build:

    % make test
    /sw/bin/perl -Iblib/arch -Iblib/lib \
    t/TEST -clean
    *** setting ulimit to allow core files
    ulimit -c unlimited; t/TEST -clean
    APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \
    /sw/bin/perl -Iblib/arch -Iblib/lib \
    t/TEST -verbose=0
    *** setting ulimit to allow core files
    ulimit -c unlimited; t/TEST -verbose=0
    /usr/local/apache/sbin/httpd -X -d /Users/cdevers/.cpan/build/libapreq-1.2/t -f /Users/cdevers/.cpan/build/libapreq-1.2/t/conf/httpd.conf -DAPACHE1
    using Apache/1.3.27

    waiting for server to start: .Syntax error on line 11 of /Users/cdevers/.cpan/build/libapreq-1.2/t/conf/httpd.conf:
    Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
    .............................................................
    waiting for server to start: giving up after 61 secs
    !!! server failed to start! (t/logs/error_log wasn't created, start the server in the debug mode)
    make: *** [run_tests] Error 1

I'm not against rebuilding Apache & mod_perl to enable this, but it looks
like a diversion from the current problem. I think...

> > If this person's problem was resolved, it seems to have happened offline:
> > I don't see any conclusion from him/her, just a handful of suggestions
> > that might or might not have helped him. Based on a suggestion Randy Kobes
> > gave in that thread, I tried giving Makefile.PL the httpd binary, as:
> >
> >     % /sw/bin/perl Makefile.PL \
> >     > -apxs /usr/local/apache/sbin/apxs \
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Have you tried dropping this argument?

Yeah, as noted above, I've tried several variants of that line, and aside
from the one noted above, they all end about the same way.

> >     > -httpd /usr/local/apache/sbin/httpd
>
> > So. libapreq fails on make test, when running against Fink's Perl5.8, a
> > hand-rolled Apache 1.3.27 / mod_perl 1.27 combo running on OSX 10.2.6.
> >
> > In a nutshell.
>
> Is mod_so compiled into your httpd?  It isn't a requirement for
> libapreq, but that may cause the "-apxs" argument to do unhelpful
> things to the test suite.

It's not, and maybe that's relevant.


For lack of a better idea, maybe I should rebuild Apache/mod_perl with
that module turned on, then see what libapreq does.


Thanks for the suggestions.



-- 
Chris Devers    cdevers@boston.com

reusability, n.
A marketing priority overriding that of usability.
See also OBJECT ORIENTEETING.

    -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995

Re: errors installing libapreq

Posted by Chris Devers <cd...@pobox.com>.
On Thu, 26 Jun 2003, Joe Schaefer wrote:

> Chris Devers <cd...@pobox.com> writes:
>
> > The second half of the libapreq install asks me to do the following:
> >
> >     $ /sw/bin/perl Makefile.PL -apxs /usr/local/apache/sbin/apxs
> >     $ make
> >     $ make test
> >
> > And that's where everything explodes:
> >
> >     $ make test
> >     /sw/bin/perl -Iblib/arch -Iblib/lib \
> >     t/TEST -clean
> >     *** setting ulimit to allow core files
> >     ulimit -c unlimited; t/TEST -clean
> >     APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed
>
> That error is new to me...

Yeah, that one was weird. I also got variants such as (from memory):

    APXS (/usr/local/apache/sbin/apxs) query for LIBEXECDIR failed

&c. I was able to get the others to all go away via liberal use of
environment variables, but this one wouldn't budge. *shrug*


> >     APACHE_USER=www APACHE_GROUP=www APACHE_PORT= APACHE= APXS= \
>                                                                  ^^^
>
> also Apache::Test isn't picking up your APXS setting.
> As a random guess, try using
>
>   % perl Makefile.PL -httpd /usr/local/apache/sbin/httpd
>   % make test
>
> and see if that works.  Otherwise, the INSTALL document
> recommends using environment settings for APXS or APACHE
> instead of the command-line argument.


I was trying to keep my mail relatively short, but I guess that was at the
price of clarity. I've tried each of

   % perl Makefile.PL \
   > && make test

   % perl Makefile.PL \
   > -httpd /usr/local/apache/sbin/httpd \
   > && make test

   % perl Makefile.PL \
   > -httpd /usr/local/apache/sbin/httpd \
   > -apxs  /usr/local/apache/sbin/apxs \
   > && make test

   % perl Makefile.PL \
   > -apxs  /usr/local/apache/sbin/apxs \
   > && make test

None got any further than what I reported earlier.

Actually, that's a slight lie -- the version you suggested fails with an
error about LoadModule being unavailable, which makes sense because I
hadn't enabled that in the custom Apache build:

    % make test
    /sw/bin/perl -Iblib/arch -Iblib/lib \
    t/TEST -clean
    *** setting ulimit to allow core files
    ulimit -c unlimited; t/TEST -clean
    APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \
    /sw/bin/perl -Iblib/arch -Iblib/lib \
    t/TEST -verbose=0
    *** setting ulimit to allow core files
    ulimit -c unlimited; t/TEST -verbose=0
    /usr/local/apache/sbin/httpd -X -d /Users/cdevers/.cpan/build/libapreq-1.2/t -f /Users/cdevers/.cpan/build/libapreq-1.2/t/conf/httpd.conf -DAPACHE1
    using Apache/1.3.27

    waiting for server to start: .Syntax error on line 11 of /Users/cdevers/.cpan/build/libapreq-1.2/t/conf/httpd.conf:
    Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
    .............................................................
    waiting for server to start: giving up after 61 secs
    !!! server failed to start! (t/logs/error_log wasn't created, start the server in the debug mode)
    make: *** [run_tests] Error 1

I'm not against rebuilding Apache & mod_perl to enable this, but it looks
like a diversion from the current problem. I think...

> > If this person's problem was resolved, it seems to have happened offline:
> > I don't see any conclusion from him/her, just a handful of suggestions
> > that might or might not have helped him. Based on a suggestion Randy Kobes
> > gave in that thread, I tried giving Makefile.PL the httpd binary, as:
> >
> >     % /sw/bin/perl Makefile.PL \
> >     > -apxs /usr/local/apache/sbin/apxs \
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Have you tried dropping this argument?

Yeah, as noted above, I've tried several variants of that line, and aside
from the one noted above, they all end about the same way.

> >     > -httpd /usr/local/apache/sbin/httpd
>
> > So. libapreq fails on make test, when running against Fink's Perl5.8, a
> > hand-rolled Apache 1.3.27 / mod_perl 1.27 combo running on OSX 10.2.6.
> >
> > In a nutshell.
>
> Is mod_so compiled into your httpd?  It isn't a requirement for
> libapreq, but that may cause the "-apxs" argument to do unhelpful
> things to the test suite.

It's not, and maybe that's relevant.


For lack of a better idea, maybe I should rebuild Apache/mod_perl with
that module turned on, then see what libapreq does.


Thanks for the suggestions.



-- 
Chris Devers    cdevers@boston.com

reusability, n.
A marketing priority overriding that of usability.
See also OBJECT ORIENTEETING.

    -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995

Re: errors installing libapreq

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Chris Devers <cd...@pobox.com> writes:


[...]

> The second half of the libapreq install asks me to do the following:
> 
>     $ /sw/bin/perl Makefile.PL -apxs /usr/local/apache/sbin/apxs
>     $ make
>     $ make test
> 
> And that's where everything explodes:
> 
>     $ make test
>     /sw/bin/perl -Iblib/arch -Iblib/lib \
>     t/TEST -clean
>     *** setting ulimit to allow core files
>     ulimit -c unlimited; t/TEST -clean
>     APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed

That error is new to me...

>     APACHE_USER=www APACHE_GROUP=www APACHE_PORT= APACHE= APXS= \
                                                                 ^^^

also Apache::Test isn't picking up your APXS setting.
As a random guess, try using 

  % perl Makefile.PL -httpd /usr/local/apache/sbin/httpd
  % make test

and see if that works.  Otherwise, the INSTALL document 
recommends using environment settings for APXS or APACHE
instead of the command-line argument.

> If this person's problem was resolved, it seems to have happened offline:
> I don't see any conclusion from him/her, just a handful of suggestions
> that might or might not have helped him. Based on a suggestion Randy Kobes
> gave in that thread, I tried giving Makefile.PL the httpd binary, as:
> 
>     % /sw/bin/perl Makefile.PL \
>     > -apxs /usr/local/apache/sbin/apxs \
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Have you tried dropping this argument?

>     > -httpd /usr/local/apache/sbin/httpd

> So. libapreq fails on make test, when running against Fink's Perl5.8, a
> hand-rolled Apache 1.3.27 / mod_perl 1.27 combo running on OSX 10.2.6.
> 
> In a nutshell.

Is mod_so compiled into your httpd?  It isn't a requirement for
libapreq, but that may cause the "-apxs" argument to do unhelpful 
things to the test suite.
 
-- 
Joe Schaefer


Re: errors installing libapreq

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Chris Devers <cd...@pobox.com> writes:


[...]

> The second half of the libapreq install asks me to do the following:
> 
>     $ /sw/bin/perl Makefile.PL -apxs /usr/local/apache/sbin/apxs
>     $ make
>     $ make test
> 
> And that's where everything explodes:
> 
>     $ make test
>     /sw/bin/perl -Iblib/arch -Iblib/lib \
>     t/TEST -clean
>     *** setting ulimit to allow core files
>     ulimit -c unlimited; t/TEST -clean
>     APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed

That error is new to me...

>     APACHE_USER=www APACHE_GROUP=www APACHE_PORT= APACHE= APXS= \
                                                                 ^^^

also Apache::Test isn't picking up your APXS setting.
As a random guess, try using 

  % perl Makefile.PL -httpd /usr/local/apache/sbin/httpd
  % make test

and see if that works.  Otherwise, the INSTALL document 
recommends using environment settings for APXS or APACHE
instead of the command-line argument.

> If this person's problem was resolved, it seems to have happened offline:
> I don't see any conclusion from him/her, just a handful of suggestions
> that might or might not have helped him. Based on a suggestion Randy Kobes
> gave in that thread, I tried giving Makefile.PL the httpd binary, as:
> 
>     % /sw/bin/perl Makefile.PL \
>     > -apxs /usr/local/apache/sbin/apxs \
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Have you tried dropping this argument?

>     > -httpd /usr/local/apache/sbin/httpd

> So. libapreq fails on make test, when running against Fink's Perl5.8, a
> hand-rolled Apache 1.3.27 / mod_perl 1.27 combo running on OSX 10.2.6.
> 
> In a nutshell.

Is mod_so compiled into your httpd?  It isn't a requirement for
libapreq, but that may cause the "-apxs" argument to do unhelpful 
things to the test suite.
 
-- 
Joe Schaefer