-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi AxKittens,

We experienced the same behaviour as described in
http://maclux-rz.uibk.ac.at/maillists/axkit-users/msg05515.shtml
at a Box running Oracle's IAS. The Perl distribution bundled with IAS is
compiled with large file support enabled, whereas the IAS Apache has no
large file support. mod_perl's Makefile.PL sets its $PERL_USELARGEFILES
to 0 in that case, regadless of the value in Perl's Config.pm. The
behaviour of AxKit's Makefile.pl is buggy there. It checks for
mod_perl's PERL_USELARGEFILES config value and tries to strip the large
file support in the CCFLAGS. It can only succeed stripping them, if
users explicitly define the CCFLAGS as Makefile.PL arguments however. So
usually, even if mod_perl has long file support disabled, AxKit will
compile with long file support enabled for long file support configured
Perl installations. The resulting behaviour is the "Unexpected
per_dir_config = NULL" bug.
The attached patch for Makefile.PL will fix this - If mod_perl is
configured with large file support disabled, it will compile AxKit that
way regardless of the Perl config.
Still this is no guarantee that everyhting will work. Recommended is the
long file support synchronization between Perl, Apache and all mod_perl
modules. AxKit's Makefile.PL could print out a warning about this if it
discovers different long file support settings. Similar to the one which
used to be given from mod_perl's Makefile.PL uselargefiles_check() function:

...
~    $PERL_USELARGEFILES=0; #just do it since
~    return; #nobody seems to listen to the warning below

~    phat_warn(<<EOF);
Your Perl is uselargefiles enabled, but Apache is not, suggestions:
~    *) Rebuild mod_perl with Makefile.PL PERL_USELARGEFILES=0
~    *) Rebuild Apache with CFLAGS="-D_LARGEFILE_SOURCE
- -D_FILE_OFFSET_BITS=64"
~    *) Rebuild Perl with Configure -Uuselargefiles
~    *) Let mod_perl build Apache (USE_DSO=1 instead of USE_APXS=1)
EOF
...

michael

- --
IT Services                University of Innsbruck
063A F25E B064 A98F A479  1690 78CD D023 5E2A 6688
http://zis.uibk.ac.at/.m/uibk.ac.at_pgp_pubkey.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)

iD8DBQFAHiATeM3QI14qZogRAkgvAJ9rEey8tQLiEnKdQ84SMzxxQ74tnQCgmG+u
7rDQfKBVgnroczs306f2K38=
=5HK/
-----END PGP SIGNATURE-----
Index: Makefile.PL
===================================================================
RCS file: /home/cvspublic/xml-axkit/Makefile.PL,v
retrieving revision 1.23
diff -u -r1.23 Makefile.PL
--- Makefile.PL 17 Sep 2003 21:58:38 -0000      1.23
+++ Makefile.PL 2 Feb 2004 08:56:58 -0000
@@ -221,17 +221,16 @@
 
 $config{INC} .= ' ' . Apache::src->new->inc;
 
+unless ($Apache::MyConfig::Setup{PERL_USELARGEFILES} == 1) {
+    $config{CCFLAGS} ||= $Config{ccflags};
+    $config{CCFLAGS} = strip_lfs($config{CCFLAGS});
+}
+
 if ($DEBUG) {
     print "calling WriteMakefile with config:\n";
     foreach my $k (keys %config) {
         print "$k = $config{$k}\n";
     }
-}
-
-# my %prereq_pm = %{delete $config{PREREQ_PM}||{}};
-
-unless ($Apache::MyConfig::Setup{PERL_USELARGEFILES} == 1) {
-    $config{CCFLAGS} = strip_lfs($config{CCFLAGS});
 }
 
 # rebuild @ARGV from the stored and modified values.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to