-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 04 June 2002 12:25 am, Doug MacEachern wrote:
> On Tue, 4 Jun 2002, Matt Sergeant wrote:
> > Seems to be I think - but then this isn't a bug I've been able to
> > replicate. I asked the person to try recompiling with an explicit -DEAPI
> > and it made no difference. AxKit uses Apache::src to get the headers and
> > CFLAGS.
> >
> > Does the request_rec contents make any sense to you? It doesn't seem to
> > be a subrequest, yet per_dir_config is null...
>
> actually, this looks related to largefiles. you might need to do
> something like:
>
> #from modperl-2.0/lib/Apache/Build.pm
> use Config;
>
> sub strip_lfs {
> my($cflags) = @_;
> return $cflags unless $Config{uselargefiles};
> my $lf = $Config{ccflags_uselargefiles}
>
> || '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64';
>
> $cflags =~ s/$lf//;
> $cflags;
> }
>
> WriteMakefile(CFLAGS => strip_lfs($Config{cflags}, ...);
>
> sadly, this would also need to be conditional. doing it unless
> $Apache::MyConfig::Setup{PERL_USELARGEFILES} == 1
>
> either that or have the user rebuild perl with -Uuselargefiles
>
> yes, it is a bloody nightmare.
OK, I'm applying the following diff. Does it make sense to you? (I'm
completely lost as to why I need to do this, so any guidance is most
welcome!)
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/xml-axkit/Makefile.PL,v
retrieving revision 1.6
diff -b -u -r1.6 Makefile.PL
- --- Makefile.PL 2 Apr 2002 16:27:53 -0000 1.6
+++ Makefile.PL 3 Jun 2002 23:43:44 -0000
@@ -50,6 +50,7 @@
}
require Apache::src;
+require Apache::MyConfig;
my $xml_parser_found = 0;
@@ -229,6 +230,10 @@
my %prereq_pm = %{delete $config{PREREQ_PM}||{}};
+unless ($Apache::MyConfig::Setup{PERL_USELARGEFILES} == 1) {
+ $config{CFLAGS} = strip_lfs($config{CFLAGS});
+}
+
foreach my $k (keys %config) {
push @ARGV, "$k=$config{$k}";
}
@@ -274,6 +279,14 @@
else {
$RUNNING_UNDER_CPAN = $ENV{RUNNING_UNDER_CPAN} || 0;
}
+}
+
+sub strip_lfs {
+ my($cflags) = @_;
+ return $cflags unless $Config{uselargefiles};
+ my $lf = $Config{ccflags_uselargefiles} || '-D_LARGEFILE_SOURCE
- -D_FILE_OFFSET_BITS=64';
+ $cflags =~ s/$lf//;
+ $cflags;
}
sub rm_f {
- --
<:->get a SMart net</:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE8+/+xVBc71ct6OywRAiv2AJ4jDIhVYba3PMdWkkfh0qr+KqDZJwCgmYPY
tHC1+HGWA1LnxkZhlWvXx+o=
=w73O
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]