On 7/4/01 9:25 AM, will wrote:
> On 7/2/01 8:38 PM, Benjamin John Turner wrote:
>> cd mod_perl-1.25
>> perl Makefile.PL APACHE_SRC=../apache_1.3.14/src DO_HTTPD=1
>> USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 PERL_TRACE=1
>> make
>> make test # this fails since apache httpd isn't running
>> make install
>>
>> # any use of --enable-shared implies --enable-module=so
>> # note that --enable-rule=SHARED_CORE might be needed too,
>> # but we aren't going to be having that many dynamic apache modules
>> ./configure --prefix=/usr/local/installs/apache-1.3.14
>> --enable-module=rewrite --enable-shared=rewrite
>> --activate-module=src/modules/perl/libperl.a
>> make
>> make test # this fails because it doesn't understand it
>> make install
>
> it works! if you only knew how long i've been banging my head against
> that. I even started trying to patch libtool, which was about the
> worst idea i've ever had.
>
> so I can testify that your routine works with os x client 10.0.4,
> apache 1.3.20, mod_perl 1.25 and perl 5.6.0, too.
Well, using Perl 5.6.1 I didn't have as much luck. Here's what I got during
the apache "make" step after following the instructions posted:
[...snip...]
cc -DDARWIN -DMOD_PERL -DUSE_PERL_SSI -pipe -fno-common
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing
-I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED `./apaci` \
-o httpd buildmark.o modules.o modules/perl/libperl.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a
ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a
-L/usr/local/lib
/System/Library/Perl/darwin/auto/DynaLoader/DynaLoader.a
-L/System/Library/Perl/darwin/CORE -lperl -lm -lc
/usr/bin/ld: Undefined symbols:
_perl_call_method
_perl_call_sv
_perl_eval_pv
_perl_get_av
_perl_get_cv
_perl_get_sv
_perl_init_i18nl10n
_perl_eval_sv
_perl_get_hv
_perl_require_pv
_perl_call_pv
_Perl_safefree
_Perl_safemalloc
make[2]: *** [target_static] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2
*sigh* I'll keep trying :)
-John