httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Y. Clark" <>
Subject Compiling libapreq 1.1 on Mac OS 10.2.4
Date Thu, 20 Mar 2003 20:02:01 GMT
(I posted some of this message [and a hopeful but incorrect solution]
yesterday to the mod_perl list.  Sorry for the cross-posting to all
the lists, but these two seem the most appropriate.)

I've been trying to compile libapreq 1.1 (Apache::Request) on Mac OS
10.2.4 for a couple of days, but I'm having no luck.  I've been
following the directions in the INSTALL.MacOSX file and following
along with David Wheeler's article "Installing libapreq on Jaguar: An
but nothing seems to be working for me.

Specifically, when I run "make test" for libapreq, I get the following:

    [root@cameron:/usr/local/src/libapreq-1.1]# make test
    t/httpd -f `pwd`/t/httpd.conf
    dyld: t/httpd Undefined symbols:
    make: *** [start_httpd] Trace/BPT trap

To get to this point, let me recount what I did.  I received a
brand-new Powerbook two days ago.  I prompty wiped the hard drive and
reinstalled OS X (so I wouldn't have OS 9), installed the Developer
Tools, installed Fink, and then used Fink to install lots of GNU
goodies.  I wiped out "/Library/Perl" and installed Perl 5.8.0 from
source.  I then built Apache 1.3.27/mod_perl 1.27 like so:

    perl Makefile.PL \
        APACHE_SRC=../apache_1.3.27/src/ \
        DO_HTTPD=1 \
        USE_APACI=1 \
        EVERYTHING=1 \
        APACI_ARGS='--enable-module=proxy, --enable-module=rewrite' \

Then I tried building libapreq following the directions for OS X:

    cd libapreq-1.1
    ./configure --with-apache-includes=/usr/local/apache/include
    sudo make install

One problem with following the above directions lies in the contents

    [root@cameron:/usr/local/src/libapreq-1.1]# cat
    # - preconfigure libapreq (for distribution)

    libtoolize --automake -c -f
    automake -a -c

The only "libtoolize" on my system is the one in "/sw/bin" put there
by Fink, which, I assume, goes along with the "glibtool" in the same
directory.  But the "libtool" that's in my $PATH is in "/usr/bin" put
there by Apple.  While I believe the Apple libtool is actually the GNU
project's libtool, these are definitely different binaries.  If I run after freshly unpacking the source for libapreq, I get the
following error:

    libtool: ltconfig version `' does not match version `1.3.5'

Again, I think this is because of the differences between the libtool
binaries.  If I wipe out the source directory, unpack the original
tarball, skip running, and go right to the "./configure ..."
step, I can get through the configuration and first "make" step.  But
then I get the above "undefined symbols" error stated above.

If I try to use the libtool* binaries in "/sw/bin" to do all the
building, then I get a different error:

    libtool: unrecognized option `-arch_only'

Because Apple's libtool accepts this option, but, alas, Fink's libtool does

I've completely exhausted myself trying to get this to work.  I'm
primarily a mod_perl developer, and I really want to be able to do all
my development on this machine running OS X.  I'm willing to reinstall
the OS, Perl, not reinstall Fink, etc., but I can't really see being
able to stay with the Perl 5.6.0 from Apple.  I'd love some guidance
as I'm sick of Googling and poking and tweaking.  I'll take just about
any advice at this point!


View raw message