Re: Makefile.PL bug (?) - USE_APXS/DYNAMIC incompatible

2001-01-28 Thread Lynn Winebarger

On Sun, 28 Jan 2001, G.W. Haywood wrote:

> Hi again,
> 
> On Sun, 28 Jan 2001, Lynn Winebarger wrote:
> 
> >Ok, I resolved this.
> 
> Glad you resolved it.
> 
> It would help everybody if you keep the subject line the same.


   Sorry.  I changed it because I had something definite to report, rather
than just a problem I couldn't solve.

Lynn




Makefile.PL bug (?) - USE_APXS/DYNAMIC incompatible

2001-01-27 Thread Lynn Winebarger


   Ok, I resolved this.  It appears USE_APXS is incompatible with DYNAMIC,
producing the results I posted previously. I don't know whether this
reflects a true incompatibility in the code or not.  Someone might want to
add a warning - particularly since DYNAMIC is the only switch that turns
on all the APIs without turning on everything (perl_ssi was the one I
didn't want turned on).  Or allow switches to override EVERYTHING.
   In addition, if you do a make clean after such a build, then
reconfigure without turning DYNAMIC on, you get a similar problem, but in
Connection/ (Apache/ is made without error).  (I tested this in a freshly
unarchived source dir).

Thanks for the time,
Lynn





Re: make problem - mod_perl.h not found by Apache::modules (more)

2001-01-27 Thread Lynn Winebarger


   A little more on my configuration - I've got both a /usr/ install of
perl (5.005) and 5.6.0 installed in /usr/local/perl (for chrooting
purposes).  I also have /usr/local install of apache 1.3.12 and a
/usr/local/apache install of 1.3.14 (again, for chrooting).  The attempt
below was trying to use the perl 5.6.0 and apache 1.3.14 installs.  I have
since tried it with the 5.005 and 1.3.12 installs, using a configuration
that was successful less than a month ago, and no go.
   The configuration was 
perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/sbin/apache EVERYTHING=1

   It gets the same error (Apache/Apache.c can't include mod_perl.h or
mod_perl_xs.h).  Those header files are in fact in
blib/arch/auto/Apache/perl/ (at the point it attempts to compile
Apache/Apache.c).  The generated Apache.c's include statements are:
#include "mod_perl.h"
#include "mod_per_xs.h"
  and those headers aren't in Apache/
  Now, the odd thing is that the last time I built it, make output this:
make[1]: Entering directory `/home/lynn/http/mod_perl-1.24/Apache'
mkdir ../blib/lib/auto/Apache
cp Apache.pm ../blib/lib/Apache.pm
   (after building the files from apaci/).  In other words, in that
instance, it didn't try to build Apache/Apache.c.  Of course, it built
Apache.c statically into libperl.so, so why would it?  But as I said, this
option doesn't appear to work now (even in the attempts where I turned off
DYNAMIC, or where I set EVERYTHING=1 (on the command line, without a
.makepl_args.mod_perl, as above).
   My first guess would be there's something screwy in my perl
configuration, but I don't think I've updated the 5.005 one since the last
successful build.
   If anyone can offer me a clue, I'd greatly appreciate it.  (Although
I'm pretty set on building it as a DSO - even if I install it in the
apache source tree statically, this is a puzzler).

Thanks,
Lynn
PS The snippit from the successful build came from a log file of the shell
session the last time I built Apache and all the components I use.  I was 
surprised to find it - I usually don't have that kind of foresight ;-)

On Sat, 27 Jan 2001, Lynn Winebarger wrote:

> 
>Hi.  I'm having problems getting mod_perl (1.24<_01>) to compile.
> I'm using perl 5.6.0, apache 1.3.14, RH Linux 6.2/Intel (with upgrades).
> This is odd since I've previously built mod_perl successfully as a DSO
> (and the problem appears to be in the configure - I don't get far enough
> in the make to be worried about run-time incompatibilies with 1.3.14).
> Of course, I don't have the options used in the previous mod_perl build.
[snip]




make problem - mod_perl.h not found by Apache::modules

2001-01-27 Thread Lynn Winebarger


   Hi.  I'm having problems getting mod_perl (1.24<_01>) to compile.
I'm using perl 5.6.0, apache 1.3.14, RH Linux 6.2/Intel (with upgrades).
This is odd since I've previously built mod_perl successfully as a DSO
(and the problem appears to be in the configure - I don't get far enough
in the make to be worried about run-time incompatibilies with 1.3.14).
Of course, I don't have the options used in the previous mod_perl build.

My .makepl_args.mod_perl reads
APACHE_PREFIX=/usr/local/apache

WITH_APXS=/usr/local/apache/bin/apxs
USE_APXS=1

#USE_DSO=1

#turns on all standard Apache:: modules, compiles them as 
#dynamic libraries
DYNAMIC=1
# turn on all those Perl*Handler directives
ALL_HOOKS=1

#misc features
#  in config files
PERL_SECTIONS=1
# Don't allow #perl in SSI
PERL_SSI=0

PERL_DIRECTIVE_HANDLERS=1
PERL_STACKED_HANDLERS=1
PERL_METHOD_HANDLERS=1

  Making yields (lines mangled by pasting into pine):
(cd ./apaci && make)
make[1]: Entering directory `/home/lynn/http/mod_perl-1.24_01/apaci'
cc -fpic -O2 -I/usr/local/perl/lib/5.6.0/i686-linux/CORE
-fno-strict-aliasing -I/usr/local/include
-DMOD_PERL_VERSION=\"1.24_01\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\" 
-DNO_PERL_SSI=1 
-I/usr/local/apache/include -DMOD_PERL -DLINUX=2 -DMOD_SSL=207101
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -c mod_perl.c && mv
mod_perl.o mod_perl.lo
/usr/local/perl/bin/perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c -std 
cc -fpic -O2 -I/usr/local/perl/lib/5.6.0/i686-linux/CORE
-fno-strict-aliasing -I/usr/local/include
-DMOD_PERL_VERSION=\"1.24_01\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\" 
-DNO_PERL_SSI=1
-I/usr/local/apache/include -DMOD_PERL -DLINUX=2 -DMOD_SSL=207101
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -c perlxsi.c && mv
perlxsi.o perlxsi.lo
cc -fpic -O2 -I/usr/local/perl/lib/5.6.0/i686-linux/CORE
-fno-strict-aliasing -I/usr/local/include
-DMOD_PERL_VERSION=\"1.24_01\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\" 
-DNO_PERL_SSI=1
-I/usr/local/apache/include -DMOD_PERL -DLINUX=2 -DMOD_SSL=207101
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -c perl_config.c &&
mv perl_config.o perl_config.lo
cc -fpic -O2 -I/usr/local/perl/lib/5.6.0/i686-linux/CORE
-fno-strict-aliasing -I/usr/local/include
-DMOD_PERL_VERSION=\"1.24_01\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\" 
-DNO_PERL_SSI=1
-I/usr/local/apache/include -DMOD_PERL -DLINUX=2 -DMOD_SSL=207101
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -c perl_util.c && mv
perl_util.o perl_util.lo
cc -fpic -O2 -I/usr/local/perl/lib/5.6.0/i686-linux/CORE
-fno-strict-aliasing -I/usr/local/include
-DMOD_PERL_VERSION=\"1.24_01\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\" 
-DNO_PERL_SSI=1
-I/usr/local/apache/include -DMOD_PERL -DLINUX=2 -DMOD_SSL=207101
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -c perlio.c && mv
perlio.o perlio.lo
cc -fpic -O2 -I/usr/local/perl/lib/5.6.0/i686-linux/CORE
-fno-strict-aliasing -I/usr/local/include
-DMOD_PERL_VERSION=\"1.24_01\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\" 
-DNO_PERL_SSI=1
-I/usr/local/apache/include -DMOD_PERL -DLINUX=2 -DMOD_SSL=207101
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -c mod_perl_opmask.c
&& mv mod_perl_opmask.o mod_perl_opmask.lo
rm -f libperl.so
cc -shared -L/usr/local/apache/lib -L/usr/local/openssl/lib
-L/usr/local/perl/lib -L/usr/local/lib -o libperl.so mod_perl.lo
perlxsi.lo perl_config.lo perl_util.lo perlio.lo mod_perl_opmask.lo
-rdynamic -L/usr/local/apache/lib -L/usr/local/openssl/lib
-L/usr/local/perl/lib -L/usr/local/lib
/usr/local/perl/lib/5.6.0/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/local/perl/lib/5.6.0/i686-linux/CORE -lperl -lnsl -lndbm -lgdbm
-ldb -ldl -lm -lc -lposix -lcrypt 
make[1]: Leaving directory `/home/lynn/http/mod_perl-1.24_01/apaci'
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/mod_perl
mkdir blib/lib/auto
mkdir blib/lib/auto/mod_perl
mkdir blib/man3
cp lib/Apache/Registry.pm blib/lib/Apache/Registry.pm
cp lib/Apache/SizeLimit.pm blib/lib/Apache/SizeLimit.pm
cp lib/Apache/Resource.pm blib/lib/Apache/Resource.pm
cp lib/Apache/PerlSections.pm blib/lib/Apache/PerlSections.pm
cp lib/Apache/RegistryNG.pm blib/lib/Apache/RegistryNG.pm
cp lib/Apache/PerlRun.pm blib/lib/Apache/PerlRun.pm
cp lib/Apache/Debug.pm blib/lib/Apache/Debug.pm
cp lib/mod_perl_hooks.pm.PL blib/lib/mod_perl_hooks.pm.PL
cp lib/Apache/MyConfig.pm blib/lib/Apache/MyConfig.pm
cp src/modules/perl/mod_perl_xs.h
blib/arch/auto/Apache/include/modules/perl/mod_perl_xs.h
cp mod_perl_tuning.pod blib/lib/mod_perl_tuning.pod
cp src/modules/perl/mod_perl_version.h
blib/arch/auto/Apache/include/modules/perl/mod_perl_version.h
cp lib/Apache/ExtUtils.pm blib/lib/Apache/ExtUtils.pm
cp lib/Apache/httpd_conf.pm blib/lib/Apache/httpd_conf.pm
cp src/ap_config_auto.h blib/arch/auto/Apache/include/ap_config_auto.h
cp lib/Apache/src.pm blib/lib/Apache/src.pm
cp mod_perl_traps.pod blib/lib/mod_perl_traps.pod
cp lib/Apache/SIG.pm blib/lib/