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    [EMAIL PROTECTED]

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

Reply via email to